CN109376320B - Method and device for updating data items of webpage interface - Google Patents

Method and device for updating data items of webpage interface Download PDF

Info

Publication number
CN109376320B
CN109376320B CN201811146283.5A CN201811146283A CN109376320B CN 109376320 B CN109376320 B CN 109376320B CN 201811146283 A CN201811146283 A CN 201811146283A CN 109376320 B CN109376320 B CN 109376320B
Authority
CN
China
Prior art keywords
data item
content
time
latest
data
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
CN201811146283.5A
Other languages
Chinese (zh)
Other versions
CN109376320A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201811146283.5A priority Critical patent/CN109376320B/en
Publication of CN109376320A publication Critical patent/CN109376320A/en
Application granted granted Critical
Publication of CN109376320B publication Critical patent/CN109376320B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and a device for updating data items of a web interface. The method comprises the following steps: acquiring a classification identifier corresponding to a data item to be updated on a webpage interface, wherein the classification identifier is preset for each data item according to the data type output by the data item; detecting the content of the data item needing to be updated on the webpage interface according to the classification identification; when detecting that the data items belonging to the same classification identification are updated in content, acquiring the latest content of the data items with the updated content; and sending the latest content of the data item corresponding to the classification identifier, wherein the latest content carries the classification identifier corresponding to the data item to which the latest content belongs.

Description

Method and device for updating data items of webpage interface
Technical Field
The present invention relates to the field of information processing, and in particular, to a method and an apparatus for updating data items in a web interface.
Background
Web browsing is a common operation for users to surf the internet at present. In the use of web interfaces, the user experience is very important. The refreshing of the interface information is a common operation, and the refreshing of the information at present mostly adopts a mode of timed automatic refreshing and manual refreshing of a user. However, the 2 methods are all insufficient, the timing refreshing can bring unnecessary pressure to the system, and if the amount of information is large and the number of people accessing the system is large, the method inevitably brings huge pressure to the service. Although the above problems are avoided by the manual refreshing of the user, the user often cannot achieve the target of information timeliness due to the fact that the user does not timely perform the manual refreshing in most cases, and the user experience is reduced.
Disclosure of Invention
In order to solve the technical problem, the invention provides a method and a device for updating data items of a web interface, which can improve the efficiency of updating data on the web interface.
In order to achieve the purpose of the invention, the invention provides a data item updating method of a web interface, which comprises the following steps:
acquiring a classification identifier corresponding to a data item to be updated on a webpage interface, wherein the classification identifier is preset for each data item according to the data type output by the data item;
detecting the content of the data item needing to be updated on the webpage interface according to the classification identification;
when detecting that the data items belonging to the same classification identification are updated in content, acquiring the latest content of the data items with the updated content;
and sending the latest content of the data item corresponding to the classification identifier, wherein the latest content carries the classification identifier corresponding to the data item to which the latest content belongs.
Wherein, the method also has the following characteristics: before sending the latest content of the data item corresponding to the classification identifier, the method further comprises:
acquiring the time of last sending of the latest content of the data item corresponding to the classification identifier;
judging whether the time interval from the current time is greater than a preset time threshold value or not according to the time of sending the latest content of the data item corresponding to the classification identification at the last time;
and if the judgment result is larger than the time threshold, controlling to execute the operation of sending the latest content of the data item corresponding to the classification identification.
In order to achieve the object of the present invention, the present invention further provides a method for updating data items of a web interface, including:
receiving the latest content of a data item needing to be updated on a webpage interface, wherein the latest content carries a classification identifier corresponding to the data item to which the latest content belongs, and the classification identifier is preset for each data item according to the data type output by the data item;
determining a target data item to be updated on the webpage interface according to the classification identification of the data item;
and updating the content of the target data item by using the received latest content.
Wherein, the method also has the following characteristics: before the content update is performed on the target data item by using the received latest content, the method further includes:
judging whether the content currently displayed on the webpage interface comprises the target data item;
and when the target data item is judged to be included, triggering the operation of updating the content of the target data item by utilizing the received latest content.
Wherein, the method also has the following characteristics: before the content update is performed on the target data item by using the received latest content, the method further includes:
acquiring the last time of executing content updating operation on the target data item;
comparing the time of last content update operation with the time of data marked in the latest content received locally;
if the time of last content updating operation is earlier than the data time marked in the latest locally received content, directly executing the content updating operation on the target data item; otherwise, acquiring the difference between the target data item and the latest content, and managing the content of the target data item according to the processing result after the processing result of the difference is obtained.
In order to achieve the object of the present invention, the present invention further provides a data item updating apparatus for a web interface, including:
the first acquisition module is used for acquiring a classification identifier corresponding to a data item needing to be updated on a webpage interface, wherein the classification identifier is preset for each data item according to the data type output by the data item;
the detection module is used for detecting the content of the data item to be updated on the webpage interface according to the classification identifier;
the second acquisition module is used for acquiring the latest content of the data item with the updated content after detecting that the content of the data item with the same classification identifier is updated;
and the sending module is used for sending the latest content of the data item corresponding to the classification identifier, wherein the latest content carries the classification identifier corresponding to the data item to which the latest content belongs.
Wherein, the device still has following characteristics: the device further comprises:
a third obtaining module, configured to obtain, before sending the latest content of the data item corresponding to the classification identifier, a time when the latest content of the data item corresponding to the classification identifier was last sent;
the judging module is used for judging whether the time interval from the current time is greater than a preset time threshold value or not according to the time of sending the latest content of the data item corresponding to the classification identification last time;
and the control module is used for controlling and executing the operation of sending the latest content of the data item corresponding to the classification identification if the judgment result is larger than the time threshold.
In order to achieve the object of the present invention, the present invention further provides a data item updating apparatus for a web interface, including:
the receiving module is used for receiving the latest content of the data item needing to be updated on the webpage interface, wherein the latest content carries the classification identifier corresponding to the data item to which the latest content belongs, and the classification identifier is preset for each data item according to the data type output by the data item;
the determining module is used for determining a target data item to be updated on the webpage interface according to the classification identification of the data item;
and the updating module is used for updating the content of the target data item by utilizing the received latest content.
Wherein, the device still has following characteristics: the device further comprises:
the second judging module is used for judging whether the content currently displayed on the webpage interface comprises the target data item before updating the content of the target data item;
and the triggering module is used for triggering the operation of updating the content of the target data item by utilizing the received latest content when the target data item is judged to be included.
Wherein, the device still has following characteristics: the device further comprises:
a fourth obtaining module, configured to obtain, before content update is performed on the target data item, time when the target data item last performs a content update operation;
the comparison module is used for comparing the time of last content updating operation with the data time marked in the latest locally received content;
the management module is used for directly executing the operation of updating the content of the target data item if the time of last executing the content updating operation is earlier than the data time marked in the latest locally received content; otherwise, acquiring the difference between the target data item and the latest content, and managing the content of the target data item according to the processing result after the processing result of the difference is obtained.
According to the embodiment provided by the invention, the latest content is sent when the data changes by utilizing the classification identification corresponding to the data item on the webpage interface, the purpose of locally refreshing the changed data is realized, the purpose of automatically and accurately updating the changed data is achieved, the pressure of the whole disk data refreshing on the back-end service is reduced, the timeliness of data updating is also increased, bad experience can not be brought to a user due to dirty data, and the efficiency of data updating on the webpage interface is improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
FIG. 1 is a flowchart of a method for updating data items of a web interface according to the present invention;
FIG. 2 is a flowchart of another method for updating data items in a web interface according to the present invention;
FIG. 3 is a block diagram of a data item update apparatus of a web interface according to the present invention
Fig. 4 is a block diagram of a data item updating apparatus of another web interface provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
Fig. 1 is a flowchart of a method for updating data items of a web interface according to the present invention. The method shown in fig. 1 comprises:
step 101, obtaining a classification identifier corresponding to a data item to be updated on a webpage interface, wherein the classification identifier is preset for each data item according to the data type output by the data item;
102, detecting the content of the data item to be updated on the webpage interface according to the classification identification;
103, when detecting that the content of the data items belonging to the same classification identification is updated, acquiring the latest content of the data items with the updated content;
and 104, sending the latest content of the data item corresponding to the classification identifier, wherein the latest content carries the classification identifier corresponding to the data item to which the latest content belongs.
Preferably, before sending the latest content of the data item corresponding to the classification identifier, the method further includes:
acquiring the time of last sending of the latest content of the data item corresponding to the classification identifier;
judging whether the time interval from the current time is greater than a preset time threshold value or not according to the time of sending the latest content of the data item corresponding to the classification identification at the last time;
and if the judgment result is larger than the time threshold, controlling to execute the operation of sending the latest content of the data item corresponding to the classification identification.
Specifically, when the time of the 2-time data change is short, it is not necessary to send the latest content to the front-end browser for 2 times, and the data change in the extreme time cannot be sensed by the user, so the best mode is that the time of the adjacent 2-time data update exceeds a preset first time interval, the latest content is sent after the time interval is met, if the data update interval is always less than 500 milliseconds, the latest data is sent immediately when the phenomenon continues for the second time interval, and the data update interval is counted again.
According to the method embodiment provided by the invention, the classification identification corresponding to the data item is obtained, the content of the data item needing to be updated on the webpage interface is detected according to the classification identification, the latest content of the data item with the updated content is obtained after the content update is detected, and the latest content of the data item corresponding to the classification identification is sent, so that the purpose of locally refreshing changed data is realized, the purpose of automatically and accurately updating the changed data is achieved, the pressure of the whole disk data refresh on the back-end service is reduced, the timeliness of data update is also increased, bad experience can not be brought to a user due to dirty data, and the efficiency of data update on the webpage interface is improved.
FIG. 2 is a flowchart of another method for updating data items in a web interface according to the present invention. The method shown in fig. 2 comprises:
step 201, receiving the latest content of a data item to be updated on a web interface, wherein the latest content carries a classification identifier corresponding to the data item to which the latest content belongs, and the classification identifier is preset for each data item according to the data type output by the data item;
step 202, determining a target data item to be updated on the webpage interface according to the classification identification of the data item;
and step 203, updating the content of the target data item by using the received latest content.
4. The method of claim 3, wherein before the content updating of the target data item with the received latest content, the method further comprises:
judging whether the content currently displayed on the webpage interface comprises the target data item;
and when the target data item is judged to be included, triggering the operation of updating the content of the target data item by utilizing the received latest content.
5. The method according to claim 3 or 4, wherein before the content update of the target data item with the received latest content, the method further comprises:
acquiring the last time of executing content updating operation on the target data item;
comparing the time of last content update operation with the time of data marked in the latest content received locally;
if the time of last content updating operation is earlier than the data time marked in the latest locally received content, directly executing the content updating operation on the target data item; otherwise, acquiring the difference between the target data item and the latest content, and managing the content of the target data item according to the processing result after the processing result of the difference is obtained.
The method embodiment provided by the invention receives the latest content of the data item, determines the target data item to be updated on the webpage interface according to the classification identification carried in the received data, and updates the content of the target data item by utilizing the received latest content, thereby realizing the purpose of locally refreshing changed data, achieving the purpose of automatically and accurately updating the changed data, reducing the pressure of the whole disk data refresh on the back-end service, increasing the timeliness of data update, avoiding bad experience of users due to dirty data, and improving the efficiency of data update on the webpage interface.
The method provided by the present invention is further illustrated below:
the description is given by taking a browser and a server in practical application as application scenes:
a server side: and detecting the change of the data, and actively pushing the changed data to the browser by the server side when the content of the data changes.
The browser side: when the front-end page receives data, judging the data, judging whether the pushed data is displayed on the current page, and if the current page contains the pushed data, further judging; and judging whether the data on the current page changes or not, if so, updating the information of the page, and if not, changing nothing and omitting the pushed data.
The websocket is used for a push information channel between the server and the browser.
Specifically, when the operation of the server for data modification is completed, the websocket pushes the data modification information in time to the browser connected to the server. The pushed information includes: latest data content, update time, and data category. When the browser receives the pushed data, judging the data, firstly judging whether the pushed data is displayed on the current page or not and updating time, if the pushed data is on the current page and the updating time is longer than the existing updating time of the page, judging whether the pushed data is changed or not, if so, only updating the changed data, and not updating other data.
The following is a detailed description of the interface data refreshing method provided by the application example of the present invention:
the method provided by the application example of the invention has the following specific implementation process:
firstly, according to different data, a page is divided into different data modules, the type and the data acquisition time are recorded, the data updating time is the server time, so that the time is unified, and the misjudgment caused by uncertain browser time is avoided. The page is classified according to the data types, one page can contain a plurality of data types, the information is matched with the data types in the pushed data, when the types in the pushed data are within the page data types, the page can be judged to contain the data types, and further data updating judgment is needed. Otherwise, the data updating operation is not carried out, and the push message is ignored.
The page data is divided in a modularized manner, how to divide the page data is determined according to the content of data pushing, and the page data preferably corresponds to each other, namely the type of the data pushed by the server side and the data module at the front end are all reflected. If some kind of data is not present, the pushed data is ignored.
Secondly, when the page type comprises the type of the pushed data, finding a place responding to and displaying the data in the page, acquiring the last data updating time, and comparing the last data updating time with the updating time of the pushed data. And if the pushed data update time is later than the last update time, the next data update judgment is needed, otherwise, the push message is ignored. When the next judgment is needed, the difference between the pushed data and the page display data needs to be compared, if the difference is different, the data with the difference is updated, and other data are kept unchanged. Otherwise, the message pushed this time is ignored.
And finally, if the data is updated, updating the updating time of the data module at the same time, and providing the updated data module for the next data pushing.
It should be noted that the time for the server to push data may be specifically described according to the following situations:
the change in the content of the data item is typically when the database is updated, at which time it needs to be pushed to the front end. When the time of the 2 times data change is short, the user does not need to push the messages to the front-end browser for 2 times, the data change in the extreme time cannot be sensed by the user, so the best mode is that the messages are pushed only when the time of the adjacent 2 times data update exceeds 500 milliseconds, if the data update time is less than 500 milliseconds all the time, the messages are immediately pushed when the phenomenon lasts for 5 seconds, and the data update interval time is judged again. Similarly, the browser needs to make a decision on the pushed data interval, because the time decision made by the server to the front end may vary due to network delay and congestion. Therefore, the browser end also needs to judge the updating time, and when the browser receives the push message and does not push the same data type message within 500 milliseconds, the browser performs the page data updating process. If the same data type information is pushed within 500 milliseconds, the judgment is continued by using the second data pushing time until no data is pushed within 500 milliseconds, and the data updating processing is performed, wherein if the phenomenon lasts for 5 seconds and is not finished, the data updating processing is immediately performed, and the judgment of the updating time is restarted.
By managing and controlling the data pushing time of the server, the page data can be automatically and accurately refreshed. The user does not need to pay attention to refreshing of the page, and the data can be automatically refreshed as long as the data changes. In a very extreme case, the refresh maximum time interval would be 5 seconds. Meanwhile, the refreshing can also reduce the pressure of the server side, and more smooth use experience is brought to customers.
The method provided by the application example of the invention automatically sends data to the browser end when the data changes, and locally refreshes the changed data, and relates to the judgment and active push of the server end to the data change, and the browser end also analyzes and responds to the pushed data; finally, the changed data is automatically and accurately updated. The pressure brought to the back-end service by the whole-disk data refreshing is reduced, the timeliness of data updating is increased, and bad experience is not brought to a user due to dirty data.
Fig. 3 is a structural diagram of a data item updating apparatus of a web interface according to the present invention. The apparatus shown in fig. 3 comprises:
a first obtaining module 301, configured to obtain a classification identifier corresponding to a data item to be updated on a web interface, where the classification identifier is preset for each data item according to a data type output by the data item;
a detection module 302, configured to detect content of a data item that needs to be updated on the web interface according to the classification identifier;
a second obtaining module 303, configured to, when it is detected that content update occurs to data items belonging to the same classification identifier, obtain the latest content of the data item in which the content update occurs;
a sending module 304, configured to send the latest content of the data item corresponding to the classification identifier, where the latest content carries the classification identifier corresponding to the data item to which the latest content belongs.
In an embodiment of the apparatus provided by the present invention, the apparatus further comprises:
a third obtaining module, configured to obtain, before sending the latest content of the data item corresponding to the classification identifier, a time when the latest content of the data item corresponding to the classification identifier was last sent;
the judging module is used for judging whether the time interval from the current time is greater than a preset time threshold value or not according to the time of sending the latest content of the data item corresponding to the classification identification last time;
and the control module is used for controlling and executing the operation of sending the latest content of the data item corresponding to the classification identification if the judgment result is larger than the time threshold.
According to the device embodiment provided by the invention, the classification identification corresponding to the data item is obtained, the content of the data item needing to be updated on the webpage interface is detected according to the classification identification, the latest content of the data item with the updated content is obtained after the content update is detected, and the latest content of the data item corresponding to the classification identification is sent, so that the purpose of locally refreshing changed data is realized, the purpose of automatically and accurately updating the changed data is achieved, the pressure of the whole disk data refresh on the back-end service is reduced, the timeliness of data update is also increased, bad experience can not be brought to a user due to dirty data, and the efficiency of data update on the webpage interface is improved.
Fig. 4 is a block diagram of a data item updating apparatus of another web interface provided in the present invention. The apparatus shown in fig. 4 comprises:
a receiving module 401, configured to receive latest content of a data item to be updated on a web interface, where the latest content carries a classification identifier corresponding to the data item to which the latest content belongs, where the classification identifier is preset for each data item according to a data type output by the data item;
a determining module 402, configured to determine, according to the classification identifier of the data item, a target data item that needs to be updated on the web interface;
an updating module 403, configured to perform content updating on the target data item by using the received latest content.
In an embodiment of the apparatus provided by the present invention, the apparatus further comprises:
the second judging module is used for judging whether the content currently displayed on the webpage interface comprises the target data item before updating the content of the target data item;
and the triggering module is used for triggering the operation of updating the content of the target data item by utilizing the received latest content when the target data item is judged to be included.
In an embodiment of the apparatus provided by the present invention, the apparatus further comprises:
a fourth obtaining module, configured to obtain, before content update is performed on the target data item, time when the target data item last performs a content update operation;
the comparison module is used for comparing the time of last content updating operation with the data time marked in the latest locally received content;
the management module is used for directly executing the operation of updating the content of the target data item if the time of last executing the content updating operation is earlier than the data time marked in the latest locally received content; otherwise, acquiring the difference between the target data item and the latest content, and managing the content of the target data item according to the processing result after the processing result of the difference is obtained.
The embodiment of the device provided by the invention receives the latest content of the data item, determines the target data item to be updated on the webpage interface according to the classification identification carried in the received data, and updates the content of the target data item by utilizing the received latest content, thereby realizing the purpose of locally refreshing changed data, achieving the purpose of automatically and accurately updating the changed data, reducing the pressure of the whole disk data refresh on the back-end service, increasing the timeliness of data update, avoiding bad experience of a user due to dirty data, and improving the efficiency of data update on the webpage interface.
It will be understood by those of ordinary skill in the art that all or part of the steps of the above embodiments may be implemented using a computer program flow, which may be stored in a computer readable storage medium and executed on a corresponding hardware platform (e.g., system, apparatus, device, etc.), and when executed, includes one or a combination of the steps of the method embodiments.
Alternatively, all or part of the steps of the above embodiments may be implemented by using an integrated circuit, and the steps may be respectively manufactured as an integrated circuit module, or a plurality of the blocks or steps may be manufactured as a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The devices/functional modules/functional units in the above embodiments may be implemented by general-purpose computing devices, and they may be centralized on a single computing device or distributed on a network formed by a plurality of computing devices.
Each device/function module/function unit in the above embodiments may be implemented in the form of a software function module and may be stored in a computer-readable storage medium when being sold or used as a separate product. The computer readable storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for updating data items of a web interface is characterized by comprising the following steps:
acquiring a classification identifier corresponding to a data item to be updated on a webpage interface, wherein the classification identifier is preset for each data item according to the data type output by the data item;
detecting the content of the data item needing to be updated on the webpage interface according to the classification identification;
when detecting that the data items belonging to the same classification identification are updated in content, acquiring the latest content of the data items with the updated content;
and if the time interval between two adjacent data updates is always smaller than a preset interval threshold and continuously larger than a preset duration threshold, immediately sending the latest content of the data item corresponding to the classification identifier, wherein the latest content carries the classification identifier corresponding to the data item to which the latest content belongs.
2. The method of claim 1, wherein prior to sending the latest content for the data item for which the classification identification corresponds, the method further comprises:
acquiring the time of last sending of the latest content of the data item corresponding to the classification identifier;
judging whether the time interval from the current time is greater than a preset time threshold value or not according to the time of sending the latest content of the data item corresponding to the classification identification at the last time;
and if the judgment result is larger than the time threshold, controlling to execute the operation of sending the latest content of the data item corresponding to the classification identification.
3. A method for updating data items of a web interface is characterized by comprising the following steps:
receiving the latest content of a data item needing to be updated on a webpage interface, wherein the latest content carries a classification identifier corresponding to the data item to which the latest content belongs, and the classification identifier is preset for each data item according to the data type output by the data item;
determining a target data item to be updated on the webpage interface according to the classification identification of the data item;
and if the time interval between two adjacent data updates is always smaller than a preset interval threshold and continuously larger than a preset duration threshold, immediately updating the content of the target data item by using the received latest content.
4. The method of claim 3, wherein before the content updating of the target data item with the received latest content, the method further comprises:
judging whether the content currently displayed on the webpage interface comprises the target data item;
and when the target data item is judged to be included, triggering the operation of updating the content of the target data item by utilizing the received latest content.
5. The method according to claim 3 or 4, wherein before the content update of the target data item with the received latest content, the method further comprises:
acquiring the last time of executing content updating operation on the target data item;
comparing the time of last content update operation with the time of data marked in the latest content received locally;
if the time of last content updating operation is earlier than the data time marked in the latest locally received content, directly executing the content updating operation on the target data item; otherwise, acquiring the difference between the target data item and the latest content, and managing the content of the target data item according to the processing result after the processing result of the difference is obtained.
6. A data item updating apparatus for a web interface, comprising:
the first acquisition module is used for acquiring a classification identifier corresponding to a data item needing to be updated on a webpage interface, wherein the classification identifier is preset for each data item according to the data type output by the data item;
the detection module is used for detecting the content of the data item to be updated on the webpage interface according to the classification identifier;
the second acquisition module is used for acquiring the latest content of the data item with the updated content after detecting that the content of the data item with the same classification identifier is updated;
and the sending module is used for immediately sending the latest content of the data item corresponding to the classification identifier if the time interval between two adjacent data updates is always smaller than a preset interval threshold and continuously larger than a preset duration threshold, wherein the latest content carries the classification identifier corresponding to the data item to which the latest content belongs.
7. The apparatus of claim 6, further comprising:
a third obtaining module, configured to obtain, before sending the latest content of the data item corresponding to the classification identifier, a time when the latest content of the data item corresponding to the classification identifier was last sent;
the judging module is used for judging whether the time interval from the current time is greater than a preset time threshold value or not according to the time of sending the latest content of the data item corresponding to the classification identification last time;
and the control module is used for controlling and executing the operation of sending the latest content of the data item corresponding to the classification identification if the judgment result is larger than the time threshold.
8. A data item updating apparatus for a web interface, comprising:
the receiving module is used for receiving the latest content of the data item needing to be updated on the webpage interface, wherein the latest content carries the classification identifier corresponding to the data item to which the latest content belongs, and the classification identifier is preset for each data item according to the data type output by the data item;
the determining module is used for determining a target data item to be updated on the webpage interface according to the classification identification of the data item;
and the updating module is used for immediately updating the content of the target data item by utilizing the received latest content and the received latest content if the data updating time of the current time and the last time are always smaller than a preset interval threshold and continuously larger than a preset duration threshold.
9. The apparatus of claim 8, further comprising:
the second judging module is used for judging whether the content currently displayed on the webpage interface comprises the target data item before updating the content of the target data item;
and the triggering module is used for triggering the operation of updating the content of the target data item by utilizing the received latest content when the target data item is judged to be included.
10. The apparatus of claim 8 or 9, further comprising:
a fourth obtaining module, configured to obtain, before content update is performed on the target data item, time when the target data item last performs a content update operation;
the comparison module is used for comparing the time of last content updating operation with the data time marked in the latest locally received content;
the management module is used for directly executing the operation of updating the content of the target data item if the time of last executing the content updating operation is earlier than the data time marked in the latest locally received content; otherwise, acquiring the difference between the target data item and the latest content, and managing the content of the target data item according to the processing result after the processing result of the difference is obtained.
CN201811146283.5A 2018-09-26 2018-09-26 Method and device for updating data items of webpage interface Active CN109376320B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811146283.5A CN109376320B (en) 2018-09-26 2018-09-26 Method and device for updating data items of webpage interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811146283.5A CN109376320B (en) 2018-09-26 2018-09-26 Method and device for updating data items of webpage interface

Publications (2)

Publication Number Publication Date
CN109376320A CN109376320A (en) 2019-02-22
CN109376320B true CN109376320B (en) 2021-01-15

Family

ID=65403218

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811146283.5A Active CN109376320B (en) 2018-09-26 2018-09-26 Method and device for updating data items of webpage interface

Country Status (1)

Country Link
CN (1) CN109376320B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110809007B (en) * 2019-11-20 2020-06-02 国网江苏省电力有限公司信息通信分公司 Method and system for controlling electric power IMS state presence service flow

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102184164A (en) * 2011-04-27 2011-09-14 汉王科技股份有限公司 Method for updating pages and electronic reader

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0612673D0 (en) * 2006-06-27 2006-08-09 Gems Tv Ltd Computer system
CN103166916B (en) * 2011-12-12 2016-08-17 深圳市金蝶中间件有限公司 Method for updating pages and system
CN105095226B (en) * 2014-04-25 2019-08-02 广州市动景计算机科技有限公司 Web page resources loading method and device
CN104331306B (en) * 2014-10-14 2017-05-10 北京齐尔布莱特科技有限公司 Content updating method, equipment and system
CN104778211A (en) * 2015-03-18 2015-07-15 微梦创科网络科技(中国)有限公司 Method, client, server and system for refreshing partial page modules
CN107168999A (en) * 2017-03-30 2017-09-15 咪咕数字传媒有限公司 A kind of method for updating pages and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102184164A (en) * 2011-04-27 2011-09-14 汉王科技股份有限公司 Method for updating pages and electronic reader

Also Published As

Publication number Publication date
CN109376320A (en) 2019-02-22

Similar Documents

Publication Publication Date Title
CN106202581B (en) A kind of data search method and device
CN104518887B (en) A kind of package recommendation method and device
CN111701237B (en) Virtual item placing method and device, storage medium and electronic equipment
CN105451260B (en) Network request method, network fluctuation measuring method and device
CN103024585A (en) Program recommendation system, program recommendation method and terminal equipment
CN110765208B (en) Data synchronization method and device, electronic equipment and storage medium
WO2019085754A1 (en) Application cleaning method and apparatus, and storage medium and electronic device
CN109376320B (en) Method and device for updating data items of webpage interface
CN111523035B (en) Recommendation method, device, server and medium for APP browsing content
CN110634477A (en) Context judgment method, device and system based on scene perception
CN116132742A (en) Method for determining video playing speed doubling value, video playing method, device and equipment
CN107995098A (en) Information-pushing method and device
CN107391763A (en) Information display method and device
CN105677678A (en) Determination method for first screen positions of pages, webpage information display method and system
CN106293420A (en) Application Hints method for information display and device
CN104883705A (en) Problem positioning method for data service complaints and device thereof
CN110147481B (en) Media content pushing method and device and storage medium
CN110806909A (en) Method and device for determining page frame dropping information of application program and electronic equipment
CN115237322A (en) Intelligent terminal processing method, intelligent terminal processing device and intelligent terminal
CN111741337B (en) Recommendation information display method, device and equipment
CN113626449A (en) Data storage method, data query method and related equipment
CN102932234B (en) Method, the equipment and system of pushed information and refreshing number is shown in refresh process
CN113590914A (en) Information processing method, device, electronic equipment and storage medium
CN112650595A (en) Communication content processing method and related device
CN110487016A (en) A kind of method, apparatus and system carrying out accurate information push to intelligent refrigerator

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20201207

Address after: 215100 No. 1 Guanpu Road, Guoxiang Street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Applicant after: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 450018 Henan province Zheng Dong New District of Zhengzhou City Xinyi Road No. 278 16 floor room 1601

Applicant before: ZHENGZHOU YUNHAI INFORMATION TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant