[go: up one dir, main page]

CN110134905B - Page update display method, device, equipment and storage medium - Google Patents

Page update display method, device, equipment and storage medium Download PDF

Info

Publication number
CN110134905B
CN110134905B CN201910425951.6A CN201910425951A CN110134905B CN 110134905 B CN110134905 B CN 110134905B CN 201910425951 A CN201910425951 A CN 201910425951A CN 110134905 B CN110134905 B CN 110134905B
Authority
CN
China
Prior art keywords
data
list item
item data
page
update
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910425951.6A
Other languages
Chinese (zh)
Other versions
CN110134905A (en
Inventor
刘德平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910425951.6A priority Critical patent/CN110134905B/en
Publication of CN110134905A publication Critical patent/CN110134905A/en
Application granted granted Critical
Publication of CN110134905B publication Critical patent/CN110134905B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9014Indexing; Data structures therefor; Storage structures hash tables
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the disclosure discloses a page update display method, a device, equipment and a storage medium, wherein the method comprises the following steps: acquiring first data and second data; respectively traversing the first data and the second data, and determining the update state of each list item data in the first data and the second data, wherein the update state is used for indicating the update operation aiming at each list item data; and adjusting the list item data in the first data and the second data on the basis of the current display page according to the update state of each list item data in the first data and the second data to obtain an update page of the current display page and display the update page. The technical scheme of the embodiment of the disclosure solves the problems that the whole page needs to be re-rendered in the process of updating and displaying the page in the prior art, the time consumption is long and the complexity is high, simplifies the operation flow of page refreshing, saves the called resources of page refreshing, and accordingly reduces the page refreshing time.

Description

Page update display method, device, equipment and storage medium
Technical Field
The embodiment of the disclosure relates to the technical field of computer software application, in particular to a page update display method, device, equipment and storage medium.
Background
In some applications, especially applications with strong social interaction, there are usually interfaces displaying some real-time dynamically updated contents, such as live broadcast rooms displayed on a live broadcast platform and singing rooms of volcano videos, and when a user browses and displays pages of each room, the room may have finished live broadcast or singing activities, or may have been created, so that it is necessary to ensure timeliness of displaying pages of each room during browsing of the user, and ensure that the rooms viewed by the user are all up-to-date.
In the prior art, a method for refreshing a page at regular time is adopted to ensure real-time performance of page data. Specifically, page data are downloaded from a server at regular time, displayed old page data are deleted, and simultaneously, page rendering and displaying are carried out based on the downloaded new page data. However, the above process of updating and displaying the page requires re-rendering the entire page, which is time-consuming and complex.
BRIEF SUMMARY OF THE PRESENT DISCLOSURE
The embodiment of the disclosure provides a page update display method, device, equipment and storage medium, so as to simplify the operation flow of page refresh, save the called resources of page refresh and reduce the page refresh time.
In a first aspect, an embodiment of the present disclosure provides a page update display method, where the method includes:
acquiring first data and second data, wherein the first data comprises list item data in a current display page, and the second data comprises list item data in a page to be updated of the current display page;
traversing the first data and the second data respectively, and determining an update state of each list item data in the first data and the second data, wherein the update state is used for indicating an update operation for each list item data;
and adjusting the list item data in the first data and the second data on the basis of the current display page according to the update state of each list item data in the first data and the second data to obtain an update page of the current display page, and displaying the update page.
Optionally, traversing the first data and the second data, respectively, to determine an update state of each list item data in the first data and the second data, includes:
traversing each list item data in the first data, judging whether the currently traversed list item data is the same as one of the list item data in the second data, if so, setting the updating state of the currently traversed list item data to be skipped, otherwise, setting the updating state of the currently traversed list item data to be deleted;
traversing each list item data in the second data, judging whether the currently traversed list item data is the same as one of the list item data in the first data, if so, judging whether the position of the currently traversed list item data is the same as the position of the same list item data in the first data, if so, setting the updating state of the currently traversed list item data to be skipped, otherwise, setting the updating state of the currently traversed list item data to be moved, and if the currently traversed list item data is different from each list item data in the first data, setting the updating state of the currently traversed list item data to be inserted.
Optionally, adjusting, according to the update state of each list item data in the first data and the second data, each list item data in the first data and the second data on the basis of the current display page to obtain an update page of the current display page, where the adjusting includes:
traversing each list item data in the first data, and deleting the list item data of the currently displayed page if the update state of the currently traversed list item data is deletion;
traversing each list item data in the second data, if the update state of the currently traversed list item data is moving, moving the position of the list item data of the currently displayed page based on the position of the currently traversed list item data in the second data, and if the update state of the currently traversed list item data is inserting, inserting the currently traversed list item data behind the last list item data in the currently displayed page.
Optionally, displaying the update page includes:
rendering and displaying the list item data with the updated state as the insertion.
Optionally, the obtaining the first data and the second data includes:
and acquiring the first data and the second data according to a preset time interval.
Optionally, determining whether the list item data traversed currently is the same as one of the list item data in the second data includes:
judging whether the identifier or the hash value of the list item data traversed currently is the same as the identifier or the hash value of one of the list item data in the second data; correspondingly, judging whether the list item data traversed currently is the same as one of the list item data in the first data includes:
and judging whether the identifier or the hash value of the list item data traversed currently is the same as the identifier or the hash value of one of the list item data in the first data.
In a second aspect, an embodiment of the present disclosure further provides a page update display apparatus, where the apparatus includes:
the data acquisition module is used for acquiring first data and second data, wherein the first data comprises list item data in a current display page, and the second data comprises list item data in a page to be updated of the current display page;
the update state confirmation module is configured to traverse the first data and the second data, and determine an update state of each list item data in the first data and the second data, where the update state is used to indicate an update operation for each list item data;
and the page updating module is used for adjusting each list item data in the first data and the second data on the basis of the current display page according to the updating state of each list item data in the first data and the second data to obtain an updating page of the current display page and displaying the updating page.
Optionally, the update status confirmation module is specifically configured to:
traversing each list item data in the first data, judging whether the currently traversed list item data is the same as one of the list item data in the second data, if so, setting the updating state of the currently traversed list item data to be skipped, otherwise, setting the updating state of the currently traversed list item data to be deleted;
traversing each list item data in the second data, judging whether the currently traversed list item data is the same as one of the list item data in the first data, if so, judging whether the position of the currently traversed list item data is the same as the position of the same list item data in the first data, if so, setting the updating state of the currently traversed list item data to be skipped, otherwise, setting the updating state of the currently traversed list item data to be moved, and if the currently traversed list item data is different from each list item data in the first data, setting the updating state of the currently traversed list item data to be inserted.
Optionally, the page update module is specifically configured to:
traversing each list item data in the first data, and deleting the list item data of the currently displayed page if the update state of the currently traversed list item data is deletion;
traversing each list item data in the second data, if the update state of the currently traversed list item data is moving, moving the position of the list item data of the currently displayed page based on the position of the currently traversed list item data in the second data, and if the update state of the currently traversed list item data is inserting, inserting the currently traversed list item data behind the last list item data in the currently displayed page.
Optionally, the page update module is configured to:
rendering and displaying the list item data with the updated state as the insertion.
Optionally, the data obtaining module is specifically configured to:
and acquiring the first data and the second data according to a preset time interval.
Optionally, the update status confirmation module is specifically configured to:
judging whether the identifier or the hash value of the list item data traversed currently is the same as the identifier or the hash value of one of the list item data in the second data; correspondingly, judging whether the list item data traversed currently is the same as one of the list item data in the first data includes:
and judging whether the identifier or the hash value of the list item data traversed currently is the same as the identifier or the hash value of one of the list item data in the first data.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, where the electronic device includes:
one or more processing devices;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processing devices, the one or more processing devices are enabled to implement the page update display method according to any embodiment of the disclosure.
In a fourth aspect, an embodiment of the present disclosure further provides a computer storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the page update display method provided in any embodiment of the present disclosure.
According to the page refreshing method and device, the list item data of the current display page and the to-be-updated page of the current display page are traversed respectively, the updating state of each list item is determined, the current display page is adjusted by taking the list item data as a unit on the basis of the current display page, and the updating page of the current display page is obtained.
Drawings
Fig. 1 is a flowchart of a page update display method according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a page update display device according to a second embodiment of the disclosure;
fig. 3 is a schematic structural diagram of an electronic device provided in the third embodiment of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure clearer, the technical solutions of the present disclosure will be clearly and completely described below through embodiments with reference to the accompanying drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure. In the following embodiments, optional features and examples are provided in each embodiment, and various features described in the embodiments may be combined to form a plurality of alternatives, and each numbered embodiment should not be regarded as only one technical solution.
Example one
Fig. 1 shows a flowchart of a page update display method provided in an embodiment of the present disclosure, which may be applied to a situation where a terminal application displays a page update, and the method may be implemented by a page update display apparatus, and may be implemented by software and/or hardware in an electronic device.
As shown in fig. 1, the page update display method provided by the embodiment of the present disclosure specifically includes:
s110, obtaining first data and second data, wherein the first data comprise list item data in a current display page, and the second data comprise list item data in a page to be updated of the current display page.
Specifically, the list item data is a display element in the currently displayed page or a to-be-updated page of the currently displayed page, and may be any custom data structure. For example, if the display page shows a live room being live, then a list item data is information of the name of the live room, the room number, the number of viewers in the live room, and the like. If the display page displays a ranking list refreshed in real time, then a list item data is an object on the ranking list.
When a user keeps a display interface all the time and the content of the display interface is dynamically changed and updated, the first data and the second data can be acquired according to the requirement of the refresh frequency of the current display page and the preset time interval to update the current display interface, for example, data refresh is performed every 5 seconds on the current page. In addition, after the user exits the current display interface, the user needs to obtain the refresh data when re-entering the display interface.
S120, traversing the first data and the second data respectively, and determining an update state of each list item data in the first data and the second data, wherein the update state is used for indicating an update operation for each list item data.
Specifically, each list item data in the first data may be traversed first, whether the currently traversed list item data is the same as one of the list item data in the second data is judged, if yes, the update state of the currently traversed list item data is set to be skipped, and if not, the update state of the currently traversed list item data is set to be deleted. For example, if the list item data a in the first data also exists in the second data, it indicates that the list item data a still exists after the current page is updated, and the list item data a does not need to be rendered and displayed again; the list item data B in the first data only exists in the first data, but does not exist in the second data at the same time, which indicates that the list item data B does not appear in the update page of the current display page, and can be deleted directly. For a live broadcast room display page of a live broadcast platform, the list item data a may be a live broadcast room still existing after the current display page is updated, and the list item data B may be a room whose live broadcast has been finished after the current display page is refreshed, and will not be displayed in the updated page.
And judging whether the list item data traversed currently is the same as one of the list item data in the second data or not by judging whether the identifier or the hash value of the list item data traversed currently is the same as the identifier or the hash value of one of the list item data in the second data or not. Each list item has identification data, and whether the list item data are the same or not can be judged by comparing the identification data of the list items. If the identification data can not identify the current list item, comparison can be carried out according to the hash value of each list item to determine whether the list items are the same. For example, when the identification information of a list item data only represents the name of the list item data, when the name of the list item is not changed, but one of the important parameters of the list item is changed, that is, the list item data is changed, at this time, the identification information of the list item cannot represent the list item after the parameter is changed, it cannot be determined whether two list items with the same identification information are the same through the representation information, at this time, it needs to be determined according to the hash value of the list item data, and when any one parameter of the list item data is changed, the hash value of the list item is changed.
Furthermore, each list item data in the second data is traversed, whether the currently traversed list item data is the same as one of the list item data in the first data or not is judged, if yes, whether the position of the currently traversed list item data is the same as the position of the same list item data in the first data or not is judged, if yes, the updating state of the currently traversed list item data is set to be skipped, otherwise, the updating state of the currently traversed list item data is set to be moved, and if the currently traversed list item data is different from each list item data in the first data, the updating state of the currently traversed list item data is set to be inserted. Skipping indicates that the list item still exists in the updated display page and the position of the list item is not changed, and operation on the list item data is not needed; the moving indicates that the list item still exists in the updated page but the position changes, and the position needs to be moved; the insertion indicates that a list item data appears in the updated display page for the first time, but does not exist in the current display page before the update. Similarly, it is determined whether the currently traversed list item data is the same as one of the list item data in the first data, and it may be determined whether the identifier or hash value of the currently traversed list item data is the same as the identifier or hash value of one of the list item data in the first data.
It should be noted that, in this step, the list item data in the second data may also be traversed first, and then the list item data in the first data is traversed, and a specific traversal order is not limited.
S130, according to the updating state of each list item data in the first data and the second data, on the basis of the current display page, each list item data in the first data and the second data is adjusted to obtain an updating page of the current display page, and the updating page is displayed.
Specifically, first, each list item data in the first data is traversed, and if the update state of the currently traversed list item data is deletion, the list item data of the currently displayed page is deleted. And traversing each list item data in the second data, if the update state of the currently traversed list item data is moving, moving the position of the list item data of the currently displayed page based on the position of the currently traversed list item data in the second data, and if the update state of the currently traversed list item data is inserting, inserting the currently traversed list item data behind the last list item data in the currently displayed page. Therefore, list item data arranged according to the corresponding sequence in the display page after the current display page is updated can be obtained.
Furthermore, only the list item data with the update state of being inserted is rendered and displayed, and a complete updated display page can be displayed. The reason is that the list item data with the update state of skipping or deleting is rendered before updating, repeated rendering is not needed, and excessive list item data rendering operation is avoided.
Illustratively, the first data is 3 list item data contained in the currently displayed page, which are respectively data 1, 3, and 5; the second data is 4 list item data contained in the downloaded new page data of the currently displayed page, which are respectively 1, 3, 4 and 5. Traversing each list item data in the first data, and if the data 1, 3 and 5 exist in the second array, setting the updating states of the data 1, 3 and 5 as skipping; traversing each list item data in the second data, if the first data has data 1 and 3 and the positions are the same, setting the updating states of the data 1 and 3 as skipping, and if the first data does not have data 4, setting the updating state of the data 4 as inserting; if data 5 exists in the first data but is not located at the same position as in the first array, the update status of data 5 is set to move. Traversing each list item data in the first data, wherein the updating states of the data 1, 3 and 5 are skipped without executing operation; traversing each list item data in the second array, wherein the optical states of the data 1 and the data 3 are skipped without executing operation; if the update state of the data 4 is insertion, rendering the data 4 and displaying the rendered data 4 after the last data 5 of the current page, where the data sequence displayed on the current page is 1, 3, 5, and 4, and if the update state of the data 5 is movement, moving the data 5 after the data 4, where the data sequence displayed on the current page is 1, 3, 4, and 5, and is consistent with the sequence in the second data.
According to the page updating and displaying method provided by the embodiment of the disclosure, the list item data of the current display page and the page to be updated of the current display page are traversed respectively, the updating state of each list item is determined, and then the current display page is adjusted by taking the list item data as a unit on the basis of the current display page according to the updating state of each list item, so as to obtain the updating page of the current display page.
Example two
Fig. 2 is a schematic structural diagram of a page update display device according to a second embodiment of the present disclosure, which is applicable to a situation where a terminal application displays a page update.
As shown in fig. 2, the page update display device in the embodiment of the present disclosure includes: a data acquisition module 210, an update status confirmation module 220, and a page update module 230.
The data obtaining module 210 is configured to obtain first data and second data, where the first data includes list item data in a current display page, and the second data includes list item data in a to-be-updated page of the current display page; an update status confirmation module 220, configured to traverse the first data and the second data, respectively, and determine an update status of each list item data in the first data and the second data, where the update status is used to indicate an update operation for each list item data; and a page updating module 230, configured to adjust each list item data in the first data and the second data based on the current display page according to an update state of each list item data in the first data and the second data, obtain an update page of the current display page, and display the update page.
According to the page updating display device provided by the embodiment of the disclosure, the list item data of the current display page and the page to be updated of the current display page are traversed respectively, the updating state of each list item is determined, and then the current display page is adjusted by taking the list item data as a unit on the basis of the current display page, so that the updating page of the current display page is obtained.
Optionally, the update status confirmation module 220 is specifically configured to:
traversing each list item data in the first data, judging whether the currently traversed list item data is the same as one of the list item data in the second data, if so, setting the updating state of the currently traversed list item data to be skipped, otherwise, setting the updating state of the currently traversed list item data to be deleted;
traversing each list item data in the second data, judging whether the currently traversed list item data is the same as one of the list item data in the first data, if so, judging whether the position of the currently traversed list item data is the same as the position of the same list item data in the first data, if so, setting the updating state of the currently traversed list item data to be skipped, otherwise, setting the updating state of the currently traversed list item data to be moved, and if the currently traversed list item data is different from each list item data in the first data, setting the updating state of the currently traversed list item data to be inserted.
Optionally, the page updating module 230 is specifically configured to:
traversing each list item data in the first data, and deleting the list item data of the currently displayed page if the update state of the currently traversed list item data is deletion;
traversing each list item data in the second data, if the update state of the currently traversed list item data is moving, moving the position of the list item data of the currently displayed page based on the position of the currently traversed list item data in the second data, and if the update state of the currently traversed list item data is inserting, inserting the currently traversed list item data behind the last list item data in the currently displayed page.
Optionally, the page update module 230 is configured to:
rendering and displaying the list item data with the updated state as the insertion.
Optionally, the data obtaining module 210 is specifically configured to:
and acquiring the first data and the second data according to a preset time interval.
Optionally, the update status confirmation module 220 is specifically configured to:
judging whether the identifier or the hash value of the list item data traversed currently is the same as the identifier or the hash value of one of the list item data in the second data; correspondingly, judging whether the list item data traversed currently is the same as one of the list item data in the first data includes:
and judging whether the identifier or the hash value of the list item data traversed currently is the same as the identifier or the hash value of one of the list item data in the first data.
The page update display device provided by the embodiment of the disclosure can execute the page update display method provided by any embodiment of the disclosure, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE III
Referring now to FIG. 3, a block diagram of an electronic device and/or server 300 suitable for use in implementing embodiments of the present disclosure is shown. The electronic device and/or the server in the embodiments of the present disclosure may include, but are not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), etc., and a fixed terminal such as a digital TV, a desktop computer, etc., or various forms of servers such as a stand-alone server or a server cluster. The electronic device and/or server shown in fig. 3 is only one example and should not bring any limitations to the functionality and scope of use of the embodiments of the present disclosure.
As shown in fig. 3, the electronic device and/or server 300 may include a processing device (e.g., central processing unit, graphics processor, etc.) 301 that may perform various appropriate actions and processes in accordance with a program stored in a read-only memory device (ROM)302 or a program loaded from a storage device 305 into a random access memory device (RAM) 303. In the RAM 303, various programs and data necessary for the operation of the electronic device and/or the server 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
Generally, the following devices may be connected to the I/O interface 304: input devices 306 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 308 including, for example, magnetic tape, hard disk, etc.; and a communication device 309. The communication device 309 may allow the electronic device and/or the server 300 to communicate wirelessly or by wire with other devices to exchange data. While fig. 3 illustrates an electronic device and/or server 300 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program containing program code for performing a method of displaying an operable control. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 309, or installed from the storage means 304, or installed from the ROM 302. The computer program, when executed by the processing device 301, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory device (RAM), a read-only memory device (ROM), an erasable programmable read-only memory device (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory device (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the processing device, cause the electronic device to: acquiring an operable control associated with the promotion content; determining target display information of an operable control; and if the display duration of the promotion content reaches the preset duration, adjusting the original display information of the operable control according to the target display information.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. The name of the module does not in some cases constitute a limitation of the module itself, for example, the obtaining module may also be described as a module for obtaining an operable control associated with promotion content.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (10)

1. A page update display method is characterized by comprising the following steps:
acquiring first data and second data, wherein the first data comprises list item data in a current display page, the second data comprises list item data in a page to be updated of the current display page, and the list item data comprises names and room numbers of live broadcast rooms and audience number information of the live broadcast rooms in the current display page;
traversing the first data and the second data respectively, and determining an update state of each list item data in the first data and the second data, wherein the update state is used for indicating an update operation for each list item data, and the update state includes a movement, and the movement indicates that the position of a list item in an updated page changes and needs to be moved;
and adjusting the list item data in the first data and the second data on the basis of the current display page according to the update state of each list item data in the first data and the second data to obtain an update page of the current display page, and displaying the update page.
2. The method of claim 1, wherein traversing the first data and the second data, respectively, to determine the update status of each list item data in the first data and the second data comprises:
traversing each list item data in the first data, judging whether the currently traversed list item data is the same as one of the list item data in the second data, if so, setting the updating state of the currently traversed list item data to be skipped, otherwise, setting the updating state of the currently traversed list item data to be deleted;
traversing each list item data in the second data, judging whether the currently traversed list item data is the same as one of the list item data in the first data, if so, judging whether the position of the currently traversed list item data is the same as the position of the same list item data in the first data, if so, setting the updating state of the currently traversed list item data to be skipped, otherwise, setting the updating state of the currently traversed list item data to be moved, and if the currently traversed list item data is different from each list item data in the first data, setting the updating state of the currently traversed list item data to be inserted.
3. The method according to claim 2, wherein adjusting the list item data in the first data and the second data based on the current display page according to the update status of each list item data in the first data and the second data to obtain the update page of the current display page comprises:
traversing each list item data in the first data, and deleting the list item data of the currently displayed page if the update state of the currently traversed list item data is deletion;
traversing each list item data in the second data, if the update state of the currently traversed list item data is moving, moving the position of the list item data of the currently displayed page based on the position of the currently traversed list item data in the second data, and if the update state of the currently traversed list item data is inserting, inserting the currently traversed list item data behind the last list item data in the currently displayed page.
4. The method of claim 3, wherein displaying the updated page comprises:
rendering and displaying the list item data with the updated state as the insertion.
5. The method of claim 1, wherein obtaining the first data and the second data comprises:
and acquiring the first data and the second data according to a preset time interval.
6. The method of claim 2, wherein the determining whether the list item data currently traversed is the same as one of the list item data in the second data comprises:
judging whether the identifier or the hash value of the list item data traversed currently is the same as the identifier or the hash value of one of the list item data in the second data; correspondingly, the determining whether the list item data traversed currently is the same as one of the list item data in the first data includes:
and judging whether the identifier or the hash value of the list item data traversed currently is the same as the identifier or the hash value of one of the list item data in the first data.
7. A page update display apparatus, comprising:
the data acquisition module is used for acquiring first data and second data, wherein the first data comprises list item data in a current display page, the second data comprises list item data in a page to be updated of the current display page, and the list item data comprises names and room numbers of live broadcast rooms and audience number information of the live broadcast rooms in the current display page;
an update state confirmation module, configured to traverse the first data and the second data, respectively, and determine an update state of each list item data in the first data and the second data, where the update state is used to indicate an update operation for each list item data, and the update state includes a movement, and the movement indicates that a position of a list item in an updated page changes and needs to be moved;
and the page updating module is used for adjusting each list item data in the first data and the second data on the basis of the current display page according to the updating state of each list item data in the first data and the second data to obtain an updating page of the current display page and displaying the updating page.
8. The apparatus of claim 7, wherein the update status confirmation module is specifically configured to:
traversing each list item data in the first data, judging whether the currently traversed list item data is the same as one of the list item data in the second data, if so, setting the updating state of the currently traversed list item data to be skipped, otherwise, setting the updating state of the currently traversed list item data to be deleted;
traversing each list item data in the second data, judging whether the currently traversed list item data is the same as one of the list item data in the first data, if so, judging whether the position of the currently traversed list item data is the same as the position of the same list item data in the first data, if so, setting the updating state of the currently traversed list item data to be skipped, otherwise, setting the updating state of the currently traversed list item data to be moved, and if the currently traversed list item data is different from each list item data in the first data, setting the updating state of the currently traversed list item data to be inserted.
9. An electronic device, characterized in that the electronic device comprises:
one or more processing devices;
storage means for storing one or more programs;
when executed by the one or more processing devices, cause the one or more processing devices to implement the page update display method of any of claims 1-6.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a page update display method according to any one of claims 1 to 6.
CN201910425951.6A 2019-05-21 2019-05-21 Page update display method, device, equipment and storage medium Active CN110134905B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910425951.6A CN110134905B (en) 2019-05-21 2019-05-21 Page update display method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910425951.6A CN110134905B (en) 2019-05-21 2019-05-21 Page update display method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110134905A CN110134905A (en) 2019-08-16
CN110134905B true CN110134905B (en) 2022-03-04

Family

ID=67572304

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910425951.6A Active CN110134905B (en) 2019-05-21 2019-05-21 Page update display method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110134905B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113378084B (en) * 2020-03-10 2025-05-02 阿里巴巴新加坡控股有限公司 Page display method and device, electronic device and computer-readable storage medium
CN111741257B (en) * 2020-05-21 2022-01-28 深圳市商汤科技有限公司 Data processing method and device, electronic equipment and storage medium
CN112214270B (en) * 2020-09-18 2024-09-17 三六零数字安全科技集团有限公司 A page redrawing method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105549973A (en) * 2015-12-11 2016-05-04 上海斐讯数据通信技术有限公司 Data updating method and system for view list in list control
EP3279811A1 (en) * 2016-08-04 2018-02-07 HERE Global B.V. Reducing size of update package data for navigation databases
WO2018076795A1 (en) * 2016-10-31 2018-05-03 华为技术有限公司 Page refreshing method and device
CN108647075A (en) * 2018-05-11 2018-10-12 阿里巴巴集团控股有限公司 Listview method for refreshing, device and the electronic equipment of five application page
CN109614195A (en) * 2018-12-11 2019-04-12 北京微播视界科技有限公司 A kind of preloading method, apparatus, equipment and the storage medium of list items

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521295A (en) * 2011-11-30 2012-06-27 深圳市五巨科技有限公司 Method and device for automatically acquiring content updating on designated page
CN103166916B (en) * 2011-12-12 2016-08-17 深圳市金蝶中间件有限公司 Method for updating pages and system
US9444674B2 (en) * 2012-10-02 2016-09-13 Microsoft Technology Licensing, Llc Heuristic analysis of responses to user requests
CN106156308B (en) * 2016-06-30 2020-05-12 北京奇虎科技有限公司 Local updating method and system for webpage
CN109299421A (en) * 2018-09-19 2019-02-01 中译语通科技股份有限公司 A kind of data-updating method, server, electric terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105549973A (en) * 2015-12-11 2016-05-04 上海斐讯数据通信技术有限公司 Data updating method and system for view list in list control
EP3279811A1 (en) * 2016-08-04 2018-02-07 HERE Global B.V. Reducing size of update package data for navigation databases
WO2018076795A1 (en) * 2016-10-31 2018-05-03 华为技术有限公司 Page refreshing method and device
CN108647075A (en) * 2018-05-11 2018-10-12 阿里巴巴集团控股有限公司 Listview method for refreshing, device and the electronic equipment of five application page
CN109614195A (en) * 2018-12-11 2019-04-12 北京微播视界科技有限公司 A kind of preloading method, apparatus, equipment and the storage medium of list items

Also Published As

Publication number Publication date
CN110134905A (en) 2019-08-16

Similar Documents

Publication Publication Date Title
CN110046021B (en) Page display method, device, system, equipment and storage medium
EP4178188A1 (en) Landscape interaction method and apparatus, electronic device, and storage medium
CN109460233B (en) Method, device, terminal equipment and medium for updating native interface display of page
CN111399956B (en) Content display method and device applied to display equipment and electronic equipment
CN109857486B (en) Method, device, equipment and medium for processing program page data
CN109491742B (en) Page table rendering method and device
US20220094758A1 (en) Method and apparatus for publishing video synchronously, electronic device, and readable storage medium
CN110619099B (en) Comment content display method, device, equipment and storage medium
US12294758B2 (en) Control setting method and apparatus, electronic device and interaction system
US20230137492A1 (en) Landscape interaction method and apparatus, electronic device, and storage medium
CN110070593B (en) Method, device, equipment and medium for displaying picture preview information
CN110134905B (en) Page update display method, device, equipment and storage medium
CN115103236B (en) Image record generation method, device, electronic equipment and storage medium
CN111291244A (en) House resource information display method, device, terminal and storage medium
CN111258519B (en) Screen split implementation method, device, terminal and medium
CN111652675A (en) Display method and device and electronic equipment
CN109714626B (en) Information interaction method and device, electronic equipment and computer readable storage medium
CN111694629A (en) Information display method and device and electronic equipment
CN115525852A (en) Webpage rendering method, device, equipment and storage medium
CN110568976B (en) Method, device, equipment and storage medium for controlling application display
CN110147283B (en) Display content switching display method, device, equipment and medium
CN110618772B (en) View adding method, device, equipment and storage medium
CN112148744A (en) Page display method and device, electronic equipment and computer readable medium
CN111770385A (en) Card display method and device, electronic equipment and medium
CN111159593A (en) Method and device for generating flow chart, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant