CN108681550B - Page refreshing method and device and page refreshing control method and device - Google Patents

Page refreshing method and device and page refreshing control method and device Download PDF

Info

Publication number
CN108681550B
CN108681550B CN201810277229.8A CN201810277229A CN108681550B CN 108681550 B CN108681550 B CN 108681550B CN 201810277229 A CN201810277229 A CN 201810277229A CN 108681550 B CN108681550 B CN 108681550B
Authority
CN
China
Prior art keywords
page
unit
target
target page
refreshing
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
CN201810277229.8A
Other languages
Chinese (zh)
Other versions
CN108681550A (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 CN201810277229.8A priority Critical patent/CN108681550B/en
Publication of CN108681550A publication Critical patent/CN108681550A/en
Application granted granted Critical
Publication of CN108681550B publication Critical patent/CN108681550B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a page refreshing method and a corresponding device, and a page refreshing control method and a corresponding device, wherein the page refreshing control method comprises the following steps: receiving a page refreshing request from a client, wherein the page refreshing request comprises a name identifier of each page unit in a target page to be refreshed, and the name identifier of the page unit triggering the page refreshing request in the target page is provided with a preset mark; determining a target page unit list to be refreshed in a target page and refresh data of at least one target page unit in the target page unit list according to the name identification and the preset mark of each page unit in the target page to be refreshed in the page refresh request; and responding to the page refreshing request, and sending the target page unit list and the refreshing data of at least one target page unit to the client. The invention can accurately and quickly realize the local refreshing of the target page.

Description

Page refreshing method and device and page refreshing control method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for page refresh, and a method and an apparatus for controlling page refresh.
Background
At present, the data volume of a page of a client or a page of a webpage is large, when a user operates a certain page, the page has a specific response, and the content of the page is updated due to the response. When a page needs to be locally refreshed, in a conventional scheme, a client needs to send an explicit local page refresh request to a server, where the local page refresh request indicates a local page that needs to be refreshed currently, and then the server returns updated page data of the local page to the client.
For example, as shown in fig. 1, a page of a certain video application includes video content 11 played by a player, and also includes 3 page units 12, 13, and 14, where a page unit represents a sub-page in the page where the content is independently shown and independently displayed. In addition, it should be noted that the rectangular box drawn in fig. 1 is only for the convenience of the reader to understand the location of the region where the three page units are located, and does not belong to a part of the page. In the partial refresh, the page contents of any one or more of the 3 page units (cards) in fig. 1 are refreshed.
And the style and the number of card in the page can be changed with the upgrade update of the webpage and the version upgrade of the application program. For example, the client page includes 3 cards, card1, card2, and card 3. The user clicks card2, and the client's page refresh logic requests the server to refresh the page contents of card2 and card 3. Wherein the page refresh logic of the client is fixed.
Then when the client version is upgraded, the server replaces card1, card2, and card3 contained in the client page with card2, card4, and card5, then when the client-side user clicks card2 in the page again, if the page partial refresh is still performed according to the previous page refresh logic, the client still requests the server to refresh the page contents of card2 and card3 in the page, but actually, card2 and card4 should be refreshed at this time, and card3 has been deleted in the page after the version is upgraded. Then to avoid a page partial refresh error after client upgrade, the client side needs to rewrite the partial refresh logic of each page every time the client version is upgraded, in the above example, the partial refresh logic of click card2 needs to be modified to request refreshing of the page contents in card2 and card 4.
Thus, in the conventional page refresh scheme, after the version of the client is upgraded, in order to avoid a partial refresh error of the page, the client side needs to rewrite the page refresh logic in time along with the version upgrade of the client.
Disclosure of Invention
The invention provides a page refreshing method and device and a page refreshing control method and device, which aim to solve the problem that a page refreshing logic needs to be rewritten at any time along with a client version when page local refreshing is carried out in the related technology.
In order to solve the above problem, according to an aspect of the present invention, the present invention discloses a method for controlling page refresh, which is applied to a server, and includes:
receiving a page refreshing request from a client, wherein the page refreshing request comprises a name identifier of each page unit in a target page to be refreshed, and the name identifier of the page unit triggering the page refreshing request in the target page is provided with a preset mark;
determining a target page unit list to be refreshed in the target page and refresh data of at least one target page unit in the target page unit list according to the name identifier of each page unit in the target page to be refreshed in the page refresh request and the preset mark;
and responding to the page refreshing request, and sending the target page unit list and the refreshing data of the at least one target page unit to the client.
Optionally, the page refresh request further includes a sorting identifier of each page unit in the target page;
after receiving the page refresh request from the client, the method further includes:
determining a refresh sequencing identifier of at least one target page unit in the target page unit list according to the sequencing identifier of each page unit in the target page in the page refresh request;
and responding to the page refreshing request, and sending the refreshing sorting identification of the at least one target page unit to the client so that the client performs reordering display on the page data of each page unit in the target page according to the refreshing sorting identification.
Optionally, before receiving the page refresh request from the client, the method further includes:
receiving a first opening request aiming at a target page from a client;
configuring a name identifier for each page unit in the target page;
and responding to the first opening request, and sending the page data and the name identification of each page unit in the target page to the client so that the client displays the page data of each page unit.
Optionally, after receiving a first open request for a target page from a client, the method further includes:
configuring a sequencing identifier for each page unit in the target page;
and responding to the first opening request, and sending the sequencing identifier of each page unit in the target page to the client so that the client sequences the page data displayed by each page unit according to a preset sequencing rule according to the sequencing identifier of each page unit.
According to another aspect of the present invention, the present invention further discloses a page refreshing method, applied to a client, including:
sending a page refreshing request to a server, wherein the page refreshing request comprises a name identifier of each page unit in a target page to be refreshed, and the name identifier of the page unit triggering the page refreshing request in the target page is provided with a preset mark;
receiving a target page unit list to be refreshed from the server and refresh data of at least one target page unit in the target page unit list, wherein the refresh data of the target page unit list and the at least one target page unit are determined by the server according to the name identifier of each page unit in the target page to be refreshed in the page refresh request and the preset mark;
and refreshing the page data of the corresponding target page unit in the target page according to the refreshing data of at least one target page unit in the target page unit list.
Optionally, the page refresh request further includes a sorting identifier of each page unit in the target page;
after the sending of the page refresh request to the server, the method further comprises:
receiving a refresh sequencing identifier of at least one target page unit from the server, wherein the refresh sequencing identifier of the at least one target page unit is determined by the server according to the sequencing identifier of each page unit in the target page in the page refresh request;
refreshing the sequencing identifier of the at least one target page unit according to the refreshing sequencing identifier of the at least one target page unit;
and performing reordering display on the page data of each page unit in the target page according to the current ordering identifier of each page unit in the target page.
Optionally, before the sending the page refresh request to the server, the method further includes:
sending a first opening request aiming at a target page to a server;
receiving response data of the first opening request, wherein the response data comprise page data and name identification of each page unit in the target page;
storing the page data of each page unit and the name identifier of the corresponding page unit in an associated manner;
and displaying the page data of each page unit.
Optionally, the response data further includes a sorting identifier of each page unit in the target page, and after receiving the response data of the first open request, the method further includes:
storing the sequencing identifier of each page unit and the name identifier of the corresponding page unit in an associated manner;
and sequencing the page data displayed by each page unit according to a preset sequencing rule according to the sequencing identifier of each page unit.
According to another aspect of the present invention, the present invention further discloses a page refreshing control device, applied to a server, including:
the system comprises a receiving module, a refreshing module and a refreshing module, wherein the receiving module is used for receiving a page refreshing request from a client, the page refreshing request comprises a name identifier of each page unit in a target page to be refreshed, and the name identifier of the page unit triggering the page refreshing request in the target page is provided with a preset mark;
a first determining module, configured to determine, according to the name identifier of each page unit in the target page to be refreshed in the page refresh request and the preset flag, a target page unit list to be refreshed in the target page and refresh data of at least one target page unit in the target page unit list;
and the first sending module is used for responding to the page refreshing request and sending the target page unit list and the refreshing data of the at least one target page unit to the client.
Optionally, the apparatus further comprises:
a second determining module, configured to determine, when the page refresh request further includes a sorting identifier of each page unit in the target page, a refresh sorting identifier of at least one target page unit in the target page unit list according to the sorting identifier of each page unit in the target page in the page refresh request;
and the second sending module is used for responding to the page refreshing request and sending the refreshing sorting identifier of the at least one target page unit to the client so that the client carries out reordering display on the page data of each page unit in the target page according to the refreshing sorting identifier.
Optionally, the apparatus further comprises:
the receiving module is used for receiving a first opening request aiming at a target page from a client;
the first configuration module is used for configuring a name identifier for each page unit in the target page;
and the third sending module is used for responding to the first opening request, and sending the page data and the name identification of each page unit in the target page to the client so that the client can display the page data of each page unit.
Optionally, the apparatus further comprises:
the second configuration module is used for configuring a sequencing identifier for each page unit in the target page;
and the fourth sending module is used for responding to the first starting request, and sending the sequencing identifier of each page unit in the target page to the client so that the client can sequence the page data displayed by each page unit according to a preset sequencing rule according to the sequencing identifier of each page unit.
According to another aspect of the present invention, the present invention further discloses a page refreshing apparatus, applied to a client, including:
the system comprises a first sending module, a second sending module and a third sending module, wherein the first sending module is used for sending a page refreshing request to a server, the page refreshing request comprises a name identifier of each page unit in a target page to be refreshed, and the name identifier of the page unit triggering the page refreshing request in the target page is provided with a preset mark;
a first receiving module, configured to receive a target page unit list to be refreshed from the server and refresh data of at least one target page unit in the target page unit list, where the target page unit list and the refresh data of the at least one target page unit are determined by the server according to a name identifier of each page unit in the target page to be refreshed in the page refresh request and the preset flag;
and the first refreshing module is used for refreshing the page data of the corresponding target page unit in the target page according to the refreshing data of at least one target page unit in the target page unit list.
Optionally, the apparatus further comprises:
a second receiving module, configured to receive, when the page refresh request further includes a rank identifier of each page unit in the target page, a refresh rank identifier of at least one target page unit from the server, where the refresh rank identifier of the at least one target page unit is determined by the server according to the rank identifier of each page unit in the target page in the page refresh request;
the second refreshing module is used for refreshing the sequencing identifier of the at least one target page unit according to the refreshing sequencing identifier of the at least one target page unit;
and the sequencing module is used for carrying out reordering display on the page data of each page unit in the target page according to the current sequencing identifier of each page unit in the target page.
Optionally, the apparatus further comprises:
the second sending module is used for sending a first opening request aiming at the target page to the server;
a third receiving module, configured to receive response data of the first-time opening request, where the response data includes page data and a name identifier of each page unit in the target page;
the first storage module is used for storing the page data of each page unit and the name identifier of the corresponding page unit in an associated manner;
and the display module is used for displaying the page data of each page unit.
Optionally, the apparatus further comprises:
the second storage module is used for storing the sequencing identifier of each page unit and the name identifier of the corresponding page unit in an associated manner when the response data further comprises the sequencing identifier of each page unit in the target page;
and the sequencing module is used for sequencing the page data displayed by each page unit according to the sequencing identifier of each page unit and a preset sequencing rule.
Compared with the prior art, the invention has the following advantages:
the embodiment of the invention receives the name identifier which is sent by the client and carries each page unit included in the target page to be refreshed, wherein the name identifier of the page unit which triggers the page refreshing request in the target page is provided with the preset mark, the page units of the target page which need to be refreshed are directly determined according to the name identifier of each page unit in the page refreshing request and the name identifier with the preset mark, and the refreshing data of the page unit which needs to be refreshed and at least one page unit which needs to be refreshed are returned to the client, so that when the page local refreshing is carried out, the page refreshing logic of the client is rewritten or changed without the version of the client, and the local refreshing of the target page can be accurately and quickly realized.
Drawings
FIG. 1 is a schematic diagram of a client page in the prior art;
FIG. 2 is a flowchart illustrating the steps of an embodiment of a method for controlling page refresh according to the present invention;
FIG. 3 is a flowchart illustrating the steps of one embodiment of a page refresh method of the present invention;
FIG. 4 is a flow diagram of another page refresh method embodiment of the present invention;
FIG. 5 is a block diagram of an embodiment of a page refresh control apparatus according to the present invention;
FIG. 6 is a block diagram of a page refreshing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Referring to fig. 2, a flowchart illustrating steps of an embodiment of a method for controlling page refresh according to the present invention is shown, and applied to a server, the method specifically includes the following steps:
step 201, receiving a page refresh request from a client, where the page refresh request includes a name identifier of each page unit in a target page to be refreshed, and the name identifier of the page unit triggering the page refresh request in the target page is provided with a preset mark;
taking the client page shown in fig. 1 as an example for explanation, page units 12, 13, and 14 are named by using card1, card2, and card3 as names respectively. When the client needs to perform partial refresh on the client page (here, the target page) in fig. 1, for example, "1" in card1 is clicked, that is, the user wants to see the video content of the first set, then the click operation triggers the partial refresh operation on the page shown in fig. 1, and the client side can obtain the name identifiers of all the cards included in the page, that is, card1, card2, and card3, and the name identifier of the card corresponding to the currently triggered page refresh action, where the user clicks the page unit of card1, so it needs to obtain the name identifier of the page unit triggering the page refresh request, that is, card 1.
Then, the client may add the name identifications of all the cards included in the page, i.e., information such as card1, card2, and card3, to the page refresh request, wherein a preset flag may be set for the name identification card1 of the page unit that triggered the page refresh request, so as to distinguish from the name identifications of other page units that did not trigger the page refresh request. In an alternative embodiment, the name identifier card1 of the page unit triggering the page refresh request may also be directly added to the page refresh request, so that the server side can determine which name identifier corresponds to the page unit triggering the page refresh request by determining which name identifier has two duplicates.
The page refresh request is then sent to the server. Thus, the server may receive a page refresh request from the client.
Other information not listed in the page refresh request may include all information that needs to be transferred to the server during page refresh in the prior art, and the information is not listed here.
Step 202, determining a target page unit list to be refreshed in the target page and refresh data of at least one target page unit in the target page unit list according to the name identifier of each page unit in the target page to be refreshed in the page refresh request and the preset mark;
the page refresh request includes information of which card included in the target page and information of which card currently triggers page refresh, so that the server side can uniquely determine which card content in the target page needs to be refreshed according to the two information, and what refresh data is.
The refresh mode includes adding and deleting card, and also includes refreshing the page content of card. The card that needs to be refreshed can be generated into a list of target page cells to be refreshed. The list may include the name identifier of the card that needs to be deleted, the name identifier of the card that needs to refresh the content, and the name identifier of the new card that needs to be added.
For the refresh data of the card in the list, only the card that needs to be added newly in the list and the card that needs to refresh the page content have the refresh data; as for the card to be deleted in the list, there is no refresh data, and it can be understood that the refresh data is empty.
When the server side can uniquely determine which page contents of the cards in the target page need to be refreshed according to the two items of information and what the refresh data is, the present invention predefines, at the service logic side, refresh policies (i.e. the above list and refresh data) uniquely corresponding to each of the two different items of information, so that, during specific implementation, the refresh policies uniquely corresponding to the two items of information (the name identifier of each page unit in the target page, the name identifier of the page unit triggering the page refresh request in the target page) can be searched from a plurality of pre-stored refresh policies.
Step 203, responding to the page refresh request, and sending the target page unit list and the refresh data of the at least one target page unit to the client.
And the server side responds to a page refreshing request of the client side to the target page and sends the target page unit list corresponding to the determined refreshing strategy and the refreshing data of the at least one target page unit to the client side.
After receiving the data in response to the page refresh request in step 203, the client may determine which target cards in the target page need to be refreshed according to the name identifier of each card included in the target page unit list, and when a refresh data corresponds to a target card, update the display content of the corresponding target card in the target page by using the corresponding refresh data; when the target page does not include the target card, adding the target card in the target page, and displaying the refresh data corresponding to the target card; when the target card does not correspond to the refresh data, the corresponding target card in the target page may be directly deleted together with the display content of the target card.
When a page local refresh is performed in a conventional scheme, a client needs to send a page refresh request carrying which cards are to be partially refreshed to a server, and the server sends update data of the cards to the client according to which cards which need to be refreshed currently and are indicated in the page refresh request. Thus, when the client version is upgraded and the number, layout and content of the cards in the target page may change, the client side needs to update the page refresh logic at any time according to the client version.
In the technical solution of the present invention, it is not necessary to explicitly specify information about which card data needs to be refreshed in a page refresh request sent by a client to a server, but only information about what the target page is (i.e. which cards are included) and which card currently triggers page refresh needs to be carried in the page refresh request, and a server of the present invention can automatically determine which cards in the target page need to be updated currently and how to update (e.g. what the update content is) according to the two pieces of information in the page refresh request, so that even if the version of the client is upgraded, the cards included in the target page are replaced with the cards 1, 2, 3, 2, 4, and 5, in the scheme of the embodiment of the present invention, it is not necessary to rewrite the refresh page logic at the client side, and the refresh page logic of the client still sends information about which cards are included in the target page currently and the information about which card data currently triggers page refresh request is sent by the server The information of which card can directly determine that card2 and card4 need to be refreshed according to the page refresh request (e.g. clicked card2) sent by the client after upgrading the version on the server side, and send the refresh data to the client, so that the client can perform accurate page partial refresh.
The embodiment of the invention receives the name identifier which is sent by the client and carries each page unit included in the target page to be refreshed, wherein the name identifier of the page unit which triggers the page refreshing request in the target page is provided with the preset mark, the page units of the target page which need to be refreshed are directly determined according to the name identifier of each page unit in the page refreshing request and the name identifier with the preset mark, and the refreshing data of the page unit which needs to be refreshed and at least one page unit which needs to be refreshed are returned to the client, so that when the page local refreshing is carried out, the page refreshing logic of the client is rewritten or changed without the version of the client, and the local refreshing of the target page can be accurately and quickly realized.
Optionally, in an embodiment, the page refresh request received in step 201 may further include a sorting identifier of each page unit in the target page;
then after step 202, the method according to an embodiment of the present invention may further comprise:
determining a refresh sequencing identifier of at least one target page unit in the target page unit list according to the sequencing identifier of each page unit in the target page in the page refresh request;
in this step, the server side may determine which target card's ranking identifiers in the target page need to be adjusted according to the ranking identifier of each page unit in the target page in the page refresh request, and may set a new ranking identifier, that is, a refresh ranking identifier, for a target page unit whose ranking identifier needs to be adjusted. It should be noted that the target card whose rank indication needs to be adjusted may be one or more cards in the target page unit list.
In addition, it should be noted that the target page unit that needs to change the rank indication in this step may be the same as or different from the target page unit that needs to refresh the page data in step 202. That is, in the local page refresh operation, the target page unit that needs to refresh the page data or change the rank indication is present in the target page unit list.
And responding to the page refreshing request, and sending the refreshing sorting identification of the at least one target page unit to the client so that the client performs reordering display on the page data of each page unit in the target page according to the refreshing sorting identification.
In the process of the specific implementation, when responding to the page refresh request, the target page unit list, the refresh data of at least one target page unit, and the refresh sequencing identifier of at least one target unit may be sent to the client.
For example, the target page shown in fig. 1 is an original page before update, where the rank of card1 corresponding to page unit 12 is denoted by 3, the rank of card2 corresponding to page unit 13 is denoted by 2, the rank of card3 corresponding to page unit 14 is denoted by 1, and the page unit ranking rule preset by the client is to display the page contents of three cards, card3, card2, and card1, from top to bottom in the page as shown in fig. 1, in the order from the smaller rank to the larger rank. Of course, in other embodiments, the sorting rule may be other sorting rules from large to small, and the like, and the present invention is not limited to this.
And after the user clicks "1" in card1 corresponding to the episode, the page is locally updated, for example, the response data returned by the server side includes a target page unit list (including card1, card2, and card3), update data of at least one target page unit, and an update ranking identifier of at least one target page unit, and specific structure data of the new page data and the new ranking identifier are: [ card2-1, card3-new data-2], where card1 is not included in the structure data, and therefore, the page data and the sort identification of card1 corresponding to page unit 12 in FIG. 1 are not changed; including card2 in the structure data, where the new data of card2 is new sort ID 1, i.e. updated to 1 from the previous sort ID 2, and the structure data does not include page data, so the page data remains unchanged; card3 is included in the structure data, where card3 includes new page data, that is, new data, so the page data of card3 needs to be updated to new data, and the structure data also includes new sort flag 2 of card3, which is updated to 2 from the previous sort flag 1. Therefore, in this local update, the page data of card3 needs to be updated to new data; the display contents of card1 and card3 do not change; however, since there is a change in the ranking flag, it is necessary to reorder the three cards according to the new ranking flag of the current three cards, that is, card2, card3, and card1 in order from front to back, and therefore, in this local update, it is also necessary to exchange the position of card3 (whose display content is updated) as shown in fig. 1 with the position of card2 whose display content is not updated.
The specific structure form of the new page data and the new sorting identifier specific structure data is not limited in the present invention, and for example, "-" in [ card2-1, card3-new data-2] may be a space or a symbol such as "+".
In this way, the page refreshing request also carries the sequencing identifier of each page unit in the target page, so that the server side can update the sequencing identifier of the target page unit when the target page is refreshed, thereby adjusting the display sequence of each page unit on the target page, not only realizing the local update of the page content of the target page unit in the target page, but also realizing the adjustment of the display sequence of the target page unit in the target page, and the target page unit for updating the page content and the target page unit for adjusting the display sequence can be the same or different, thereby greatly reducing the development amount of the front end of the client for the local content refreshing and the content sequencing of the page. Different refreshing strategies and sorting strategies can be realized for the online versions, so that the development amount and development time of the requirements are saved, and the problem that the local page content can be refreshed each time or the display sequence of the page content of each page unit can only be reflected on the client of the new version is solved.
Optionally, before step 201, the method according to the embodiment of the present invention may further include:
receiving a first opening request aiming at a target page from a client;
when the client side wants to switch to the target page for the first time, a first opening request for the target page may be sent to the server, and then the server may receive the first opening request for the target page from the client, for example, when the user requests to open the page shown in fig. 1 for the first time.
Configuring a name identifier for each page unit in the target page;
the execution sequence of the step and the step of receiving the first start request is not limited in the present invention.
In this case, the server may map a unique name to each card in the destination page, for example, in fig. 1, name identifier card1 is configured for page unit 12, name identifier card2 is configured for page unit 13, and name identifier card3 is configured for page unit 13, where the name identifier is transparent to the client and the client does not need to care about the specific content of the name identifier.
And responding to the first opening request, and sending the page data and the name identification of each page unit in the target page to the client so that the client displays the page data of each page unit.
The server can respond to a first opening request of the client to the target page, and issue the name identifier of each page unit in the target page to the client together with the page data of the page unit, wherein the card identifier and the page data of the card have a mapping relation. Thus, the client can display the page data of each card after receiving the response data.
Therefore, when the server of the embodiment of the invention receives the starting request of the client to the target page for the first time, the server can allocate the name identifier to each page unit in the target page, allocate the page data to the page unit corresponding to the name identifier, and issue the name identifier of the page unit and the corresponding page data to the client together, so that the client can make clear the relationship among the page data, display the page data of each page unit in the target page, and achieve the purpose of displaying the target page for the first time.
Optionally, in another embodiment, after receiving a first open request for a target page from a client, the method according to an embodiment of the present invention may further include:
configuring a sequencing identifier for each page unit in the target page;
after the server receives the first opening request of the target page, the server can configure a unique sequencing identifier for each page unit in the target page.
And responding to the first opening request, and sending the sequencing identifier of each page unit in the target page to the client so that the client sequences the page data displayed by each page unit according to a preset sequencing rule according to the sequencing identifier of each page unit.
When responding to the first opening request, the client can also issue the sequencing identifier of each page unit in the target page to the client, so that the client can perform sequencing display on each page unit based on a preset sequencing rule according to the sequencing identifier of each page unit in the target page.
The preset sorting rule may be that the page units are displayed from top to bottom in the target page according to the sequence of the sorting identifiers from small to large.
The sorting marks of each page unit in the target page can be numbers or letters, and can be continuous or discontinuous, so long as the sorting is performed.
In this way, when the server of the embodiment of the present invention receives a first start request of the client to the target page, the server further allocates a sorting identifier to each page unit in the target page, where the sorting identifier may be associated with the name identifier of the page unit, so that the client can distinguish the sorting identifier of each page unit in the target page, and thus, when the client displays the target page, each page unit can be displayed in a certain order.
Referring to fig. 3, a flowchart illustrating steps of an embodiment of a page refreshing method according to the present invention is shown, and applied to a client, the method specifically includes the following steps:
step 301, sending a page refresh request to a server, where the page refresh request includes a name identifier of each page unit in a target page to be refreshed, and the name identifier of the page unit triggering the page refresh request in the target page is provided with a preset mark;
taking the client page shown in fig. 1 as an example for explanation, page units 12, 13, and 14 are named by using card1, card2, and card3 as names respectively. When the client needs to perform partial refresh on the client page (here, the target page) in fig. 1, for example, "1" in card1 is clicked, that is, the user wants to see the video content of the first set, then the click operation triggers the partial refresh operation on the page shown in fig. 1, and the client side can obtain the name identifiers of all the cards included in the page, that is, card1, card2, and card3, and the name identifier of the card corresponding to the currently triggered page refresh action, where the user clicks the page unit of card1, so it needs to obtain the name identifier of the page unit triggering the page refresh request, that is, card 1.
Then, the client may add the name identifications of all the cards included in the page, i.e., information such as card1, card2, and card3, to the page refresh request, wherein a preset flag may be set for the name identification card1 of the page unit that triggered the page refresh request, so as to distinguish from the name identifications of other page units that did not trigger the page refresh request. In an alternative embodiment, the name identifier card1 of the page unit triggering the page refresh request may also be directly added to the page refresh request, so that the server side can determine which name identifier corresponds to the page unit triggering the page refresh request by determining which name identifier has two duplicates.
Other information not listed in the page refresh request may include all information that needs to be transferred to the server during page refresh in the prior art, and the information is not listed here.
The page refresh request is then sent to the server. Thus, the server may receive a page refresh request from the client.
Step 302, receiving a target page unit list to be refreshed from the server and refresh data of at least one target page unit in the target page unit list, wherein the refresh data of the target page unit list and the at least one target page unit are determined by the server according to the name identifier of each page unit in the target page to be refreshed in the page refresh request and the preset mark;
the page refresh request includes information of which card included in the target page and information of which card currently triggers page refresh, so that after receiving the page refresh request, the server side can uniquely determine which card content in the target page needs to be refreshed and what refresh data is according to the two items of information in the page refresh request.
The refresh mode includes adding and deleting card, and also includes refreshing the page content of card. The card that needs to be refreshed can be generated into a list of target page cells to be refreshed. The list may include the name identifier of the card that needs to be deleted, the name identifier of the card that needs to refresh the content, and the name identifier of the new card that needs to be added.
For the refresh data of the card in the list, only the card that needs to be added newly in the list and the card that needs to refresh the page content have the refresh data; as for the card to be deleted in the list, there is no refresh data, and it can be understood that the refresh data is empty.
When the server side can uniquely determine which page contents of the cards in the target page need to be refreshed according to the two items of information and what the refresh data is, the present invention predefines, at the service logic side, refresh policies (i.e. the above list and refresh data) uniquely corresponding to each of the two different items of information, so that, during specific implementation, the refresh policies uniquely corresponding to the two items of information (the name identifier of each page unit in the target page, the name identifier of the page unit triggering the page refresh request in the target page) can be searched from a plurality of pre-stored refresh policies.
And the server side responds to a page refreshing request of the client side to the target page and sends the target page unit list corresponding to the determined refreshing strategy and the refreshing data of the at least one target page unit to the client side.
In this way, the client may receive the list of target page units and the refresh data of the at least one target page unit in response to the page refresh request.
Step 303, refreshing the page data of the corresponding target page unit in the target page according to the refresh data of at least one target page unit in the target page unit list.
After receiving the data in step 302, the client may determine which target cards in the target page need to be refreshed according to the name identifier of each card included in the target page unit list, and when a refresh data corresponds to a target card, update the display content of the corresponding target card in the target page by using the corresponding refresh data; when the target page does not include the target card, adding the target card in the target page, and displaying the refresh data corresponding to the target card; when the target card does not correspond to the refresh data, the corresponding target card in the target page may be directly deleted together with the display content of the target card.
Therefore, the embodiment of the invention enables the client to send the page refreshing request carrying the name identifier of each page unit included in the target page to be refreshed to the server, the name identifier of the page unit currently triggering the page refreshing request is provided with the preset mark, and the server directly determines which page units of the target page need to be refreshed according to the page refreshing request, so that the client directly receives response data of the page refreshing request, including the target page unit needing to be refreshed and the refreshing data of at least one target page unit, and the page refreshing logic of the client is rewritten or changed without a client version when the page is locally refreshed, thereby accurately and quickly realizing the local refreshing of the target page.
Optionally, in an embodiment, the page refresh request in step 301 may further include a sorting identifier of each page unit in the target page;
then after step 302, the method according to an embodiment of the present invention may further comprise:
receiving a refresh sequencing identifier of at least one target page unit from the server, wherein the refresh sequencing identifier of the at least one target page unit is determined by the server according to the sequencing identifier of each page unit in the target page in the page refresh request;
in this step, the server side may determine which target card's ranking identifiers in the target page need to be adjusted according to the ranking identifier of each page unit in the target page in the page refresh request, and may set a new ranking identifier, that is, a refresh ranking identifier, for a target page unit whose ranking identifier needs to be adjusted. It should be noted that the target card whose rank indication needs to be adjusted may be one or more cards in the target page unit list.
In addition, it should be noted that the target page unit that needs to change the rank indication in this step may be the same as or different from the target page unit that needs to refresh the page data in step 302. That is, in the local page refresh operation, the target page unit that needs to refresh the page data or change the rank indication is present in the target page unit list.
The client may receive a refresh rank identification of at least one target page unit from the server in response to the page refresh request. The refresh rank identification is also associated with the name identification of the target page unit and sent to the client, so that the client knows which rank identification of the target unit is changed.
Refreshing the sequencing identifier of the at least one target page unit according to the refreshing sequencing identifier of the at least one target page unit;
since the target page unit in the target page also has the sorting identifier, the refreshing sorting identifier received from the server needs to be used to refresh the sorting identifier of the corresponding target page unit.
And performing reordering display on the page data of each page unit in the target page according to the current ordering identifier of each page unit in the target page.
For example, the target page shown in fig. 1 is an original page before update, where the rank of card1 corresponding to page unit 12 is denoted by 3, the rank of card2 corresponding to page unit 13 is denoted by 2, the rank of card3 corresponding to page unit 14 is denoted by 1, and the page unit ranking rule preset by the client is to display the page contents of three cards, card3, card2, and card1, from top to bottom in the page as shown in fig. 1, in the order from the smaller rank to the larger rank. Of course, in other embodiments, the sorting rule may be other sorting rules from large to small, and the like, and the present invention is not limited to this.
And after the user clicks "1" in card1 corresponding to the episode, the page is locally updated, for example, the response data returned by the server side includes a target page unit list (including card1, card2, and card3), update data of at least one target page unit, and an update ranking identifier of at least one target page unit, and specific structure data of the new page data and the new ranking identifier are: [ card2-1, card3-new data-2], where card1 is not included in the structure data, and therefore, the page data and the sort identification of card1 corresponding to page unit 12 in FIG. 1 are not changed; including card2 in the structure data, where the new data of card2 is new sort ID 1, i.e. updated to 1 from the previous sort ID 2, and the structure data does not include page data, so the page data remains unchanged; card3 is included in the structure data, where card3 includes new page data, that is, new data, so the page data of card3 needs to be updated to new data, and the structure data also includes new sort flag 2 of card3, which is updated to 2 from the previous sort flag 1. Therefore, in this local update, the page data of card3 needs to be updated to new data; the display contents of card1 and card3 do not change; however, since there is a change in the ranking flag, it is necessary to reorder the three cards according to the new ranking flag of the current three cards, that is, card2, card3, and card1 in order from front to back, and therefore, in this local update, it is also necessary to exchange the position of card3 (whose display content is updated) as shown in fig. 1 with the position of card2 whose display content is not updated.
The specific structure form of the new page data and the new sorting identifier specific structure data is not limited in the present invention, and for example, "-" in [ card2-1, card3-new data-2] may be a space or a symbol such as "+".
In this way, the page refreshing request also carries the sequencing identifier of each page unit in the target page, so that the server side can update the sequencing identifier of the target page unit when the target page is refreshed, thereby adjusting the display sequence of each page unit on the target page, not only realizing the local update of the page content of the target page unit in the target page, but also realizing the adjustment of the display sequence of the target page unit in the target page, and the target page unit for updating the page content and the target page unit for adjusting the display sequence can be the same or different, thereby greatly reducing the development amount of the front end of the client for the local content refreshing and the content sequencing of the page. Different refreshing strategies and sorting strategies can be realized for the online versions, so that the development amount and development time of the requirements are saved, and the problem that the local page content can be refreshed each time or the display sequence of the page content of each page unit can only be reflected on the client of the new version is solved.
Optionally, in another embodiment, before performing step 301, the method according to an embodiment of the present invention may further include:
sending a first opening request aiming at a target page to a server;
when the client side wants to switch to the target page for the first time, a first opening request for the target page may be sent to the server, for example, when the user requests to open the page shown in fig. 1 for the first time.
Receiving response data of the first opening request, wherein the response data comprise page data and name identification of each page unit in the target page;
after receiving the first opening request of the target page, the server may map a unique name to each card in the target page, for example, in fig. 1, a name identifier card1 is configured for the page unit 12, a name identifier card2 is configured for the page unit 13, and a name identifier card3 is configured for the page unit 13, where the name identifier is transparent to the client and the client does not need to care about the specific content of the name identifier.
Then, in response to a first opening request of the client to the target page, the server may issue, to the client, the name identifier of each page unit in the target page along with the page data of the page unit, where the card identifier and the page data of the card have a mapping relationship.
In this way, the client may receive response data to the first open request, including the page data for each page unit associated with its name identification.
Storing the page data of each page unit and the name identifier of the corresponding page unit in an associated manner;
wherein the client side can store the received page data of each page unit in association with the name identification of the page unit.
And displaying the page data of each page unit.
Therefore, when the client requests to open the target page for the first time, the client in the embodiment of the invention can receive the name identifier distributed to each page unit in the target page and the page data corresponding to the name identifier from the server, so that the client can clarify the relationship among the page data, display the page data of each page unit in the target page, and achieve the purpose of displaying the target page for the first time.
Optionally, the response data further includes a sorting identifier of each page unit in the target page, and after receiving the response data of the first opening request, the method according to the embodiment of the present invention may further include:
storing the sequencing identifier of each page unit and the name identifier of the corresponding page unit in an associated manner;
when the client receives the name identifier of each page unit in the target page sent by the server and the corresponding page data, the client can also receive the sequencing identifier corresponding to each name identifier, so that the sequencing identifier of each page unit and the name identifier of the corresponding page unit can be stored in a correlated manner.
And sequencing the page data displayed by each page unit according to a preset sequencing rule according to the sequencing identifier of each page unit.
The client can display each page unit in a sequencing mode based on a preset sequencing rule according to the sequencing identification of each page unit in the target page.
The preset sorting rule may be that the page units are displayed from top to bottom in the target page according to the sequence of the sorting identifiers from small to large.
The sorting marks of each page unit in the target page can be numbers or letters, and can be continuous or discontinuous, so long as the sorting is performed.
In this way, after sending the first start request for the target page to the server, the client according to the embodiment of the present invention may receive not only the name identifier and the page data of each page unit in the target page, but also the ranking identifier of each page unit, and store the name identifier, the page data, and the ranking identifier of each page unit in association with each other, so that the client can distinguish the ranking identifier of each page unit in the target page, and thus, each page unit can be displayed in a certain order when the client displays the target page.
Referring to FIG. 4, a flow chart of an embodiment of a page refresh method of the present invention is shown.
In this embodiment, the server and the client agree on a set of local refresh logic, a specific refresh policy is returned by the server, and the client can complete local refresh of the page and re-order display of the cards in the page according to the established refresh logic (which card to click on, all cards included in the current page, and finally update according to the returned card list to be updated and the update content).
And when the client requests to open the target page for the first time, executing the issuing steps of the step 1 and the step 2.
Step 1, the service end maps unique names (name identifiers cardA, cardB, cardC, cardD and cardE) to the card in the target page for identification, and the unique names are issued to the client together with the page data of each card;
it should be noted that the card id between different client pages does not need to be unique, for example, the target page 1 may include a certain page unit named by cardA, and the target page 2 may also include a certain page unit named by cardA, as long as the same target page does not include a page unit with the same name id.
And 2, adding a sorting identifier to the card in the target page by the service end, and agreeing with a sorting rule of the card in advance with the client (for example, agreeing that the card is sorted from small to large according to the sorting identifier, and the client does not need to care about the specific number of the card sorting identifier). For example, rank of cardA is identified as 10, rank of carddb is identified as 20, rank of cardC is identified as 30, rank of cardD is identified as 40, and rank of cardE is identified as 50).
And step 3, when the client needs to refresh the page data locally, uploading the current page action triggering refresh and the name identification and the sequencing identification of each card of the current page. Wherein the triggering action is clicking cardB;
it should be noted that, although the clicked content is in the page unit of cardB, the current refresh does not necessarily refresh the page data or the rank indication of cardB. In this step, it is not necessary to upload the page data of each card in the target page.
Step 4, the server side receives a page refreshing request for the target page, wherein the page refreshing request comprises information of 'cardA: 10, carddB: 20, cardC:30, cardD:40, cardE:50 and click cardB', and the server side determines return data according to the received information of 'cardA: 10, carddB: 20, cardC:30, cardD:40, cardE:50, click cardB' and the like; this return data contains the list of cards that need to be updated (here including cardA, cardB, cardD), as well as the new data and new ordering identification of part of the cards in the list of cards (here [ cardA. new data:25, cardB. new data:20 ]). And sends the return data to the client.
Step 5, the client receives the card list needing to be updated in the target page and the data needing to be updated in the card list; wherein, for the card existing in the card list to be updated and having the card (e.g. card a and card db) corresponding to the new data (including any one of new data and sort id), updating the corresponding content of the corresponding card in the target page; for the card existing in the list of cards that need to be updated, but there is no card (e.g., card d) corresponding to the new data, deleting the content of the card corresponding to the target page (including the name identifier, the sort identifier, and the page data of the stored card, and the content of the data corresponding to the card displayed in the target page); for the card (e.g., card e, card c) existing in the target page but not existing in the card list that needs to be updated, it means that these cards are not in the policy of triggering refresh this time, and the data content of these cards is kept unchanged in the target page.
In any page of the client, for example, in the target page, the page width of each card in the target page is uniform, so that when displayed in the order, the cards are only in the order from top to bottom.
And 6, after the card data is updated by the client, reordering the display sequence of each card in the target page according to the updated ranking identifier of each card currently existing in the target page to obtain a new page, and finishing the partial refreshing, as shown in fig. 4.
By means of the technical scheme of the embodiment of the invention, the embodiment of the invention can flexibly control the local refreshing strategy of the client page and the sequencing of card in the page through the server side, and does not depend on client version. The server controls the local refreshing strategy of the page, so that the local refreshing strategy can be flexibly adjusted without being limited by version sending of the client; in addition, the server can control the sequencing of each card in the page, so that the flexible sequencing display of each card in the page can be realized by flexibly adjusting the card sequencing strategy, and the edition sending of the client is not depended on; when the scheme of the client side in the technical scheme of the embodiment of the invention is applied to the client side, the development amount of the client side for partial page refreshing and sequencing can be greatly reduced. Different refreshing strategies and sorting strategies can be realized for the online versions, and the development amount and development time of the requirements are saved.
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.
Corresponding to the method for controlling page refresh provided in the foregoing embodiment of the present invention, referring to fig. 5, a block diagram of a structure of an embodiment of a device for controlling page refresh according to the present invention is shown, and the device is applied to a server, and may specifically include the following modules:
a receiving module 51, configured to receive a page refresh request from a client, where the page refresh request includes a name identifier of each page unit in a target page to be refreshed, and the name identifier of each page unit in the target page to be refreshed and the preset flag;
a first determining module 52, configured to determine, according to the name identifier of each page unit in the target page to be refreshed in the page refresh request and the preset flag, a target page unit list to be refreshed in the target page and refresh data of at least one target page unit in the target page unit list;
a first sending module 53, configured to send, in response to the page refresh request, the target page unit list and the refresh data of the at least one target page unit to the client.
Optionally, the apparatus further comprises:
a second determining module, configured to determine, when the page refresh request further includes a sorting identifier of each page unit in the target page, a refresh sorting identifier of at least one target page unit in the target page unit list according to the sorting identifier of each page unit in the target page in the page refresh request;
and the second sending module is used for responding to the page refreshing request and sending the refreshing sorting identifier of the at least one target page unit to the client so that the client carries out reordering display on the page data of each page unit in the target page according to the refreshing sorting identifier.
Optionally, the apparatus further comprises:
the receiving module is used for receiving a first opening request aiming at a target page from a client;
the first configuration module is used for configuring a name identifier for each page unit in the target page;
and the third sending module is used for responding to the first opening request, and sending the page data and the name identification of each page unit in the target page to the client so that the client can display the page data of each page unit.
Optionally, the apparatus further comprises:
the second configuration module is used for configuring a sequencing identifier for each page unit in the target page;
and the fourth sending module is used for responding to the first starting request, and sending the sequencing identifier of each page unit in the target page to the client so that the client can sequence the page data displayed by each page unit according to a preset sequencing rule according to the sequencing identifier of each page unit.
For the device embodiment, since it is basically similar to the above-mentioned page refresh control method embodiment, the description is relatively simple, and for the relevant points, refer to the partial description of the method embodiment.
Corresponding to the page refreshing method provided in the foregoing embodiment of the present invention, referring to fig. 6, a block diagram of a structure of an embodiment of a page refreshing apparatus according to the present invention is shown, which is applied to a client, and specifically includes the following modules:
the first sending module 61 is configured to send a page refresh request to a server, where the page refresh request includes a name identifier of each page unit in a target page to be refreshed, and a preset flag is set in the name identifier of a page unit in the target page, which triggers the page refresh request;
a first receiving module 62, configured to receive a target page unit list to be refreshed from the server and refresh data of at least one target page unit in the target page unit list, where the target page unit list and the refresh data of the at least one target page unit are determined by the server according to the name identifier of each page unit in the target page to be refreshed in the page refresh request and the preset flag;
the first refreshing module 63 is configured to refresh, according to the refresh data of at least one target page unit in the target page unit list, the page data of a corresponding target page unit in the target page.
Optionally, the apparatus further comprises:
a second receiving module, configured to receive, when the page refresh request further includes a rank identifier of each page unit in the target page, a refresh rank identifier of at least one target page unit from the server, where the refresh rank identifier of the at least one target page unit is determined by the server according to the rank identifier of each page unit in the target page in the page refresh request;
the second refreshing module is used for refreshing the sequencing identifier of the at least one target page unit according to the refreshing sequencing identifier of the at least one target page unit;
and the sequencing module is used for carrying out reordering display on the page data of each page unit in the target page according to the current sequencing identifier of each page unit in the target page.
Optionally, the apparatus further comprises:
the second sending module is used for sending a first opening request aiming at the target page to the server;
a third receiving module, configured to receive response data of the first-time opening request, where the response data includes page data and a name identifier of each page unit in the target page;
the first storage module is used for storing the page data of each page unit and the name identifier of the corresponding page unit in an associated manner;
and the display module is used for displaying the page data of each page unit.
Optionally, the apparatus further comprises:
the second storage module is used for storing the sequencing identifier of each page unit and the name identifier of the corresponding page unit in an associated manner when the response data further comprises the sequencing identifier of each page unit in the target page;
and the sequencing module is used for sequencing the page data displayed by each page unit according to the sequencing identifier of each page unit and a preset sequencing rule.
For the device embodiment, since it is basically similar to the page refresh method embodiment described above, 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 like elements in a process, method, article, or terminal that comprises the element.
The page refreshing control method, the page refreshing control device and the page refreshing device provided by the invention are described in detail, specific examples are applied in the text to explain the principle and the implementation mode of the invention, and the description of the above embodiments 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 (16)

1. A method for controlling page refreshing is applied to a server, and the method comprises the following steps:
receiving a page refreshing request from a client, wherein the page refreshing request comprises a name identifier of each page unit in a target page to be refreshed, the name identifier of the page unit triggering the page refreshing request in the target page is provided with a preset mark, the page unit is a sub-page with independent content and independent content display in the target page to be refreshed, and the preset mark is used for distinguishing the page unit triggering the page refreshing request and other page units not triggering the page refreshing request;
determining a target page unit list to be refreshed in the target page and refresh data of at least one target page unit in the target page unit list from a plurality of pre-stored refresh strategies according to the name identifier of each page unit in the target page to be refreshed in the page refresh request and the preset mark, wherein the plurality of refresh strategies comprise: the refreshing strategy uniquely corresponds to the name identification of each page unit in the target page to be refreshed and the name identification of the page unit triggering the page refreshing request in the target page;
and responding to the page refreshing request, and sending the target page unit list and the refreshing data of the at least one target page unit to the client.
2. The method of claim 1, wherein the page refresh request further comprises a rank indication for each page unit in the target page;
after receiving the page refresh request from the client, the method further includes:
determining a refresh sequencing identifier of at least one target page unit in the target page unit list according to the sequencing identifier of each page unit in the target page in the page refresh request;
and responding to the page refreshing request, and sending the refreshing sorting identification of the at least one target page unit to the client so that the client performs reordering display on the page data of each page unit in the target page according to the refreshing sorting identification.
3. The method of claim 1, wherein prior to receiving the page refresh request from the client, the method further comprises:
receiving a first opening request aiming at a target page from a client;
configuring a name identifier for each page unit in the target page;
and responding to the first opening request, and sending the page data and the name identification of each page unit in the target page to the client so that the client displays the page data of each page unit.
4. The method of claim 3, wherein after receiving a first open request for a target page from a client, the method further comprises:
configuring a sequencing identifier for each page unit in the target page;
and responding to the first opening request, and sending the sequencing identifier of each page unit in the target page to the client so that the client sequences the page data displayed by each page unit according to a preset sequencing rule according to the sequencing identifier of each page unit.
5. A page refreshing method is applied to a client, and comprises the following steps:
sending a page refreshing request to a server, wherein the page refreshing request comprises a name identifier of each page unit in a target page to be refreshed, the name identifier of the page unit triggering the page refreshing request in the target page is provided with a preset mark, the page unit is a sub-page with independent content and independent content display in the target page to be refreshed, and the preset mark is used for distinguishing the page unit triggering the page refreshing request and other page units not triggering the page refreshing request;
receiving a target page unit list to be refreshed from the server and refresh data of at least one target page unit in the target page unit list, wherein the refresh data of the target page unit list and the at least one target page unit are determined by the server from a plurality of pre-stored refresh policies according to the name identifier of each page unit in the target page to be refreshed in the page refresh request and the preset mark, and the plurality of refresh policies comprise: the refreshing strategy uniquely corresponds to the name identification of each page unit in the target page to be refreshed and the name identification of the page unit triggering the page refreshing request in the target page;
and refreshing the page data of the corresponding target page unit in the target page according to the refreshing data of at least one target page unit in the target page unit list.
6. The method of claim 5, wherein the page refresh request further comprises a rank indication for each page unit in the target page;
after the sending of the page refresh request to the server, the method further comprises:
receiving a refresh sequencing identifier of at least one target page unit from the server, wherein the refresh sequencing identifier of the at least one target page unit is determined by the server according to the sequencing identifier of each page unit in the target page in the page refresh request;
refreshing the sequencing identifier of the at least one target page unit according to the refreshing sequencing identifier of the at least one target page unit;
and performing reordering display on the page data of each page unit in the target page according to the current ordering identifier of each page unit in the target page.
7. The method of claim 5, wherein prior to sending the page refresh request to the server, the method further comprises:
sending a first opening request aiming at a target page to a server;
receiving response data of the first opening request, wherein the response data comprise page data and name identification of each page unit in the target page;
storing the page data of each page unit and the name identifier of the corresponding page unit in an associated manner;
and displaying the page data of each page unit.
8. The method of claim 7, wherein the response data further includes a rank indication of each page unit in the target page, and wherein after receiving the response data of the first open request, the method further comprises:
storing the sequencing identifier of each page unit and the name identifier of the corresponding page unit in an associated manner;
and sequencing the page data displayed by each page unit according to a preset sequencing rule according to the sequencing identifier of each page unit.
9. A page refreshing control device is applied to a server, and the device comprises:
the device comprises a receiving module, a refreshing module and a processing module, wherein the receiving module is used for receiving a page refreshing request from a client, the page refreshing request comprises a name identifier of each page unit in a target page to be refreshed, a preset mark is arranged on the name identifier of the page unit triggering the page refreshing request in the target page, the page unit is a sub-page with independent content and independent display in the target page to be refreshed, and the preset mark is used for distinguishing the page unit triggering the page refreshing request from other page units not triggering the page refreshing request;
a first determining module, configured to determine, according to the name identifier of each page unit in the target page to be refreshed in the page refresh request and the preset flag, a target page unit list to be refreshed in the target page and refresh data of at least one target page unit in the target page unit list from a plurality of pre-stored refresh policies, where the plurality of refresh policies include: the refreshing strategy uniquely corresponds to the name identification of each page unit in the target page to be refreshed and the name identification of the page unit triggering the page refreshing request in the target page;
and the first sending module is used for responding to the page refreshing request and sending the target page unit list and the refreshing data of the at least one target page unit to the client.
10. The apparatus of claim 9, further comprising:
a second determining module, configured to determine, when the page refresh request further includes a sorting identifier of each page unit in the target page, a refresh sorting identifier of at least one target page unit in the target page unit list according to the sorting identifier of each page unit in the target page in the page refresh request;
and the second sending module is used for responding to the page refreshing request and sending the refreshing sorting identifier of the at least one target page unit to the client so that the client carries out reordering display on the page data of each page unit in the target page according to the refreshing sorting identifier.
11. The apparatus of claim 9, further comprising:
the receiving module is used for receiving a first opening request aiming at a target page from a client;
the first configuration module is used for configuring a name identifier for each page unit in the target page;
and the third sending module is used for responding to the first opening request, and sending the page data and the name identification of each page unit in the target page to the client so that the client can display the page data of each page unit.
12. The apparatus of claim 11, further comprising:
the second configuration module is used for configuring a sequencing identifier for each page unit in the target page;
and the fourth sending module is used for responding to the first starting request, and sending the sequencing identifier of each page unit in the target page to the client so that the client can sequence the page data displayed by each page unit according to a preset sequencing rule according to the sequencing identifier of each page unit.
13. A page refreshing apparatus applied to a client, the apparatus comprising:
the device comprises a first sending module, a second sending module and a third sending module, wherein the first sending module is used for sending a page refreshing request to a server, the page refreshing request comprises a name identifier of each page unit in a target page to be refreshed, a preset mark is arranged on the name identifier of the page unit triggering the page refreshing request in the target page, the page unit is a sub-page with independent content and independent display in the target page to be refreshed, and the preset mark is used for distinguishing the page unit triggering the page refreshing request from other page units not triggering the page refreshing request;
a first receiving module, configured to receive a target page unit list to be refreshed from the server and refresh data of at least one target page unit in the target page unit list, where the target page unit list and the refresh data of the at least one target page unit are determined by the server from a plurality of pre-stored refresh policies according to a name identifier of each page unit in the target page to be refreshed in the page refresh request and the preset flag, and the plurality of refresh policies include: the refreshing strategy uniquely corresponds to the name identification of each page unit in the target page to be refreshed and the name identification of the page unit triggering the page refreshing request in the target page;
and the first refreshing module is used for refreshing the page data of the corresponding target page unit in the target page according to the refreshing data of at least one target page unit in the target page unit list.
14. The apparatus of claim 13, further comprising:
a second receiving module, configured to receive, when the page refresh request further includes a rank identifier of each page unit in the target page, a refresh rank identifier of at least one target page unit from the server, where the refresh rank identifier of the at least one target page unit is determined by the server according to the rank identifier of each page unit in the target page in the page refresh request;
the second refreshing module is used for refreshing the sequencing identifier of the at least one target page unit according to the refreshing sequencing identifier of the at least one target page unit;
and the sequencing module is used for carrying out reordering display on the page data of each page unit in the target page according to the current sequencing identifier of each page unit in the target page.
15. The apparatus of claim 13, further comprising:
the second sending module is used for sending a first opening request aiming at the target page to the server;
a third receiving module, configured to receive response data of the first-time opening request, where the response data includes page data and a name identifier of each page unit in the target page;
the first storage module is used for storing the page data of each page unit and the name identifier of the corresponding page unit in an associated manner;
and the display module is used for displaying the page data of each page unit.
16. The apparatus of claim 15, further comprising:
the second storage module is used for storing the sequencing identifier of each page unit and the name identifier of the corresponding page unit in an associated manner when the response data further comprises the sequencing identifier of each page unit in the target page;
and the sequencing module is used for sequencing the page data displayed by each page unit according to the sequencing identifier of each page unit and a preset sequencing rule.
CN201810277229.8A 2018-03-30 2018-03-30 Page refreshing method and device and page refreshing control method and device Active CN108681550B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810277229.8A CN108681550B (en) 2018-03-30 2018-03-30 Page refreshing method and device and page refreshing control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810277229.8A CN108681550B (en) 2018-03-30 2018-03-30 Page refreshing method and device and page refreshing control method and device

Publications (2)

Publication Number Publication Date
CN108681550A CN108681550A (en) 2018-10-19
CN108681550B true CN108681550B (en) 2021-05-25

Family

ID=63800674

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810277229.8A Active CN108681550B (en) 2018-03-30 2018-03-30 Page refreshing method and device and page refreshing control method and device

Country Status (1)

Country Link
CN (1) CN108681550B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109992325B (en) * 2019-03-20 2020-06-16 腾讯科技(深圳)有限公司 Information display method, information display apparatus, storage medium, and electronic apparatus
CN110909281A (en) * 2019-11-28 2020-03-24 湖南快乐阳光互动娱乐传媒有限公司 Method for reducing front-end and back-end interaction of modular page
CN111444448B (en) * 2020-02-27 2023-11-07 北京齐尔布莱特科技有限公司 Data processing method, server and system
CN112632428B (en) * 2020-12-25 2023-10-10 北京奇艺世纪科技有限公司 Page local refreshing method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103166916A (en) * 2011-12-12 2013-06-19 深圳市金蝶中间件有限公司 Method and system for updating page
CN103345393A (en) * 2013-07-03 2013-10-09 北京京东尚科信息技术有限公司 Method and device for controlling webpage
CN104133869A (en) * 2014-07-21 2014-11-05 深圳市金立通信设备有限公司 Webpage page refreshing method
CN104516973A (en) * 2014-12-26 2015-04-15 北京奇虎科技有限公司 Method and device for accessing page
CN104778211A (en) * 2015-03-18 2015-07-15 微梦创科网络科技(中国)有限公司 Method, client, server and system for refreshing partial page modules
CN105550357A (en) * 2015-12-29 2016-05-04 小米科技有限责任公司 Web page refreshing method and device
CN106126557A (en) * 2016-06-16 2016-11-16 乐视控股(北京)有限公司 Page processing method and device
CN107066273A (en) * 2017-03-31 2017-08-18 北京奇艺世纪科技有限公司 A kind of style sheet update method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9224151B2 (en) * 2008-06-18 2015-12-29 Microsoft Technology Licensing, L.L.C. Presenting advertisements based on web-page interaction
CN101707627B (en) * 2009-10-30 2014-11-05 中兴通讯股份有限公司 Method and device for presenting page information
CN105282227A (en) * 2015-09-06 2016-01-27 浪潮软件股份有限公司 High-efficiency high-stability page real-time data refreshing method
US20170083926A1 (en) * 2015-09-22 2017-03-23 Homeaway, Inc. Visualizing and correlating feedback influencers

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103166916A (en) * 2011-12-12 2013-06-19 深圳市金蝶中间件有限公司 Method and system for updating page
CN103345393A (en) * 2013-07-03 2013-10-09 北京京东尚科信息技术有限公司 Method and device for controlling webpage
CN104133869A (en) * 2014-07-21 2014-11-05 深圳市金立通信设备有限公司 Webpage page refreshing method
CN104516973A (en) * 2014-12-26 2015-04-15 北京奇虎科技有限公司 Method and device for accessing page
CN104778211A (en) * 2015-03-18 2015-07-15 微梦创科网络科技(中国)有限公司 Method, client, server and system for refreshing partial page modules
CN105550357A (en) * 2015-12-29 2016-05-04 小米科技有限责任公司 Web page refreshing method and device
CN106126557A (en) * 2016-06-16 2016-11-16 乐视控股(北京)有限公司 Page processing method and device
CN107066273A (en) * 2017-03-31 2017-08-18 北京奇艺世纪科技有限公司 A kind of style sheet update method and device

Also Published As

Publication number Publication date
CN108681550A (en) 2018-10-19

Similar Documents

Publication Publication Date Title
CN108681550B (en) Page refreshing method and device and page refreshing control method and device
CN106990950B (en) Interface layout method and device
CN104391725A (en) Page display method and page display device
CN107092652B (en) Navigation method and device for target page
CN105183760B (en) Webpage component loading method and device
CN110543318A (en) control device program updating method and device, storage medium and control device
CN113535267A (en) Applet page configuration method and device, electronic equipment and storage medium
US9245044B2 (en) Use of generic universal resource indicators
CN110766521A (en) Method, device and system for generating purchase order and storage medium
CN111443910A (en) Skin rendering method and device, electronic equipment and computer storage medium
CN110413312B (en) Method, device and equipment for managing application program and storage medium
US11824717B2 (en) Multi-region virtual data center template
KR101944275B1 (en) System and method for providing applications using wall paper, and recordable medium storing the method
CN110955449B (en) Gray scale release method and device for client
CN112052222A (en) Heterogeneous object storage cluster access method, device, equipment and storage medium
CN111046316A (en) Application on-shelf state monitoring method, intelligent terminal and storage medium
CN105095098A (en) Method and device for controlling memories having different capacities
CN114153844A (en) Sub-table management method, device, equipment and storage medium based on index template
CN109101278B (en) Method and device for realizing terminal flashing
CN111580997A (en) Method, system, equipment and storage medium for synchronizing contents of application and website
CN105706082A (en) Method and system for defining an offlinable model graph
CN111953722A (en) Terminal address book synchronization method and device
CN109582191A (en) A kind of menu content display methods and device
CN110704736B (en) Information publishing and displaying method and device
CN108037981B (en) Accessory management method and 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