CN102902805B - A kind of page access method and apparatus - Google Patents

A kind of page access method and apparatus Download PDF

Info

Publication number
CN102902805B
CN102902805B CN201210389794.6A CN201210389794A CN102902805B CN 102902805 B CN102902805 B CN 102902805B CN 201210389794 A CN201210389794 A CN 201210389794A CN 102902805 B CN102902805 B CN 102902805B
Authority
CN
China
Prior art keywords
page
access
resource
history
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201210389794.6A
Other languages
Chinese (zh)
Other versions
CN102902805A (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.)
Neusoft Corp
Original Assignee
Neusoft Corp
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 Neusoft Corp filed Critical Neusoft Corp
Priority to CN201210389794.6A priority Critical patent/CN102902805B/en
Publication of CN102902805A publication Critical patent/CN102902805A/en
Application granted granted Critical
Publication of CN102902805B publication Critical patent/CN102902805B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the present application discloses a kind of page access method.The method includes:Judge whether target pages to be visited are history page, if it is, obtaining in the page resource corresponding with the history page and page data for terminating to be stored when the history page is accessed;History page is accessed using the page resource and page data of the history page for obtaining.The embodiment of the present application also discloses a kind of page access device.Access to history page can be realized in the case where page status when terminating history page access are retained by the technical scheme of the embodiment of the present application, the concurrent pressure of server is alleviated, the access operating time has been saved, page access efficiency is improve on the whole.

Description

A kind of page access method and apparatus
Technical field
The application is related to message reference technical field, more particularly to a kind of page access method and related device.
Background technology
With the fast development of information technology, to the visiting demand more and more higher of information page, do not require nothing more than has user Access speed higher, and require that access process disclosure satisfy that special requirement.A kind of common page access demand is:Decapacitation It is enough new page (page for accessing first) to be carried out outside normal access, accessing history page (page for once accessing) When, it is necessary to the page status kept during the access for terminating the history page can be returned to, it is unfinished to proceed Some operate or check again relevant content.
To meet above-mentioned page access demand, prior art mainly provides two kinds of access modules:One is that unified resource is determined Position symbol (URL) pattern;Two is Server Mode.The former find access target pages be history page when, by advance The URL that local access vestige (the such as content of Cookies file records) reacquires history page is stored in, then foundation The URL is from server loading page content realizing the access of history page;The latter is history in the target pages for finding to access During the page, first the relevant behaviour on the history page that request message is pre-stored in server end to obtain is sent to server Make information and data message, then according to these operation informations and data message loading page full content realizing history page Access.
Although above two access module can realize the access to history page in some cases, both Access module cannot completely, exactly be returned to the page status terminated when history page is accessed on the whole, with real meaning Access of the upper realization to history page:Because URL pattern is to realize history page according to the URL for regaining Access, each access process loaded targets page again, in the case of updating occur in target pages, the mesh which is accessed Mark the page be really update after the page and non-real " history page ";Because server end mode is generally only capable of preserving limited Page operation information and data message, and then can only be visited according to the history page of these information realizations " locality, finiteness " Ask.As can be seen here, prior art also no one kind in the access process of history page can be realized " retaining and terminating history page The history page access method of page status during access ", reduces page access efficiency on the whole, it is impossible to meet real need Will.
The content of the invention
In order to solve the above technical problems, the embodiment of the present application provides a kind of page access method and its related device, with reality Retain the access of the history page under page status when terminating history page access now, and then improve page access on the whole Efficiency, meets reality need.
The page access method that the embodiment of the present application is provided includes:
Judge whether target pages to be visited are history page, if it is, obtain terminating the visit of the history page The page resource and page data of the history page stored when asking;
Using the page resource and the page data access target page that obtain.
Preferably, the page resource includes page script resource, CSS resources and dom tree resource, described to utilize what is obtained Page resource and the page data access target page are specifically included:
Load the page script resource and CSS resources for obtaining;
Using loading page script resource and CSS resources according to obtain dom tree asset creation history page dom tree Represent structure;
Represent the access that structure realizes target pages with the page data of acquisition using dom tree.
It is further preferred that if the access to target pages is triggered by a page, a page is first page Face, after the page data for representing structure using dom tree with obtain realizes that target pages are accessed, methods described also includes:
Target pages according to navigation subject identification receive first page sent by data/address bus with the navigation theme mark Know corresponding data message;
Target pages update the page according to the data message for obtaining.
It is further preferred that when the data message that first page sends is asked including data subscription, methods described is also wrapped Include:Target pages meet the subscription data for subscribing to request to data/address bus issue, so that first page should from data/address bus reception Subscribe to data.
It is further preferred that if the access to target pages is triggered by a page, a page is second page Face, methods described also includes:
Before the page script resource and CSS resources that are stored when the access for terminating history page is obtained, second page is judged Whether face has loaded page script resource and CSS resources to be obtained, if it does not exist, then perform obtain page script resource and The step of CSS resources.
Preferably, it is described to judge whether target pages to be visited are that history page is specifically included:
The mark queue for searching the mark of the page for accessing that is stored with whether there is the mark of the target pages, if deposited , then the target pages be history page.
Preferably, when target pages to be visited are not history pages, methods described includes:
Access request, the response message loaded targets page according to server are sent to server;
When the access of the target pages is terminated, the page resource and page data of target pages are stored.
The embodiment of the present application additionally provides a kind of page access device.The device includes:First judging unit, acquiring unit And access unit, wherein:
First judging unit, for judging whether target pages to be visited are history page, if it is, triggering Acquiring unit;
The acquiring unit, the page money for obtaining the history page stored when the access of the history page is terminated Source and page data;
The access unit, for using the page resource and the page data access target page for obtaining.
Preferably, the page resource includes page script resource, CSS resources and dom tree resource, the access unit tool Body includes:Loading subelement, establishment subelement and access subelement, wherein:
The loading subelement, for loading the page script resource and CSS resources that obtain;
The establishment subelement, for the page script resource and CSS resources using loading according to the dom tree resource for obtaining The dom tree for creating history page represents structure;
The access subelement, the visit of target pages is realized for representing structure using dom tree with the page data for obtaining Ask.
It is further preferred that if the access to target pages is triggered by a page, a page is first page Face, described device also includes:Receiving unit and updating block, wherein:
The receiving unit, for realizing that target pages are accessed in the page data for representing structure using dom tree and obtain Afterwards, the data corresponding with the navigation subject identification that first page is sent by data/address bus are received according to navigation subject identification Information;
The updating block, for updating the page according to the data message for obtaining.
It is further preferred that when the data message that first page sends is asked including data subscription, described device is also wrapped Release unit is included, for meeting the subscription data for subscribing to request to data/address bus issue, so that first page connects from data/address bus Receive the subscription data.
It is further preferred that if the access to target pages is triggered by a page, a page is second page Face, described device also includes:Second judging unit, for the page script money stored when the access for terminating history page is obtained Before source and CSS resources, judge whether second page has loaded page script resource and CSS resources to be obtained, if do not deposited Then trigger acquiring unit and obtain page script resource and CSS resources.
Preferably, first judging unit judges whether target pages are that history page is specifically included:
The mark queue for searching the mark of the page for accessing that is stored with whether there is the mark of the target pages, if deposited , then the target pages be history page.
Preferably, when target pages to be visited are not history pages, described device includes:Transmitting element, loading are single Unit and memory cell, wherein:
The transmitting element, for sending access request to server;
The loading unit, for the response message loaded targets page according to server;
The memory cell, for when the access of the target pages is terminated, storing the page resource and page of target pages Face data.
The embodiment of the present application is obtained and is terminating history page visit after judging target pages to be visited for history page The page resource and page data of the history page stored when asking, and gone through using page resource and the page data access for obtaining The history page.Compared with prior art, the page resource and page data of history page are previously stored with due to the embodiment of the present application, The access of history page is capable of achieving according to the page resource and page data for prestoring when history page is accessed, and no longer Carry out reloading operation from server as URL pattern, even if history page occurs in that renewal, visit The page asked is also the history page of " remaining page status when terminating to access history page ".
Simultaneously as the embodiment of the present application prestore be history page page resource and page data, it is different In the top layer operation information and data message of Server Mode storage, by page resource and page data can completely, standard Page status when terminating history page access really are returned to, so as to meet reality need.
Additionally, the embodiment of the present application is during history page is accessed, due to no longer needing refresh operation or access service Device end, alleviates the concurrent pressure of server, saves and accesses the operating time, so as to improve the access efficiency of the page on the whole.
Brief description of the drawings
In order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments described in application, for those of ordinary skill in the art, on the premise of not paying creative work, Other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is the page access method flow diagram of the embodiment of the present application one;
Fig. 2 is the page access method flow diagram of the embodiment of the present application two;
Fig. 3 (a), (b) are the technique effect schematic diagram of embodiment described in Fig. 2;
Fig. 4 is the page access method flow diagram of the embodiment of the present application three;
Fig. 5 is the structured flowchart of the page access of the embodiment of the present application four.
Specific embodiment
In order that those skilled in the art more fully understand the technical scheme in the application, below in conjunction with the application reality The accompanying drawing in example is applied, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described implementation Example is only some embodiments of the present application, rather than whole embodiments.Based on the embodiment in the application, this area is common The every other embodiment that technical staff is obtained under the premise of creative work is not made, should all belong to the application protection Scope.
Embodiment one
Referring to Fig. 1, the figure shows the flow of the page access method of the embodiment of the present application one.The present embodiment includes:
Step S101:Judge whether target pages to be visited are history page, if it is, performing step S102:
When user passes through browser access information page, there are various concrete forms to the access triggers of target pages, than Such as, can be directly inputted in the address field of browser target pages address triggering target pages access, or The address (theme) of the target pages stored by the collection of browser is triggered and accessed, and be can also be when current page is accessed The navigation link provided by clicking on current page is triggered and accessed, it might even be possible to be to provide " preceding by browser tool bar Enter ", access of the triggering to target pages of " retrogressing " button.The corresponding accession page of different triggering modes of the access target page Property also likely to be present difference, such as, and the target pages accessed by browser collection folder triggering mode usually history page (page for having accessed), the target pages accessed by the navigation link triggering mode for clicking on current page be both probably to go through The history page, it is also possible to the page for accessing first.
The present embodiment uses different processing modes to the different pages, therefore, needed after target pages triggering is accessed Judge the property of target pages, that is, judge that it is history page still accession page first.Deterministic process can have various tools Body implementation, such as judged by foregoing different triggering mode:Access is triggered in browser collection folder mode, then The target pages of access are usually history page;Accessed with " retrogressing " button-pressing way triggering of click browser tool bar, then The page of access is usually history page.Further, it is also possible to judge in the following way:The queue of one mark is set, is often accessed Page is the mark (such as, page address) for recording the accession page, so can be by searching in mark queue The no identification means that there are target pages are judged, if it is present illustrating that the target pages are the history for having accessed The page, is otherwise the new page for accessing first.Find target pages if the page for accessing first, then press by above-mentioned judgement According to the operation of common page access:Request message is sent to server according to the URL addresses that target pages triggering is obtained, etc. Device response to be serviced, the response according to server is presented html page, realizes accessing;If not the page for accessing first, i.e., History accession page, then processed in accordance with the following steps.
Step S102:Obtain the page resource and page number in the history page for terminating to be stored when the history page is accessed According to;
After identifying target pages for history accession page by abovementioned steps, the present embodiment obtains the history page and exists The page resource and page data of the page stored at the end of last visit.Here page resource is provided including page script Source, CSS resources, dom tree resource etc., page resource cover various page elements (page control, control location, the control of the page Organizational form of part etc.), page data is the value of page elements, by the reducible complete page of page resource and page data Face.Page script is the computer program that a kind of plain text is preserved, and various predetermined executable behaviour are carried out for control computer Make, belong to the extension of autoexec.Page script is write by script, and common script includes: Scala, JavaScript, VBScript, ActionScript, MAX Script, ASP, JSP, PHP, JavaFX, AutoIt Deng.CSS (Cascading Style Sheets, cascading style list) resource is a kind of for showing the files such as HTML or XML The computer language of pattern, it can accomplish that webpage performance is separated with web page contents, realize the position typesetting picture to web object Plain level control.DOM (Document Object Model, DOM Document Object Model) trees are that page elements are carried out with hierarchical structure The set of the node or pieces of information of tissue, it is the standard package unrelated with browser, platform, language.
Step S103:Using the page resource and the page data access target page of the history page for obtaining;
After judging target pages for history page, what acquisition was stored when history page access is terminated should for the present embodiment The page resource and page data of history page, and access history page using the page resource and page data that obtain.With it is existing There is technology to compare, the page resource and page data of history page are previously stored with due to the present embodiment, accessing history page When the access of history page is capable of achieving according to the page resource that prestores and page data, without the positioning of unified resource for another example Symbol pattern carries out reloading operation from server like that, even if history page occurs in that renewal, the page having access to is also The history page of " remaining page status when terminating to access history page ".
Simultaneously as the present embodiment prestore be history page page resource and page data, its be different from clothes The top layer operation information and data message of business device end pattern storage, can completely, exactly by page resource and page data Page status when terminating history page access are returned to, so as to meet reality need.
Additionally, the present embodiment is during history page is accessed, due to no longer needing refresh operation or access server end, The concurrent pressure of server is alleviated, is saved and is accessed the operating time, so as to the access for further increasing the web-page histories page is imitated Rate.
Embodiment two
Above-described embodiment is mentioned can conduct interviews treatment when the target access page is non-history page according to normal conditions, So it is only the specific quantity and scope to having prestored page resource and page data to the access of " history page " The access of history page, even now has no effect on the realization of the present application purpose, but is realized to history page to circulate The access in face, while not increasing the operating procedure of the individually page resource of storage accession page and page data, this implementation again Example performs storage operation preferably at the end of accessing accession page first.Referring to Fig. 2, the figure shows the page of the present embodiment The flow of face access method.The embodiment includes:
Step S201:Judge whether target pages to be visited are history page, if it is, performing step S202;Such as It is really no, then perform step S206:
Step S202:Obtain page script resource, the CSS in the history page for terminating to be stored when the history page is accessed Resource and dom tree resource and page data;
Step S203:Load the page script resource and CSS resources for obtaining;
The recovery of history page is capable of achieving after abovementioned steps obtain the page resource and page data of history page Rebuild.For different page resource types, its reconstruction mode there may be difference.When page resource is provided including page script When source, CSS resources and dom tree resource, the present embodiment is according to the mode of step S203~S205 using the history page pair for obtaining The page resource and page data answered access history page.
Step S204:Using the page script resource and CSS resources of loading according to the dom tree asset creation history page for obtaining The dom tree in face represents structure;
Step S205:Represent the access that structure realizes target pages with the page data of acquisition using dom tree, terminate stream Journey;
In this step, if the access to target pages is triggered by a page, target pages are likely to occur There is data and space synonym with the original triggering page.Born the same name for data, can be by the difference to different page definitions Closure, the closure of definition makes the data scoping that the page is born the same name different, so as to avoid bearing the same name.Born the same name for control, can passed through All page controls are traveled through, is the identification number assignment again of each page control, that is, be added to its addition unique mark prefix, from And avoid bearing the same name.
Step S206:Access request is sent to server, the response message loaded targets page according to server is realizing The access of target pages;
Step S207:When the access of the target pages is terminated, the page resource and page data of target pages, knot are stored Line journey;
To enable this target access page that state when terminating this access, this reality to be presented when next accessed Example is applied when the access of this target pages is terminated, page resource corresponding with the target pages and page data is stored.
The present embodiment takes different processing modes for the heterogeneity of the target access page, when the target access page is During history accession page, the page resource corresponding with the history page and page data prestored by reading, Jin Erli The access to history page is realized with these data;When the target access page is accession page (non-history accession page) first When, the target access page is obtained by sending request message to server, then when target access end-of-page is accessed, storage Page resource corresponding with the target access page and page data.Compared with prior art, the present embodiment can at least be obtained Following technique effect:
(1) the present embodiment can realize the visit of the history page of " retaining the page status terminated when history page is accessed " Ask.Compared with unified resource station-keeping mode, the present embodiment passes through the page script resource of the history page for prestoring, CSS and provides Source and the class page resource of dom tree resource three and page data access history page, only need to again parse DOM node, and need not Carry out re-downloading resource from server and render the refresh operations such as control, even if history page is accessed terminating and is interviewed again Occur updating during asking, because page script resource, CSS resources and the class page resource of dom tree resource three and page data are knots Resource and data when beam history page is accessed, therefore, the page having access to by this way is necessarily with " end accesses history The page status during page " identical history page.Compared with Server Mode, what the embodiment of the present application was prestored is more It is the page script resource of bottom, CSS resources and the class page resource history of dom tree resource three and page data, due to this three class Resource and page data are different from the superficial operation information and data message of Server Mode storage, by the three class pages Resource and page data can completely, build history page exactly, therefore, the page having access to by this way is also necessarily With " terminating to access page status during history page " identical history page.
(2) the present embodiment can mitigate server concurrent operations pressure.The page money of the history page of the present embodiment storage Source and page data are terminating to be preserved when history page is accessed, and access operation and are located locally, the page resource of storage Also it is necessarily located at page data locally, the three class resources and page data being locally stored only is read when history page is accessed Purpose is capable of achieving, and without realizing refreshing by the information exchange between server as URL pattern Operation, sends request message to obtain the operation information of server end preservation without as Server Mode to server And data message, therefore, the access times to server are reduced when history page is accessed by way of the present embodiment, mitigate The concurrent operations pressure of server.
(3) the present embodiment can reduce access time, the overall access efficiency for improving the page.The present embodiment is to target access Page division is history page and the major class of accession page two first, for the access of history page, due to taking from locally reading History page terminates the page resource and page data stored when accessing, without carrying out information exchange (with server with server Interactive process is one of the most time-consuming operation in whole access process), therefore, the present embodiment can reduce the visit of history page Ask the time, and then improve the access efficiency of the page on the whole.Referring to Fig. 3 (a), shown in (b), the figure shows the present embodiment with it is existing There is the comparison schematic diagram of the technique effect of technical scheme, wherein:Fig. 3 (a) reflections are to access new page (accession page first) Situation, in this case, the present embodiment only has to download and the page resource time and renders page time, without server end The servers such as the search operation information and data message of pattern read/take the time;3 (b) reflection is the situation for accessing history page, The present embodiment only needs cost time (note when DOM structure is parsed in this case:Due to reading history page correspondence from local Web page resources and web data time loss it is much smaller compared to the time loss of parsing DOM structure, no longer equal number The time loss of read operation is eliminated in level, in figure), the URL pattern and Server Mode of prior art The time downloaded page resource and render the page is respectively provided with, and Server Mode also exists in addition to this two parts time loss In the time loss that the server such as server end search operation information and data message is read/taken.It may be seen that the present embodiment Access time is greatly reduced, and improves access efficiency.
(4) in addition to above-mentioned these main technique effects from for user perspective, the present embodiment can also give WEB system developments Personnel bring a series of beneficial effect:The development difficulty of service logic complex page can be reduced by the present embodiment, by page Face decouples, and improves page reusing degree, strengthens the maintainability of the page.
On the basis of the present embodiment, those skilled in the art are also based on different purposes and propose many corrective measures, So as to further optimize the technical scheme of the application.
Such as, when implementing storage in abovementioned steps S207, for ease of this target pages as " history page Face " can be quickly found its corresponding page resource when accessed, can be by setting up resource pool to page resource according to page pin The classification storage of this resource, CSS resources and dom tree resource three major types type.The size of resource pool depends on user to " history page " Access number, such as, when user needs to access the page that had accessed in longer period, then resource pool can be set to obtain phase To big;The page accessed several times before user only needs to access, then can set resource pool relatively smaller.Resource pool Big I use fixed size mechanism, after resource pool memory storage is full, will most be looked for according to time order and function be saved in resource pool and The corresponding page resource of history page and page data of the least number of times being accessed again remove resource pool, so as to discharge resource The memory space in pond.
Also such as, when target pages are that the on-link mode (OLM) provided by current page triggers the situation for accessing, due to page Face script resource and CSS resource categories are limited, and the different pages may use identical page script resource and CSS resources, because This, before page script resource and CSS resources is obtained, can first judge whether current page has loaded the page to be obtained Script resource and CSS resources, if loaded, illustrate current page had the page script resource to be obtained and CSS resources, at this moment just without repeating to load, to save access time;If it does not exist, then what explanation target pages will be used Page script resource and CSS resources are different from the existing page script resource of current page and CSS resources, at this moment just need loading Access page script resource and CSS resources that history page needs.As can be seen here, do not repeat to load strategy by this, reduce The overall time of loading page resource, so as to being conducive to further improving the access efficiency of the page.
For another example, when target pages are that the on-link mode (OLM) provided by current page triggers the situation for accessing, Ke Yiwei Switching between the different pages, offer navigation bar is redirected, the theme for showing order that page link is oriented to and each page, So as to play page navigation effect.For example:When page A is oriented to page B, then page C is directed to by page B, then can given birth to Into navigation bar " page A themes>Page B themes>Page C themes ";When the theme triggering by clicking on navigation bar is repositioned onto During history page B, renewal navigation bar is " page A themes>Page B themes ".
Embodiment three
Meeting " holding end history page when the target pages that previous embodiment describes access in detail are history page The method that history page is accessed is realized under page status during access " this requirements.If the access to target pages is by one In the case of the individual page (rather than other modes) is triggered, the above method indeed achieves the switching between two pages, i.e., by The page (hereinafter referred to as first page) that triggering target pages are accessed is switched to target pages, this switching be the simple page it Between redirect, without occur the page between data transfer.
However, in some cases, such as there is service logic relation, target pages between first page and target pages Some of target pages return must must be obtained using some operations of some information realizations of first page, or first page When information is operated with completing some, with regard to necessarily involving the information transmission problem between two pages.Letter between two pages Breath transmission includes three kinds of situations:One is that first page is transmitted for information about, after target pages receive these information to target pages Some local updating operations are carried out on the basis of " parent page state ";Two is that target pages are believed to first page transmission is relevant Breath, first page receives these information and carries out some unfinished operations;Three is that first page and target pages mutually transmit letter Breath, such as first page send subscription request message propose subscribe to require, target pages produce meet first page subscribe to It is required that information after issue its needs information used for first page.
URL pattern of the prior art is to carry out refresh operation again, two according to URL due to the access to target pages It is opposing one another between the page, the information transmission between the page cannot be realized naturally;The service end pattern of prior art equally can not Solve the problems, such as the information transmission between the page.In order to realize the information transmission between the different pages, present applicant proposes realizing page Interview carries out the embodiment of the method for information transmission during asking.Referring to Fig. 4, the figure shows the flow of the present embodiment.The implementation Example increases following steps on the basis of embodiment two, and other steps are identical with embodiment two, and its number of steps is accordingly changed:
Step S408:Target pages are led according to what navigation subject identification reception first page was sent by data/address bus with this The corresponding data message of boat subject identification;
Here navigation subject identification is used to distinguish different data messages, and the differentiation of this data message has level Property:One is target pages level, and because first page is used as the previous page, the data message that it sends may can towards multiple The target pages of energy, for the ease of the differentiation to the different target page, it is necessary to setting a navigation subject identification distinguishes different Target pages;Two is the page elements level of target pages, and a target pages have multiple page elements, different page units The data message that element needs has differences, proper use of for the ease of being carried out to the data message for receiving, it is also desirable to set one Individual navigation subject identification distinguishes the page elements page.If target pages only have a page elements needs data message, only exist Navigation subject identification is used in first level.During implementing, first page produces target pages needs After data message, might not immediately trigger and be switched to target pages, target pages will be unable to receive information due to not being accessed Data, in this case, can create a buffer area for these data messages, and the data that first page is produced are with the master that navigates Topic is designated index and is cached, and after target pages are had been switched to, target pages receive data if desired, then send one The request message of " can receive data message ", then reads corresponding data letter according to navigation subject identification from buffer area Breath.Data information transfer of the first page (buffer area) and target pages between can be realized by data/address bus, i.e. first page Be sent to data message with navigation subject identification on data/address bus by face, and target pages are according to navigation subject identification from data Corresponding data message is received in bus.
Step S409:Target pages update the page according to the data message for obtaining.
After target pages receive the data message of its needs, you can using these data messages to the relevant of target pages Page elements carry out again assignment etc. and update operation.
Both of the aforesaid step realize from target (i.e. unidirectional delivery) from first page to target pages transmitting data information, But in some cases, in addition it is also necessary to which target pages are to first page returned data information.Such as, when first page passes to target When the data message of the page includes that data subscription is asked, if target pages generate the data message for meeting subscription request When, you can the data of data subscription message request are issued to first page.If it is total that the subscription request message is sent to data On line, then the data message that the satisfaction that target pages will can also be produced subscribes to request is issued in data/address bus in the form of a message On, by first page according to the data message for receiving subscription the need for oneself from data/address bus at any time.
The present embodiment increased data information transfer function on the basis of previous embodiment, meets and deposit between the different pages Page access problem in the case of logic business association.
Example IV
Above is the description to the application embodiment of the method, present invention also provides page access device embodiment.Referring to Accompanying drawing 5, the figure shows the structure of page access device.Present apparatus embodiment includes:First judging unit 501, acquiring unit 502 and access unit 503, wherein:
First judging unit 501, for judging whether target pages to be visited are history page, if it is, triggering Acquiring unit;First judging unit can be used as follows when whether implement target pages is the judgement of history page Mode:The identification list of the mark of the page for accessing that lookup is stored with whether there is the mark of target pages, if deposited , then the target pages be history page;
Acquiring unit 502, for obtaining the page resource in the history page for terminating to be stored when the history page is accessed And page data;
Access unit 503, for using the page resource and the page data access target page for obtaining.
The course of work of present apparatus embodiment is:Whether target pages to be visited are first judged by the first judging unit 501 It is history page, if it is, triggering acquiring unit 502 is obtained in the history page for terminating to be stored when the history page is accessed Page resource and page data;Then by access unit 503 using page resource and page data the access target page for obtaining Face.
Present apparatus embodiment obtains and is terminating to be stored when history page is accessed after judging target pages for history page The history page page resource and page data, and using obtain page resource and page data access history page. Compared with prior art, the page resource and page data of history page are previously stored with due to present apparatus embodiment, are being accessed The access of history page is capable of achieving during history page according to the page resource and page data for prestoring, without unifying for another example URLs pattern carries out reloading operation like that, even if history page occurs in that renewal, the page having access to is also " to protect Stayed terminate access history page when page status " history page.Simultaneously as present apparatus embodiment prestore be The page resource and page data of history page, its be different from Server Mode storage top layer operation information sum it is believed that Breath, the page status terminated when history page is accessed can completely, be exactly returned to by page resource and page data, from And meet reality need.Additionally, present apparatus embodiment access history page during, due to no longer need refresh operation or Access server end, alleviates the concurrent pressure of server, saves and accesses the operating time, so as to improve the access of the page on the whole Efficiency.
The concrete structure of the access unit of present apparatus embodiment is relevant with the type of the page resource for prestoring.Such as, When the page resource for prestoring includes page script resource, CSS resources and dom tree resource, access unit 503 specifically can be with Including:Loading subelement 5031, establishment subelement 5032 and access subelement 5033, wherein:Loading subelement 5031, for adding Carry the page script resource and CSS resources for obtaining;Subelement 5032 is created, for page script resource and CSS using loading Resource represents structure according to the dom tree of the dom tree asset creation history page for obtaining;Subelement 5033 is accessed, for utilizing DOM Tree represents the access that structure realizes target pages with the page data of acquisition.Under this architectural scenarios of access unit, if Target pages are to be triggered to access by current page (can be described as second page), and present apparatus embodiment can also include that second judges Unit 504, for the page script resource that stores when the access for terminating history page is obtained and CSS resources before, judge the Whether two pages have loaded page script resource and CSS resources to be obtained, if it does not exist, then triggering acquiring unit.Pass through The judgement of the second judging unit avoids the repetition loading to page resource, so as to be conducive to improving page access efficiency.
Present apparatus embodiment can also be to adapt to new function to increase some functional units.If such as to target pages Access is triggered by a page, and a page is first page, and described device also includes:Receiving unit and updating block, Wherein:The receiving unit, for realizing that target pages access it in the page data for representing structure using dom tree and obtain Afterwards, data corresponding with the navigation subject identification letter that first page is sent by data/address bus is received according to navigation subject identification Breath;The updating block, for according to the data message refresh page for obtaining.Preferably, when the data letter that first page sends When breath includes that data subscription is asked, described device also includes release unit, and request is subscribed to for meeting to data/address bus issue Data are subscribed to, so that first page receives the subscription data from data/address bus.The present embodiment increase functional unit as above can be real Data information transfer between the existing different pages.
When first judging unit of present apparatus embodiment judges the target access page for non-history page, can be according to logical Normal page treatment operation is processed, although the realization of this sample loading mode without prejudice to the present application purpose, this mode is only The access of history page can be realized in limited range and quantity, in order to realize the cyclic access of history page, to be visited When target pages are not history page, the device of the embodiment of the present application preferably also includes:Transmitting element 505, the and of loading unit 506 Memory cell 507, wherein:Transmitting element 505, for sending access request to server;Loading unit 506, for according to clothes The response message loaded targets page of business device;Memory cell 507, for when the access of the target pages is terminated, storing target The page resource and page data of the page.
For convenience of description, it is divided into various units with function during description apparatus above to describe respectively.Certainly, this is being implemented The function of each unit can be realized in same or multiple softwares and/or hardware during application.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can Realized by the mode of software plus required general hardware platform.Based on such understanding, the technical scheme essence of the application On the part that is contributed to prior art in other words can be embodied in the form of software product, the computer software product Can store in storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are used to so that a computer equipment (can be personal computer, server, or network equipment etc.) performs some of each embodiment of the application or embodiment Method described in part.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment Divide mutually referring to what each embodiment was stressed is the difference with other embodiment.Especially for system reality Apply for example, because it is substantially similar to embodiment of the method, so describing fairly simple, related part is referring to embodiment of the method Part explanation.System embodiment described above is only schematical, wherein described illustrate as separating component Unit can be or may not be physically separate, the part shown as unit can be or may not be Physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to the actual needs Some or all of module therein is selected to realize the purpose of this embodiment scheme.Those of ordinary skill in the art are not paying In the case of creative work, you can to understand and implement.
The application can be used in numerous general or special purpose computing system environments or configuration.For example:Personal computer, service Device computer, handheld device or portable set, laptop device, multicomputer system, the system based on microprocessor, top set Box, programmable consumer-elcetronics devices, network PC, minicom, mainframe computer, including any of the above system or equipment DCE etc..
The application can be described in the general context of computer executable instructions, such as program Module.Usually, program module includes performing particular task or realizes routine, program, object, the group of particular abstract data type Part, data structure etc..The application can also be in a distributed computing environment put into practice, in these DCEs, by Remote processing devices connected by communication network perform task.In a distributed computing environment, program module can be with In local and remote computer-readable storage medium including including storage device.
The above is only the specific embodiment of the application, it is noted that for the ordinary skill people of the art For member, on the premise of the application principle is not departed from, some improvements and modifications can also be made, these improvements and modifications also should It is considered as the protection domain of the application.

Claims (10)

1. a kind of page access method, it is characterised in that the method includes:
Judge whether target pages to be visited are history page, if it is, obtaining when the access of the history page is terminated The page resource and page data of the history page of storage, the page resource cover the various pages unit of history page Element, the page data refers to the value of the page elements;
Using the page resource and the page data access target page that obtain, the history is accessed to realize that access remains end The history page of the page status during page;
If the access to target pages is triggered by a page, a page is first page, then methods described is also wrapped Include:
Target pages according to navigation subject identification receive first page caching on the data bus with the navigation subject identification pair The data message answered;
Target pages update the page according to the data message for obtaining;
If the data message that first page sends is asked including data subscription, the satisfaction that target pages will be produced subscribes to request Subscription according to this issue on the data bus by form of message, so that first page receives the subscription data from data/address bus.
2. method according to claim 1, it is characterised in that the page resource includes page script resource, CSS resources The page resource and the page data access target page obtained with dom tree resource, the utilization are specifically included:
Load the page script resource and CSS resources for obtaining;
Page script resource and CSS resources using loading represent according to the dom tree of the dom tree asset creation history page for obtaining Structure;
Represent the access that structure realizes target pages with the page data of acquisition using dom tree.
3. method according to claim 2, it is characterised in that if the access to target pages is touched by a page Hair a, page is second page, and methods described also includes:
Before the page script resource and CSS resources that are stored when the access for terminating history page is obtained, judge that second page is It is no to have loaded page script resource and CSS resources to be obtained, if it does not exist, then perform obtaining page script resource and CSS The step of resource.
4. method according to claim 1, it is characterised in that described to judge whether target pages to be visited are history page Mask body includes:
The mark queue for searching the mark of the page for accessing that is stored with whether there is the mark of the target pages, if it does, Then the target pages are history page.
5. the method according to any one of Claims 1-4, it is characterised in that be not in target pages to be visited During history page, methods described includes:
Access request, the response message loaded targets page according to server are sent to server;
When the access of the target pages is terminated, the page resource and page data of target pages are stored.
6. a kind of page access device, it is characterised in that the device includes:First judging unit, acquiring unit and access unit, Wherein:
First judging unit, for judging whether target pages to be visited are history page, if it is, triggering is obtained Unit;
The acquiring unit, for obtain the page resource of the history page that is stored when the access of the history page is terminated and Page data, the page resource covers the various page elements of history page, and the page data refers to the page unit The value of element;
The access unit, for using the page resource and the page data access target page for obtaining, being retained with realizing accessing The history page of page status when terminating to access the history page;
If the access to target pages is triggered by a page, a page is first page, and described device also includes: Receiving unit and updating block, wherein:
The receiving unit, for after using the page resource for obtaining and the page data access target page, according to navigation Subject identification receives first page caching data message corresponding with the navigation subject identification on the data bus;
The updating block, for updating target pages according to the data message for obtaining;
When the data message that first page sends is asked including data subscription, described device also includes release unit, for inciting somebody to action The satisfaction of generation subscribes to the subscription form of message issue according to this of request on the data bus, so as to first page from data/address bus Receive the subscription data.
7. device according to claim 6, it is characterised in that the page resource includes page script resource, CSS resources With dom tree resource, the access unit specifically includes:Loading subelement, establishment subelement and access subelement, wherein:
The loading subelement, for loading the page script resource and CSS resources that obtain;
The establishment subelement, for the page script resource and CSS resources using loading according to the dom tree asset creation for obtaining The dom tree of history page represents structure;
The access subelement, the access of target pages is realized for representing structure using dom tree with the page data for obtaining.
8. device according to claim 7, it is characterised in that if the access to target pages is touched by a page Hair a, page is second page, and described device also includes:
Second judging unit, for the page script resource that stores when the access for terminating history page is obtained and CSS resources it Before, judge whether second page has loaded page script resource and CSS resources to be obtained, if it does not exist, then triggering is obtained Unit obtains page script resource and CSS resources.
9. device according to claim 6, it is characterised in that first judging unit judges whether target pages are to go through The history page is specifically included:
The mark queue for searching the mark of the page for accessing that is stored with whether there is the mark of target pages, if it is present The target pages are history page.
10. the device according to any one of claim 6 to 9, it is characterised in that be not in target pages to be visited During history page, described device includes:Transmitting element, loading unit and memory cell, wherein:
The transmitting element, for sending access request to server;
The loading unit, for the response message loaded targets page according to server;
The memory cell, for when the access of the target pages is terminated, storing the page resource and page number of target pages According to.
CN201210389794.6A 2012-10-15 2012-10-15 A kind of page access method and apparatus Expired - Fee Related CN102902805B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210389794.6A CN102902805B (en) 2012-10-15 2012-10-15 A kind of page access method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210389794.6A CN102902805B (en) 2012-10-15 2012-10-15 A kind of page access method and apparatus

Publications (2)

Publication Number Publication Date
CN102902805A CN102902805A (en) 2013-01-30
CN102902805B true CN102902805B (en) 2017-06-27

Family

ID=47575037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210389794.6A Expired - Fee Related CN102902805B (en) 2012-10-15 2012-10-15 A kind of page access method and apparatus

Country Status (1)

Country Link
CN (1) CN102902805B (en)

Families Citing this family (34)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103984686B (en) * 2013-02-07 2018-10-12 阿里巴巴集团控股有限公司 page switching method and device
CN104346397B (en) * 2013-08-06 2018-09-07 中国银联股份有限公司 Switching method based on the Asynchronous Request page and system
CN104424239B (en) * 2013-08-27 2017-12-19 北大方正集团有限公司 resource file loading method and device
CN103970534A (en) * 2014-04-15 2014-08-06 百度在线网络技术(北京)有限公司 Method and equipment for supplying rendered page in mobile application
WO2015196414A1 (en) 2014-06-26 2015-12-30 Google Inc. Batch-optimized render and fetch architecture
RU2665920C2 (en) 2014-06-26 2018-09-04 Гугл Инк. Optimized visualization process in browser
CN105320516B (en) * 2014-08-04 2019-06-21 中国移动通信集团浙江有限公司 A kind of display methods and device of webpage
CN105786894A (en) * 2014-12-22 2016-07-20 广州市动景计算机科技有限公司 Page display method and page display equipment
CN105824830B (en) * 2015-01-06 2020-01-17 阿里巴巴集团控股有限公司 Method, client and equipment for displaying page
CN106202104A (en) * 2015-05-07 2016-12-07 阿里巴巴集团控股有限公司 The correlation technique of the opening speed of the optimization aim page and device
CN105608176B (en) * 2015-12-18 2019-03-26 东软集团股份有限公司 Page access method and apparatus
CN105607927A (en) * 2015-12-18 2016-05-25 小米科技有限责任公司 Page display method and apparatus
CN105528439B (en) * 2015-12-21 2019-03-05 北京奇虎科技有限公司 Page switching method and device in browser label
CN106899558B (en) * 2015-12-21 2020-05-08 腾讯科技(深圳)有限公司 Access request processing method and device and storage medium
CN106021419A (en) * 2016-05-12 2016-10-12 腾讯科技(深圳)有限公司 Web page operation method and device, and terminal
CN106021549B (en) * 2016-05-27 2020-04-07 青岛海信传媒网络技术有限公司 Web application program page control method and device and terminal equipment
CN106202244B (en) * 2016-06-28 2020-01-21 深圳中兴网信科技有限公司 Webpage message returning method and webpage message returning system
CN106126683B (en) * 2016-06-29 2020-03-24 青岛海信传媒网络技术有限公司 Page display method and terminal equipment
CN106503193A (en) * 2016-11-02 2017-03-15 网宿科技股份有限公司 Recover the method for the page and its device in browser
CN108156013B (en) * 2016-12-02 2021-08-10 阿里巴巴集团控股有限公司 Page service disaster tolerance method and device and electronic equipment
CN106649792B (en) * 2016-12-28 2021-02-05 北京奇虎科技有限公司 Page access method and device
CN106844656A (en) * 2017-01-23 2017-06-13 北京深思数盾科技股份有限公司 A kind of page adaptation method and system
CN107391119B (en) * 2017-06-30 2020-05-12 武汉斗鱼网络科技有限公司 Method and device for realizing horizontal and vertical screens
CN107341234B (en) * 2017-06-30 2021-04-13 广州酷狗计算机科技有限公司 Page display method and device and computer readable storage medium
CN107770630B (en) * 2017-10-25 2021-03-12 深圳市雷鸟网络传媒有限公司 Television navigation page display method and device, navigation system and readable storage medium
CN107678780B (en) * 2017-10-26 2020-10-16 深圳乐信软件技术有限公司 Memory management method and device, storage medium and terminal equipment
CN108769211B (en) * 2018-05-31 2022-04-12 康键信息技术(深圳)有限公司 Client device, routing method of web page, and computer-readable storage medium
CN109976856B (en) * 2019-03-26 2022-12-20 维沃移动通信有限公司 Page display method and terminal equipment
CN110111066A (en) * 2019-03-27 2019-08-09 深圳众赢维融科技有限公司 Business application method and device
CN110298003A (en) * 2019-05-31 2019-10-01 帷幄匠心科技(杭州)有限公司 Data rendering method and system
CN112214696B (en) * 2019-07-10 2023-10-20 腾讯科技(深圳)有限公司 Page display method and related device
CN113094126A (en) * 2019-12-23 2021-07-09 华为技术有限公司 Window processing method for terminal application, application server, terminal and storage medium
CN111274039B (en) * 2020-02-14 2023-12-08 Oppo广东移动通信有限公司 Memory recycling method and device, storage medium and electronic equipment
CN112597417B (en) * 2020-12-18 2024-03-12 北京达佳互联信息技术有限公司 Page updating method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7096418B1 (en) * 2000-02-02 2006-08-22 Persistence Software, Inc. Dynamic web page cache
CN101154230A (en) * 2006-09-30 2008-04-02 中兴通讯股份有限公司 Responding method for large data volume specified searching web pages

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7373614B1 (en) * 2004-02-10 2008-05-13 Apple Inc. Navigation history
US20060031751A1 (en) * 2004-05-26 2006-02-09 Shai Ehud Method for creating editable web sites with increased performance & stability
CN100565518C (en) * 2006-12-21 2009-12-02 腾讯科技(深圳)有限公司 A kind of method and system that keep page current data information
CN100589106C (en) * 2008-05-09 2010-02-10 杭州华三通信技术有限公司 Page jump method and system
CN101281529A (en) * 2008-05-30 2008-10-08 杨洪 Method for realizing hyperlink reading on hand-hold reading equipment
US8176411B2 (en) * 2008-07-16 2012-05-08 International Business Machines Corporation Integrating an applet into a multi-page or multi-tasking web application to enable applet state to be automatically saved and restored
CN101777081A (en) * 2010-03-08 2010-07-14 中兴通讯股份有限公司 Method and device for improving webpage access speed
CN102169416A (en) * 2011-04-27 2011-08-31 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and method for page jump of touch panel

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7096418B1 (en) * 2000-02-02 2006-08-22 Persistence Software, Inc. Dynamic web page cache
CN101154230A (en) * 2006-09-30 2008-04-02 中兴通讯股份有限公司 Responding method for large data volume specified searching web pages

Also Published As

Publication number Publication date
CN102902805A (en) 2013-01-30

Similar Documents

Publication Publication Date Title
CN102902805B (en) A kind of page access method and apparatus
US11106759B2 (en) Predictive resource identification and phased delivery of structured documents
CN104572293B (en) The implementation method of medical image diagosis system based on BS structures
CN104104649B (en) The method of page login, apparatus and system
US20120226785A1 (en) Setting Cookies in Conjunction with Phased Delivery of Structured Documents
US7797432B2 (en) Sharing state information between dynamic web page generators
CN104112002B (en) A kind of methods, devices and systems of list adaptation
CN102307220B (en) Cross-domain webpage information interaction method
CN109032797A (en) For providing the method and apparatus of web page access
CN106886570A (en) page processing method and device
CN102710793B (en) Network printing system based on cloud computing and data storage method thereof
CN106453576B (en) A kind of exchange method, system and control centre based on mixing cloud platform
CN103383687A (en) Page processing method and device
CN110020043B (en) Page crawling method, device, storage medium and processor
CN105095220B (en) A kind of browser implementation method, terminal and virtualization agent device
CN104780221A (en) Intellectual property comprehensive service platform system for middle and small-sized enterprises
CN107113337A (en) The network address translation
CN106817388A (en) The system that virtual machine, host obtain the method, device and access data of data
CN107807937A (en) A kind of website SEO processing methods, apparatus and system
CN103248707B (en) File access method, system and equipment
CN102148759A (en) Method for saving export bandwidth of backbone network by cache acceleration system
CN104270443B (en) A kind of cloud computing system and method for being capable of dynamic analysis Web applications
CN109522501A (en) Content of pages management method and its device
CN107645543A (en) Method and system applied to the non-80 caching miniport services of caching server HTTP
CN106101191A (en) A kind of Web access method, client and service end

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170627

Termination date: 20191015

CF01 Termination of patent right due to non-payment of annual fee