Specific embodiment
It is for making purpose, technical scheme and the advantage of the application clearer, specifically real below in conjunction with the application
Apply example and corresponding accompanying drawing is clearly and completely described to technical scheme.Obviously, it is described
Embodiment is only some embodiments of the present application, rather than the embodiment of whole.Based on the enforcement in the application
Example, the every other enforcement obtained under the premise of creative work is not made by those of ordinary skill in the art
Example, belongs to the scope of the application protection.
Fig. 1 shows process for the information that the embodiment of the present application is provided, and specifically includes following steps:
S101:Page request is sent to server.
In the embodiment of the present application, send page request to server to be completed by client, wherein, page
Request in person and ask including page parameter (e.g., web page address), client parameter (e.g., the version information of client),
It is mainly used in transferring the information for needing to show.
For example, certain user is in the client using certain commodity website, clicks on client, and client then can be by
The page request for carrying homepage web page address is sent to server, to obtain homepage.
S102:The variable information that the reception server is returned according to the page request.
In the embodiment of the present application, after server receives the page request of client transmission, can be according to the page
Request, determines the variable information in the corresponding page of the page request, and variable information is returned to client
End.Specifically, server first according to page request can determine the corresponding page of the page request, then root
According to the mark of each information in the page, in determining the page, which is variable information.Wherein, the application is implemented
Variable information described in example refers to information (e.g., the weather letter in the page for sending change according to practical situation
Breath, weather can change according to the different of time).In addition to variable information, also include in the page
The LOGO (namely page fix information) of some fix informations, such as website, Page Template is (also
It is page structure, e.g., the position of the LOGO of website in the page, the position of Weather information, clicks on word
Effect etc.), fix information is the general information not changed with practical situation in the page.Mark be for
Determine which information is variable, which information is fixed, and mark can be server maintenance personnel in clothes
Add in each info web that business device is preserved, the variable information determined is returned to client by server.
Continue to use the example above, after server receives the page request for carrying homepage web page address, can basis
The web page address, all information included in determining homepage, determines in the homepage further according to mark
Merchandise news, temporal information be variable information, LOGO, the contact method of commodity website etc. are consolidated for the page
Determine information, while also can determine that the corresponding Page Template of homepage, server is then by above-mentioned variable information
Client is returned to, that is, the variable information that client the reception server is sent according to page request.
S103:According to the variable information for receiving and the fix information for prestoring, generate the page and show.
In the embodiment of the present application, after client receives the variable information of server transmission, can obtain in advance
The Page Template of storage, the variable information for receiving and the page fix information for prestoring is added to described
In Page Template, to generate the page.
Continuation of the previous cases, the merchandise news of the push that client the reception server sends, temporal information (that is, may be used
Change information) after, can obtain in local storage region prestore Page Template (as shown in Figure 2),
The contact method (that is, page fix information) of the LOGO of website and website, by the variable information for receiving
Be added in Page Template with page fix information, generate homepage (as shown in Figure 3), and by generation
Homepage shows user.
By said method, user in the service for frequently being provided using Internet service provider, client with clothes
Business device each time interact in, due to fix information can be stored in client place local storage region in,
Therefore, server only needs to for variable information to return to client, it is no longer necessary to by fix information and can
Change information returns to client together, and client transfers fix information in local storage region, and will be variable
Information is combined the generation page with fix information, and page presentation can so be reduced network to user
The waste of resource.
In actual applications, the upgrading that the page of website can carry out progressively according to practical situation, in the mistake of upgrading
Cheng Zhong, the page structure of the page are possible to change, and at the same time will form new with homepage pair
The Page Template answered, that is to say, that the Page Template being stored in local storage region cannot be continuing with, because
This, (that is, new Page Template is sent to by server to need the Page Template to prestoring to be updated
Client, and new Page Template is stored in local memory area), locally stored to being stored in
When Page Template in region is updated, no matter whether user obtains the page of website, can adopt down
Face two ways is updated come the Page Template to storing, specifically, the first:The reception server is more
The Page Template that sends during new page template is simultaneously stored;Second:At set time intervals from server
Middle acquisition Page Template is simultaneously stored, and wherein, the time interval of setting can be according to the renewal of past Page Template
Time interval is determining, and is adjusted according to practical situation.
For example, it is assumed that the Page Template in local storage region is updated using first kind of way, currently
The homepage of moment commodity website is upgraded, and the homepage after upgrading is as shown in figure 4, and before upgrading
Homepage it is as shown in Figure 3, it is clear that, compared with homepage before, structure there occurs change to homepage,
At the same time server can form the corresponding page of homepage of redaction after the page to homepage is upgraded
Face die plate, and the Page Template of formation is sent to into client, client receives the Page Template of redaction
Afterwards, the Page Template of redaction is stored in local storage region.
Hypothesis is updated to the Page Template in local storage region using the second way, the time of setting
At intervals of 2 days, then client can send Page Template renewal request to server every 2 days, if service
Device had the renewal of Page Template in this 2 days, then server, will after Page Template renewal request is received
Page Template after renewal returns to client, if server did not had the renewal of Page Template in this 2 days,
Then server will not return to any Page Template of client after Page Template renewal request is received, false
The homepage for being located at certain commodity website in this two days is upgraded, and upgrade after homepage as shown in figure 4,
And upgrade before homepage as shown in figure 3, then client to server send Page Template update request when,
The corresponding Page Template of homepage (as shown in Figure 5) after renewal can be returned to client by server, visitor
After family termination receives the Page Template of redaction, the Page Template of redaction is stored in local storage region
In addition, the mode of above-mentioned renewal masterplate is not consider whether user obtains the page of website, also one
It is that client can receive clothes while the variable information that the reception server is returned, also to plant template renewal mode
The mark of the Page Template that business device is returned, specifically, when client is after page request is sent to server,
After server receives the page request of client transmission, the page request can be determined according to page request
The corresponding page, further according to the mark of each information in the page, determines which is variable information, and which is page
Face fix information, which is Page Template, and server is by the variable information determined and the mark of Page Template
Return to client and return to client together.
Here it should be noted that the mark unique Page Template of correspondence of each Page Template, not only not
Mark with the corresponding Page Template of the Page Template of the page is different, and the page of same page different editions
The mark of the corresponding Page Template of template is also different, and the mark of Page Template can be specifically Page Template
Version number.
Client can first judge the page for receiving after the mark of Page Template of server return is received
Template mark with the Page Template for prestoring identify whether it is identical, it is if so, then variable by what is received
Information and the page fix information for prestoring are added in the Page Template for prestoring, to generate the page,
Otherwise, Page Template is obtained from server, update the page mould for prestoring using the Page Template for obtaining
Plate, and the variable information for receiving and the page fix information for prestoring are added to into the page mould after updating
In plate, to generate the page.
For example, it is assumed that the homepage of certain commodity website is upgraded, the homepage after upgrading as shown in figure 4,
And the corresponding Page Template of homepage after upgrading is as shown in figure 5, the Page Template corresponding Page Template
V2 is designated, and is stored in advance in the mark of the corresponding Page Template of the Page Template in local storage region
For V1, it is assumed that certain user clicks on client in the client using certain commodity website, and client then can
The page request for carrying homepage web page address is sent to into server, server is after page request is received
The corresponding page of page request is determined, the commodity letter of push is determined further according to the mark of each information in the page
Breath, temporal information are variable information, determine the mark that V2 is Page Template, and server will be determined
Mark V2 of variable information and Page Template returns to client, client after the information for receiving user,
LOGO, the contact method (that is, page fix information) of website of website is transferred out from local storage region
And mark V1 of Page Template, by the mark of the mark V2 of Page Template and the Page Template for prestoring
V1 is contrasted, it is clear that the two differs, then client can send call request to server, obtain
Mark V2 corresponding page template (as shown in Figure 5) of Page Template, and by page fix information and variable letter
Breath is added in the Page Template after updating, and generates and shows homepage (as shown in Figure 4), will show homepage
Face shows user, and the Page Template as shown in Figure 5 for getting is replaced original client locally protects
The Page Template deposited, that is, be stored in Page Template as shown in Figure 5 as the Page Template after renewal
Client is local.
In addition, can also there is more news (e.g., the contact method of website) in above-mentioned page fix information,
Therefore, for user's exhibition information while, also page fix information to be checked, with ensure service
Device end after page fix information is updated can timely show user, page fix is being entered
Row can be calculated using message digest algorithm the 5th edition (Message Digest Algorithm, MD5) when checking
Method, specifically, the page fix information in the page that can be stored server end is ranked up shape in order
Into an overall data, and the corresponding MD5 values of the data are calculated, and the MD5 values are sent to into client
End, after client receives MD5 values, client transfers out the page being stored in advance in local storage region
The corresponding MD5 values of face fix information, are compared with the MD5 values for receiving, and judge whether the two is consistent,
If so, then directly the page fix information being stored in advance in local storage region is taken out and is added to page
On face die plate, if it is not, then call request is sent to server, while the MD5 values for receiving are stored in
In client local storage region, in server is obtained after the corresponding page fix information of Page Template, will
Get page fix information to be added on Page Template, and update the letter of the page fix in local storage region
Breath.
Continuation of the previous cases, it is assumed that server is to page fix information (that is, the website in the server end homepage
LOGO, the contact method of website) carry out MD5 calculating, the MD5 values calculated be 66, and
What client took out be stored in advance in local storage region page fix information (that is, website
LOGO, the contact method of website) corresponding MD5 values be 66, it is clear that the two is consistent, then say
Page fix information in prescribed server end in the homepage is not updated, therefore, by website
LOGO, the merchandise news of the contact method of website and push, temporal information are added in Page Template, shape
Into displaying homepage as indicated at 4.
The information displaying method for providing for the embodiment of the present application above, based on same thinking, the application is implemented
Example also provides a kind of device for displaying information, as shown in Figure 6, Figure 7.
The device for displaying information structural representation that Fig. 6 is provided for the embodiment of the present application, including:
Request module 601 is sent, for page request being sent to server;
Receiver module 602, for the variable information that the reception server is returned according to the page request;
Display module 603, it is for according to the variable information for receiving and the fix information for prestoring, raw
Into the page and show.
The fix information includes page fix information and Page Template.
The display module 603 is specifically for the Page Template that acquisition is prestored is variable by what is received
Information and the page fix information for prestoring are added in the Page Template, to generate the page.
The display module 603 specifically for, at set time intervals from server obtain page mould
Plate is simultaneously stored, or the reception server the Page Template that sends is stored when Page Template is updated.
The receiver module 602 is specifically for the variable letter that the reception server is returned according to the page request
The mark of breath and Page Template, it is according to the variable information for receiving and the fix information for prestoring, raw
Into the page, specifically include:The mark of the Page Template that judgement is received and the mark of the Page Template for prestoring
Whether knowledge is identical, is if so, then added to the variable information for receiving and the page fix information for prestoring
In the Page Template for prestoring, to generate the page, otherwise, Page Template is obtained from server, is adopted
The Page Template of acquisition updates the Page Template for prestoring, and by the variable information for receiving and prestores
Page fix information be added to update after Page Template in, to generate the page.
Device shown in Fig. 6 is may be located in terminal, specifically may be located in the client in terminal.
The device for displaying information structural representation that Fig. 7 is provided for the embodiment of the present application, including:
Receiver module 701, for receiving the page request of client transmission;
Determining module 702, for according to page request, determine in the corresponding page of the page request can
Change information;
Module 703 is returned, for the variable information determined is returned to client.
The determining module 702 is specifically for according to page request, determining that page request is corresponding variable
The variable information determined is returned to client by the mark of information and the Page Template for pre-building, tool
Body includes:The mark of the variable information determined and Page Template is returned to into client.
Specifically, the device shown in Fig. 7 is may be located in server.
In a typical configuration, computing device includes one or more processors (CPU), input/defeated
Outgoing interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory
And/or the form, such as read only memory (ROM) or flash memory (flash RAM) such as Nonvolatile memory (RAM).
Internal memory is the example of computer-readable medium.
Computer-readable medium include permanent and non-permanent, removable and non-removable media can by appoint
What method or technique is realizing information Store.Information can be computer-readable instruction, data structure, program
Module or other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory
(PRAM), static RAM (SRAM), dynamic random access memory (DRAM), its
The random access memory (RAM) of his type, read only memory (ROM), electrically erasable are read-only
Memorizer (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read only memory
(CD-ROM), digital versatile disc (DVD) or other optical storages, magnetic cassette tape, tape magnetic
Disk storage or other magnetic storage apparatus or any other non-transmission medium, can be used for storage can be calculated
The information that equipment is accessed.Define according to herein, computer-readable medium does not include temporary computer-readable matchmaker
Body (transitory media), the such as data signal of modulation and carrier wave.
Also, it should be noted that term " including ", "comprising" or its any other variant are intended to non-row
His property is included, so that a series of process, method, commodity or equipment including key elements not only includes
Those key elements, but also including other key elements being not expressly set out, or also include for this process,
The intrinsic key element of method, commodity or equipment.In the absence of more restrictions, " included by sentence
One ... " key element that limits, it is not excluded that in the process including the key element, method, commodity or set
Also there is other identical element in standby.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer journey
Sequence product.Therefore, the application can using complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.And, the application can wherein include calculating using at one or more
Machine usable program code computer-usable storage medium (including but not limited to disk memory, CD-ROM,
Optical memory etc.) on the form of computer program implemented.
Embodiments herein is the foregoing is only, the application is not limited to.For this area skill
For art personnel, the application can have various modifications and variations.All institutes within spirit herein and principle
Any modification, equivalent substitution and improvements of work etc., within the scope of should be included in claims hereof.