CN108399222B - Page refreshing method and device - Google Patents

Page refreshing method and device Download PDF

Info

Publication number
CN108399222B
CN108399222B CN201810141976.9A CN201810141976A CN108399222B CN 108399222 B CN108399222 B CN 108399222B CN 201810141976 A CN201810141976 A CN 201810141976A CN 108399222 B CN108399222 B CN 108399222B
Authority
CN
China
Prior art keywords
page
sub
data
updating
parent
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
CN201810141976.9A
Other languages
Chinese (zh)
Other versions
CN108399222A (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 QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201810141976.9A priority Critical patent/CN108399222B/en
Publication of CN108399222A publication Critical patent/CN108399222A/en
Application granted granted Critical
Publication of CN108399222B publication Critical patent/CN108399222B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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

Abstract

The embodiment of the invention provides a page refreshing method and a device, wherein the page refreshing method comprises the following steps: and displaying a parent page comprising a plurality of functional areas, and jumping to a corresponding child page according to triggering of the functional areas. And monitoring the trigger event in the sub-page, generating a corresponding notification message according to the preset trigger event after monitoring the preset trigger event, and updating the functional area corresponding to the sub-page in the parent page according to the notification message. Therefore, the repeated request of the whole page data is avoided when the father page is refreshed, the network data communication cost is reduced, and the page refreshing time is reduced.

Description

Page refreshing method and device
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a page refreshing method and device.
Background
When a user browses a page in application software of the mobile terminal and certain data of the network end are updated, the user hopes that the page displaying the data of the mobile terminal can be refreshed timely and the latest data is displayed. For example, if the father page shows the number of votes for a star or the number of votes for an activity, after the user leaves the father page and enters the corresponding child page, successfully completes the operations of the votes or the votes and the like in the child page, and returns to the father page, the user wants to see that the number of votes or the number of votes changes, the mobile terminal is required to actively refresh the father page to obtain the latest number of votes or votes.
However, the current method for refreshing the page by the mobile terminal generally obtains the latest data of the whole page by calling the network terminal, and renders the display page. The method is simple to implement, but when only a small amount of data in the page needs to be updated, the refreshing method is obviously high in cost, as most of data in the page is repeated and unchanged, and calling the network terminal to refresh the whole page can cause slow page loading and influence user experience.
Therefore, how to effectively improve the refresh efficiency in the page refresh process is a technical problem to be solved urgently at present.
Disclosure of Invention
The embodiment of the invention provides a page refreshing method and device, and aims to solve the problem of low page refreshing efficiency in the prior art.
In order to solve the above problem, in a first aspect, the present invention discloses a page refreshing method, including:
displaying a parent page, wherein the parent page comprises a plurality of functional areas, and the functional areas correspond to child pages;
jumping to a corresponding sub-page according to triggering of the functional area;
monitoring a trigger event in the sub-page;
after a preset trigger event is monitored, generating a corresponding notification message according to the preset trigger event;
and updating the functional area corresponding to the child page in the parent page according to the notification message.
Preferably, after jumping to the corresponding sub-page according to the triggering of the functional area, the method further includes: and storing the page data of the parent page into a cache.
Preferably, the step of updating the functional area corresponding to the child page in the parent page according to the notification message includes: determining a functional area corresponding to the sub-page in the parent page according to the sub-page; and updating the page data of the functional area corresponding to the sub-page in the cache according to the notification message.
Preferably, before the parent page refreshes the functional area corresponding to the child page, the method further includes: and sending the notification message to a server to notify the server of updating the page updating data corresponding to the sub-page.
Preferably, each functional area corresponds to a local page data interface; the step of updating the functional area corresponding to the child page in the parent page according to the notification message includes: determining a functional area corresponding to the sub-page in the parent page according to the sub-page; according to the notification message, calling a local page data interface corresponding to the functional area to acquire page updating data corresponding to the notification message; and updating the functional area in the father page according to the page updating data.
Preferably, the parent page corresponds to a full-page data interface, and the method further includes: calling a full-page data interface corresponding to the father page to acquire full-page updating data of the father page;
and refreshing the parent page according to the full-page updating data.
In a second aspect, to solve the above problem, the present invention further discloses a page refreshing apparatus, including:
the display module is used for displaying a parent page, wherein the parent page comprises a plurality of functional areas, and the functional areas correspond to sub-pages;
the jump module is used for jumping to a corresponding sub-page according to the triggering of the functional area;
the monitoring module is used for monitoring the triggering event in the sub-page;
the message generation module is used for generating a corresponding notification message according to a preset trigger event after the preset trigger event is monitored;
and the page refreshing module is used for updating the functional area corresponding to the sub-page in the father page according to the notification message.
Preferably, the apparatus further comprises: and the storage module is used for storing the page data of the father page into a cache.
Preferably, the page refresh module includes: the region determining unit is used for determining a functional region corresponding to the sub-page in the parent page according to the sub-page; and the first data updating unit is used for updating the page data of the functional area corresponding to the sub-page in the cache according to the notification message.
Preferably, the apparatus further comprises: and the message uploading module is used for sending the notification message to a server so as to notify the server of updating the page updating data corresponding to the sub-page.
Preferably, each functional area corresponds to a local page data interface; the page refresh module includes: the region determining unit is used for determining a functional region corresponding to the sub-page in the parent page according to the sub-page; the local data calling unit is used for calling a local page data interface corresponding to the functional area according to the notification message and acquiring page updating data corresponding to the notification message; and the second data updating unit is used for updating the functional area in the father page according to the page updating data.
Preferably, the parent page corresponds to a full-page data interface, and the apparatus further includes: the full-page refreshing module is used for calling a full-page data interface corresponding to the father page and acquiring full-page updating data of the father page; and refreshing the father page according to the full-page updating data.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements the steps of the above-mentioned page refreshing method.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above page refreshing method are implemented.
To sum up, the embodiment of the present invention displays a parent page, where the parent page includes a plurality of functional areas, and the functional areas correspond to child pages and jump to corresponding child pages according to triggering of the functional areas. And monitoring the trigger event in the sub-page, generating a corresponding notification message according to the preset trigger event after monitoring the preset trigger event, and updating the functional area corresponding to the sub-page in the parent page according to the notification message. Therefore, the repeated request of the whole page data is avoided when the father page is refreshed, the network data communication cost is reduced, and the page refreshing time is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a flowchart of a page refreshing method according to an embodiment of the present invention;
FIG. 2 is a flowchart of another page refreshing method according to an embodiment of the present invention;
FIG. 3 is a flowchart of another page refreshing method according to an embodiment of the present invention;
fig. 4 is a block diagram of a page refreshing apparatus according to an embodiment of the present invention;
FIG. 5 is a block diagram of another page refreshing apparatus according to an embodiment of the present invention;
fig. 6 is a block diagram of a structure of another page refreshing apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, a flowchart of a page refreshing method according to an embodiment of the present invention is shown.
Step 101, displaying a parent page.
Specifically, the parent page includes a plurality of functional regions, and different functional regions correspond to different child pages. Each functional area comprises page display and operation elements such as pictures, texts, buttons, click events and the like. For example, when a user browses a certain page of the mobile terminal, the page includes a functional area showing the number of votes, which contains the number of votes voted, a star avatar, and the like. The mobile terminal can jump from the parent page to the corresponding child page by triggering the functional area.
And 102, jumping to a corresponding sub-page according to triggering of the functional area.
Specifically, the jump from the functional area in the parent page to the corresponding child page can be triggered in a touch or voice control mode. For example, by clicking a functional area where a star avatar is located, the mobile terminal is triggered to jump to a sub-page for voting the star.
Step 103, monitoring the trigger event in the subpage.
Specifically, after jumping from the parent page to the child page corresponding to the functional region, the triggering event in the child page may be monitored. The trigger event includes a preset trigger event, and the preset trigger event is a preset trigger event. For example, the preset trigger event may be a click action on a voting button in the sub-page.
And 104, after monitoring a preset trigger event, generating a corresponding notification message according to the preset trigger event.
Specifically, after a preset trigger event is monitored, a corresponding notification message may be generated in the sub-page according to the preset trigger event. For example, upon listening to a preset trigger event that the voting button is clicked, a corresponding notification message may be generated to notify the broadcast object that the sub-page has triggered an action that may result in an update of the page content. Wherein the broadcast object includes a parent page.
And 105, updating the functional area corresponding to the child page in the parent page according to the notification message.
After generating the corresponding notification message according to the preset trigger event, the notification message may be transmitted to the parent page in a broadcast manner or the like. After the parent page receives the notification message, the refreshing of the functional area corresponding to the child page can be triggered.
Specifically, after the parent page receives the notification message, the page update data corresponding to the child page may be acquired from the cache or the server. Therefore, the functional area corresponding to the sub-page in the parent page can be refreshed according to the page updating data. In practical application, if only the page data in the functional area corresponding to the child page in the page needs to be updated, only the parent page can be locally updated, so that the repeated request of the whole page data when the parent page is refreshed can be avoided.
In summary, in the embodiments of the present invention, a parent page is displayed, where the parent page includes a plurality of functional areas, and the functional areas correspond to sub-pages, and jump to the corresponding sub-pages according to triggering of the functional areas. And monitoring the trigger event in the sub-page, generating a corresponding notification message according to the preset trigger event after monitoring the preset trigger event, and updating the functional area corresponding to the sub-page in the parent page according to the notification message. Therefore, the repeated request of the whole page data is avoided when the father page is refreshed, the network data communication cost is reduced, and the page refreshing time is reduced.
Example two
On the basis of the above embodiments, the present embodiment further discusses a page refresh method.
Referring to fig. 2, a flowchart of another page refresh method provided by the embodiment of the present invention is shown:
step 201, displaying a parent page.
Specifically, the parent page may be displayed according to page data returned by the server. The page data returned by the server can be in various forms. For example, the page data may be organized in a javascript object notation (json) data format. As one possible implementation, the page data of the parent page may be represented as:
Figure BDA0001577873660000061
Figure BDA0001577873660000071
the father page can divide the page into a plurality of functional areas through the page data, and different functional areas correspond to different sub-pages. The mobile terminal can jump from the parent page to the corresponding child page by triggering a certain functional area.
Step 202, jumping to the corresponding sub-page according to the triggering of the functional area.
Specifically, the jump from the functional area in the parent page to the corresponding child page can be triggered in a touch or voice control mode.
Step 203, saving the page data of the parent page to a cache.
Specifically, after jumping to the corresponding sub-page according to the triggering of the functional area, the page data of the parent page may be stored in the cache. Therefore, when the father page needs to be updated, the page data in the cache can be directly called by slightly modifying, and the efficiency of refreshing the father page can be greatly improved.
Step 204, monitoring the trigger event in the sub-page.
Step 205, after monitoring a preset trigger event, generating a corresponding notification message according to the preset trigger event.
Specifically, after jumping from the parent page to the child page corresponding to the functional region, the triggering event in the child page may be monitored. The trigger event includes a preset trigger event, and the preset trigger event is a preset trigger event. The preset trigger event as a monitoring target can be recorded in the page data of the sub-page in advance, and the sub-page monitors the preset trigger event. And after the preset trigger event is monitored, generating a notification message corresponding to the preset trigger event by utilizing the association relationship between the preset trigger event and the notification message recorded in the page data of the sub-page in advance. For example, if the page data is organized by json data format. As one possible implementation, the page data of the sub-page may be represented as:
Figure BDA0001577873660000081
Figure BDA0001577873660000091
the sub-page can monitor the trigger event in the sub-page through the trigger event in the page data sub-page, and generates a corresponding notification message according to the preset trigger event after monitoring the preset trigger event. The type of the triggering event is refresh _ event, and the notification message is vote _ action.
And step 206, determining a functional area corresponding to the child page in the parent page according to the child page.
Specifically, after jumping to a corresponding sub-page according to triggering of the functional region, a corresponding relationship between the functional region and the sub-page in the parent page may be established, and the functional region corresponding to the sub-page in the parent page may be determined according to the corresponding relationship.
Step 207, updating the page data of the functional area corresponding to the sub-page in the cache according to the notification message.
Specifically, the parent page may monitor the notification message broadcast by the child page through a monitoring task set in the page data. When the parent page monitors the notification message, the parent page can be determined to have the page updating requirement according to the notification message. After determining that the page needs to be updated, the page data of the functional area corresponding to the sub-page in the cache can be updated. So that page data required for updating the parent page can be quickly acquired. And when only the page data in the functional area corresponding to the sub-page in the page needs to be updated, only partial data in the cache can be updated, so that the efficiency of page updating can be greatly improved.
In practical application, after the parent page receives the notification message broadcast by the child page, it may be determined whether the page data has changed, and after determining that the page data has changed, the page may be updated. When the child page jumps to the parent page, the page may be rendered and the locally updated page data in the cache may be displayed.
In summary, the embodiment of the present invention stores the page data of the parent page in the cache, and monitors the trigger event in the child page. And when a preset trigger event is monitored, generating a corresponding notification message according to the preset trigger event. And determining a functional area corresponding to the sub-page in the parent page according to the sub-page, and updating page data of the functional area corresponding to the sub-page in the cache according to the notification message. Therefore, when only the page data in the functional area corresponding to the sub-page needs to be updated in the page, only partial data in the cache can be updated, so that the repeated request of the whole page data when the father page is refreshed can be avoided, the network data communication cost is reduced, and the page refreshing time is shortened.
EXAMPLE III
On the basis of the above embodiments, the present embodiment further discusses a page refresh method.
Referring to fig. 3, a flowchart of another page refreshing method provided by the embodiment of the present invention is shown:
step 301, display the parent page.
Specifically, after the server receives the page request of the parent page, page data showing current information may be returned to the parent page. For example, if the page is used to show the voting values for the stars, the page data includes the voting values currently obtained by the stars when the parent page is displayed.
Step 302, jumping to a corresponding sub-page according to the triggering of the functional area.
Specifically, the jump from the functional area in the parent page to the corresponding child page can be triggered by clicking a functional area in the parent page. For example, by clicking a functional area where a star avatar is located, the mobile terminal is triggered to jump to a sub-page for voting the star.
Step 303, monitoring the trigger event in the sub-page.
Specifically, after jumping from the parent page to the child page corresponding to the functional region, the triggering event in the child page may be monitored. The trigger event includes a preset trigger event, and the preset trigger event is a preset trigger event. For example, it may be agreed in advance to click a voting button in the sub-page as a preset trigger event. When the trigger event exists in the page, the identified trigger event is compared with the preset trigger event to determine whether the associated action needs to be executed.
Step 304, after monitoring the preset trigger event, generating a corresponding notification message according to the preset trigger event.
Specifically, the corresponding notification message may be generated in the sub-page according to the preset trigger event. For example, upon listening to a preset trigger event that the voting button is clicked, a corresponding notification message may be generated to notify the parent page that the child page has triggered an action that may result in an update of the page content.
Step 305, sending a notification message to the server to notify the server to update the page update data corresponding to the sub-page.
Specifically, after the sub-page generates the notification message, the notification message may be sent to the server to notify the server to update the page update data corresponding to the sub-page. So that the server obtains the data with timeliness. For example, after the user votes in the sub-page, the server may be caused to update the total vote value by sending a notification message to the server.
And step 306, determining a functional area corresponding to the child page in the parent page according to the child page.
Specifically, after jumping to the corresponding sub-page according to the triggering of the functional area, the corresponding relationship between the functional area and the sub-page in the parent page may be established. Therefore, the functional region corresponding to the child page in the parent page can be determined according to the correspondence.
Step 307, according to the notification message, calling a local page data interface corresponding to the functional area, and acquiring page update data corresponding to the notification message.
Specifically, each functional area in the parent page may correspond to a local page data interface, and the functional area may be refreshed only by calling the local page data interface, so that the local refresh of the parent page may be implemented. Therefore, after the parent page receives the notification message, the local page data interface corresponding to the functional area can be called to acquire the page update data corresponding to the notification message. Thereby reducing network data communication costs.
And 308, updating the functional area in the parent page according to the page updating data.
Specifically, after the page update data corresponding to the notification message is acquired, the functional area in the parent page may be updated according to the page update data. Thus, repeated requests for entire page data while refreshing the parent page can be avoided. Therefore, when the parent page is refreshed, the real-time page data can be obtained, and the page refreshing time can be shortened.
In practical applications, the parent page may correspond to a full-page data interface. And calling a full-page data interface corresponding to the parent page, acquiring full-page updating data of the parent page, and refreshing the parent page according to the full-page updating data. For example, if the parent page needs to update the full page before the child page jumps back to the parent page, the parent page may be updated by the above method if the parent page does not monitor the notification message, or if the parent page is displayed for more than a threshold time.
In summary, the embodiment of the present invention monitors the trigger event in the sub-page. And when a preset trigger event is monitored, generating a corresponding notification message according to the preset trigger event. And sending a notification message to the server to notify the server to update the page update data corresponding to the sub-page. After the parent page monitors the notification message, the parent page can call a local page data interface corresponding to the functional area according to the notification message, obtain page update data corresponding to the notification message, and update the functional area in the parent page according to the page update data. Therefore, when only a small amount of content in the parent page is updated, real-time page data can be obtained, and the page refreshing time can be shortened. Thereby effectively improving the use experience of the user.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Example four
On the basis of the above embodiments, the present embodiment further provides a page refreshing apparatus.
Referring to fig. 4, a block diagram of a structure of a page refreshing apparatus according to an embodiment of the present invention is shown, which may specifically include the following modules:
a display module 401, configured to display a parent page, where the parent page includes a plurality of functional areas, and the functional areas correspond to child pages;
a jump module 402, configured to jump to a corresponding sub-page according to triggering of the functional area;
a monitoring module 403, configured to monitor a trigger event in the sub-page;
a message generating module 404, configured to generate a corresponding notification message according to a preset trigger event after the preset trigger event is monitored;
and a page refreshing module 405, configured to update the functional area corresponding to the child page in the parent page according to the notification message.
Referring to fig. 5, in an alternative implementation manner of the present invention, on the basis of fig. 4, the page refreshing apparatus further includes:
a saving module 406, configured to save the page data of the parent page in the cache.
Specifically, the page refresh module 405 includes: an area determination unit 4051 and a first data update unit 4052.
The area determining unit 4051 is configured to determine, according to the child page, a functional area in the parent page corresponding to the child page;
the first data updating unit 4052 is configured to update the page data of the functional area corresponding to the sub-page in the cache according to the notification message.
Referring to fig. 6, in an alternative implementation manner of the present invention, on the basis of fig. 4, the page refreshing apparatus further includes:
the message uploading module 407 is configured to send the notification message to a server to notify the server to update the page update data corresponding to the sub-page.
Specifically, the page refresh module 405 includes: an area determination unit 4051, a local data calling unit 4053, and a second data updating unit 4054.
The area determining unit 4051 is configured to determine, according to the child page, a functional area in the parent page corresponding to the child page;
a local data calling unit 4053, configured to call, according to the notification message, a local page data interface corresponding to the functional area, and acquire page update data corresponding to the notification message;
the second data updating unit 4054 is configured to update the functional area in the parent page according to the page update data.
In practical application, the device further comprises: the full-page refreshing module is used for calling a full-page data interface corresponding to the father page and acquiring full-page updating data of the father page; and refreshes the parent page according to the full page update data, not shown in the figure.
In summary, in the embodiment of the present invention, the display module 401 displays the parent page, where the parent page includes a plurality of functional areas, the functional areas correspond to the sub-pages, and the jump module 402 jumps to the corresponding sub-pages according to the triggering of the functional areas. The monitoring module 403 monitors the trigger event in the sub-page, and when a preset trigger event is monitored, the message generating module 404 generates a corresponding notification message according to the preset trigger event, and the page refreshing module 405 updates the functional area corresponding to the sub-page in the parent page according to the notification message. Therefore, the repeated request of the whole page data is avoided when the father page is refreshed, the network data communication cost is reduced, and the page refreshing time is reduced.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or terminal equipment comprising the element.
The page refreshing method and device provided by the invention are introduced in detail, and a specific example is applied in the text to explain the principle and the implementation of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (14)

1. A page refreshing method is applied to a mobile terminal, and is characterized by comprising the following steps:
displaying a parent page, wherein the parent page comprises a plurality of functional areas, and the functional areas correspond to child pages;
jumping to a corresponding sub-page according to triggering of the functional area;
monitoring a trigger event in the sub-page;
after a preset trigger event is monitored, generating a corresponding notification message according to the preset trigger event;
and updating the functional area corresponding to the child page in the parent page according to the notification message.
2. The method of claim 1, further comprising, after jumping to a corresponding sub-page upon triggering of a functional zone:
and storing the page data of the parent page into a cache.
3. The method according to claim 2, wherein the step of updating the functional area corresponding to the child page in the parent page according to the notification message comprises:
determining a functional area corresponding to the sub-page in the parent page according to the sub-page;
and updating the page data of the functional area corresponding to the sub-page in the cache according to the notification message.
4. The method according to claim 1, before the parent page refreshes the functional area corresponding to the child page, further comprising:
and sending the notification message to a server to notify the server of updating the page updating data corresponding to the sub-page.
5. The method of claim 4, wherein each functional area corresponds to a local page data interface; the step of updating the functional area corresponding to the child page in the parent page according to the notification message includes:
determining a functional area corresponding to the sub-page in the parent page according to the sub-page;
according to the notification message, calling a local page data interface corresponding to the functional area to acquire page updating data corresponding to the notification message;
and updating the functional area in the father page according to the page updating data.
6. The method of claim 1, wherein the parent page corresponds to a full-page data interface, the method further comprising:
calling a full-page data interface corresponding to the father page to acquire full-page updating data of the father page;
and refreshing the parent page according to the full-page updating data.
7. A page refreshing device is applied to a mobile terminal, and is characterized by comprising:
the display module is used for displaying a parent page, wherein the parent page comprises a plurality of functional areas, and the functional areas correspond to sub-pages;
the jump module is used for jumping to a corresponding sub-page according to the triggering of the functional area;
the monitoring module is used for monitoring the triggering event in the sub-page;
the message generation module is used for generating a corresponding notification message according to a preset trigger event after the preset trigger event is monitored;
and the page refreshing module is used for updating the functional area corresponding to the sub-page in the father page according to the notification message.
8. The apparatus of claim 7, further comprising:
and the storage module is used for storing the page data of the father page into a cache.
9. The apparatus of claim 8, wherein the page refresh module comprises:
the region determining unit is used for determining a functional region corresponding to the sub-page in the parent page according to the sub-page;
and the first data updating unit is used for updating the page data of the functional area corresponding to the sub-page in the cache according to the notification message.
10. The apparatus of claim 7, further comprising:
and the message uploading module is used for sending the notification message to a server so as to notify the server of updating the page updating data corresponding to the sub-page.
11. The apparatus of claim 10, wherein each functional area corresponds to a local page data interface; the page refresh module includes:
the region determining unit is used for determining a functional region corresponding to the sub-page in the parent page according to the sub-page;
the local data calling unit is used for calling a local page data interface corresponding to the functional area according to the notification message and acquiring page updating data corresponding to the notification message;
and the second data updating unit is used for updating the functional area in the father page according to the page updating data.
12. The apparatus of claim 7, wherein the parent page corresponds to a full-page data interface, the apparatus further comprising:
the full-page refreshing module is used for calling a full-page data interface corresponding to the father page and acquiring full-page updating data of the father page; and refreshing the father page according to the full-page updating data.
13. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on said memory and executable on said processor, said computer program, when executed by said processor, implementing the steps of the page refresh method according to any one of claims 1 to 6.
14. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the page refresh method according to any one of claims 1 to 6.
CN201810141976.9A 2018-02-11 2018-02-11 Page refreshing method and device Active CN108399222B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810141976.9A CN108399222B (en) 2018-02-11 2018-02-11 Page refreshing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810141976.9A CN108399222B (en) 2018-02-11 2018-02-11 Page refreshing method and device

Publications (2)

Publication Number Publication Date
CN108399222A CN108399222A (en) 2018-08-14
CN108399222B true CN108399222B (en) 2020-09-01

Family

ID=63095952

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810141976.9A Active CN108399222B (en) 2018-02-11 2018-02-11 Page refreshing method and device

Country Status (1)

Country Link
CN (1) CN108399222B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109213560B (en) * 2018-09-12 2020-11-27 南京尚网网络科技有限公司 Method and equipment for displaying information page
CN109358794B (en) * 2018-10-10 2022-04-22 平安普惠企业管理有限公司 WEB application program page refreshing method, device, computer equipment and storage medium
CN109885798A (en) * 2019-02-18 2019-06-14 迅雷计算机(深圳)有限公司 A kind of page furbishing method of Android application
CN110321140A (en) * 2019-05-23 2019-10-11 天津五八到家科技有限公司 Data-updating method, device and mobile terminal
CN110569097B (en) * 2019-08-26 2022-12-06 北京奇艺世纪科技有限公司 Information display method and device
CN111399872A (en) * 2020-02-28 2020-07-10 北京无限光场科技有限公司 Page updating method and device and electronic equipment
CN111741257B (en) * 2020-05-21 2022-01-28 深圳市商汤科技有限公司 Data processing method and device, electronic equipment and storage medium
CN112632428B (en) * 2020-12-25 2023-10-10 北京奇艺世纪科技有限公司 Page local refreshing method, device, equipment and storage medium
CN112612552B (en) * 2020-12-31 2023-05-23 五八有限公司 Application resource loading method and device, electronic equipment and readable storage medium
CN113835702A (en) * 2021-09-24 2021-12-24 广州方硅信息技术有限公司 Application program interface construction method and device, equipment and medium thereof

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364236A (en) * 2008-09-18 2009-02-11 中兴通讯股份有限公司 Data processing apparatus and processing method of WEB page
CN102325191A (en) * 2011-10-08 2012-01-18 新一站保险代理有限公司 Fully automatic treatment method and frame without page refresh
CN103544036A (en) * 2013-10-23 2014-01-29 北京荣之联科技股份有限公司 Page loading method, terminal and system
CN104572968A (en) * 2014-12-30 2015-04-29 北京奇虎科技有限公司 Page updating method and device
CN104778211A (en) * 2015-03-18 2015-07-15 微梦创科网络科技(中国)有限公司 Method, client, server and system for refreshing partial page modules
CN106293352A (en) * 2015-05-21 2017-01-04 华为软件技术有限公司 Page makeup method, terminal and server
CN106886545A (en) * 2016-06-08 2017-06-23 阿里巴巴集团控股有限公司 The caching method and device of page display method, page resource
US9882954B2 (en) * 2009-03-31 2018-01-30 Snap Inc. Selective partial updates of web content

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364236A (en) * 2008-09-18 2009-02-11 中兴通讯股份有限公司 Data processing apparatus and processing method of WEB page
US9882954B2 (en) * 2009-03-31 2018-01-30 Snap Inc. Selective partial updates of web content
CN102325191A (en) * 2011-10-08 2012-01-18 新一站保险代理有限公司 Fully automatic treatment method and frame without page refresh
CN103544036A (en) * 2013-10-23 2014-01-29 北京荣之联科技股份有限公司 Page loading method, terminal and system
CN104572968A (en) * 2014-12-30 2015-04-29 北京奇虎科技有限公司 Page updating method and device
CN104778211A (en) * 2015-03-18 2015-07-15 微梦创科网络科技(中国)有限公司 Method, client, server and system for refreshing partial page modules
CN106293352A (en) * 2015-05-21 2017-01-04 华为软件技术有限公司 Page makeup method, terminal and server
CN106886545A (en) * 2016-06-08 2017-06-23 阿里巴巴集团控股有限公司 The caching method and device of page display method, page resource

Also Published As

Publication number Publication date
CN108399222A (en) 2018-08-14

Similar Documents

Publication Publication Date Title
CN108399222B (en) Page refreshing method and device
US20200412680A1 (en) Prioritizing messages within a message network
DE102014009871B4 (en) Predictive forwarding of message data
US10402058B2 (en) Message display method and terminal device
RU2632168C2 (en) Method and device for displaying information streams in social network and server
KR101640842B1 (en) Method and device and program and recording medium for displaying pushed information
US20140129661A1 (en) Smart Web Notifications
CN107450900B (en) Screenshot method and device
CN109831532B (en) Data sharing method, device, equipment and medium
CN106470360B (en) Video player calling method and device
EP3403192A1 (en) Explicit and implicit tv and movie viewing availability reminders
CN112711372B (en) Page response method in visual impairment mode, computing device and computer storage medium
CN112422409B (en) Instant messaging method, device, terminal and storage medium
CN112269917B (en) Media resource display method and device, equipment, system and storage medium
CN110958462A (en) Live broadcast activity page display method and device, storage medium and live broadcast system
CN103605456A (en) Method for hiding and displaying system bars and intelligent terminal
CN112764653A (en) Method and device for acquiring information based on pull-down page
CN108933947B (en) Bullet screen display method and device
CN113435926A (en) Advertisement display method and device, storage medium and electronic device
CN111698365A (en) Information display method and device
US20150293950A1 (en) Method, apparatus, and storage medium for removing redundant information from terminal
CN104331405B (en) Data report processing method and device
CN110866208B (en) Page response type layout method, device and equipment
WO2017165253A1 (en) Modular communications
CN113111196B (en) Multimedia resource recommendation method and related device

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