CN105027120A - Multi-page management method and device - Google Patents

Multi-page management method and device Download PDF

Info

Publication number
CN105027120A
CN105027120A CN201480000459.XA CN201480000459A CN105027120A CN 105027120 A CN105027120 A CN 105027120A CN 201480000459 A CN201480000459 A CN 201480000459A CN 105027120 A CN105027120 A CN 105027120A
Authority
CN
China
Prior art keywords
page
cross
variable
face variable
target pages
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.)
Granted
Application number
CN201480000459.XA
Other languages
Chinese (zh)
Other versions
CN105027120B (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.)
SINO-PARSONS TECHNOLOGY (BEIJING) Co.,Ltd.
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN105027120A publication Critical patent/CN105027120A/en
Application granted granted Critical
Publication of CN105027120B publication Critical patent/CN105027120B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to a multi-page management method and device. The multi-page management method comprises: according to a received page jump request, searching, by a client, for whether there is a scope of a cross-page variable to comprise a target page; in the case where it is found that there is a scope of a cross-page variable to comprise a target page, adding a reference of the cross-page variable to the target page; and using a page sharing content corresponding to the cross-page variable in the target page. In the embodiments of the present invention, if there is a scope of a cross-page variable to comprise a target page, a reference of the cross-page variable can be added to the target page, and a page sharing content corresponding to the cross-page variable can be used in the target page, so that resource sharing can be achieved via the variable, thereby reducing the waste of system resources.

Description

Multi-page management method and device
Multi-page management method and device
Technical field
The present invention relates to internet arena, more particularly to a kind of multi-page management method and device.Background technology
HTML (Hypertext Markup Language, HTML) is a kind of markup language for describing web document.World Wide Web Consortium newest at present(World Wide Web, W3C) among HTML5 standards formally finalize a text, but the standard is still in improving.Webpage real-time Communication for Power(Web Real-Time Communication, WebRTC) and web socket(WebSocket) it is two important new technologies in HTML5.WebRTC can provide communication mechanism of the client to client, to realize the communication of audio frequency and video and other data between two clients.The technology, which is changed, can only carry out client to server in conventional HTML technologies(Client-Server, CS) pattern communication situation so that network(Web the real-time Communication for Power that client to client are carried out in) is possibly realized.WebSocket technologies can provide two-way, continuous communication mechanism between a kind of server end and client.The appearance of WebSocket technologies so that client and server end is two-way, continuous communication is possibly realized.In actual client into the communication of client, generally require two kinds of information transfer channels of data channel and signalling path, wherein data channel is used to transmit the application data mutually exchanged between user, and signalling path is then used to help set up and management connection between client.In the audio/video communication system built based on WebRTC, the passage that signaling is transmitted between server and client side is generally used as using WebSocket.
There are problems that WebSocket as WebRTC signalling paths.One is that user is accustomed to while opening multiple webpages, and each webpage can set up a WebSocket between client and server, repeat connection and consume huge to server and client side;Two be that user's custom is redirected by hyperlink between each page, and the JavaScript Context of current page are destroyed when redirecting, and WebSocket disconnects, and arrives WebSocket is re-established after target pages, WebSocket's frequently cuts off or reconnection operation so that the presence of user frequently changes, consume resource;Three when being page jump, and in WebSocket disconnection or during reconnecting, the communication between server and client side will lose.
Worker thread in HTML5 standards(Web Worker) specification can provide independently of the page thread, change before network(Web) in script the limitation of single thread there is provided certain cross-page face ability.But Web Worker are only applicable to thread and while thread when opening multiple pages is shared, thread when not being suitable for common variables or page jump is shared, and Web Worker, which remain unchanged, during page jump can disconnect or reconnect.
Generally in common multithreading, the technology such as communication, synchronization, shared variable between multiple threads is also frequently involved, these technologies have been directed to the technology of the interaction between multiple threads.But the cross-page face shared variable that runs into of web sphere and common multithreading problems faced are very different, essentially consist in common multithreading, each function/thread is nested structure, and the function of each in web technology/thread belongs to the respective page, because each page is separate, do not have nest relation between the variable and thread in cross-page face, and a critically important scene is page jump in Web technologies, and common multithreading will not relate to similar situation.
In summary, in the browser for supporting multiple web pages, the signalling path between client and server is likely to occur repetition connection, causes system resource waste.The content of the invention
Technical problem
In view of this, the technical problem to be solved in the present invention is how to save system resource.
Solution
According to one embodiment of the invention, first aspect there is provided a kind of multi-page management method, including:Client is asked according to the page jump received, is searched whether the action scope of cross-page face variable and is included target pages; It is reference of the target pages addition to the cross-page face variable in the case where the action scope for finding cross-page face variable includes target pages;
The corresponding page of the cross-page face variable is used to share content in the target pages.
With reference in a first aspect, in the first possible implementation of first aspect, the multi-page management method also includes:
The client is asked according to the page open received, is searched whether the action scope of cross-page face variable and is included target pages.
With reference to the first possible implementation of first aspect or first aspect, in second of possible implementation of first aspect, the multi-page management method also includes:
The client deletes reference of the page for needing to close to the cross-page face variable according to the page close request received;
Search whether the cross-page face variable is quoted by other pages;
In the case where the cross-page face variable is not quoted by other pages, destroy the corresponding page of the cross-page face variable and share content.
With reference to first aspect or its any one possible implementation, in the third possible implementation of first aspect, searching whether the action scope of cross-page face variable includes target pages, including:The client receives the target pages from server, the procedure script of the target pages includes cross-page face variable declarations, the cross-page face variable declarations include the title and action scope of the corresponding cross-page face variable of the target pages, the server is the equipment pointed by the uniform resource position mark URL of the target pages, and the title of the cross-page face variable includes variable name and/or shared name;
According to the title of the cross-page face variable, the page that searches whether to have been friends in the past has built up the cross-page face variable of title identical with the cross-page face variable, and judges whether the action scope of the cross-page face variable of the same name found includes the target pages.
It is reference of the target pages addition to the cross-page face variable in the 4th kind of possible implementation of first aspect with reference to first aspect or its any one possible implementation, including: The numerical value in reference counter is updated, or the numerical value preserved in the adduction relationship between the identification information of cross-page the face variable and the target pages, the reference counter is used to represent the number of times that the cross-page face variable is currently cited;
The corresponding page of the cross-page face variable is read from the internal memory of client according to the title of the corresponding cross-page face variable of the target pages and shares content.
With reference to first aspect or its any one possible implementation, in the 5th kind of possible implementation of first aspect, the cross-page face variable is used to represent to need shared common page info variable, the corresponding page of the cross-page face variable is used to share content in the target pages, including:The client reads the corresponding page info of the page info variable in the target pages;Or
The cross-page face variable is used for the thread variable for representing to need to share, and uses the corresponding page of the cross-page face variable to share thread in the target pages, including:The client runs the corresponding thread of the thread variable in the target pages;Or
The cross-page face variable uses the corresponding page of the cross-page face variable to share content to represent the signalling path variable for needing to set up between client and server in the target pages, including:The client uses the signalling path resource corresponding to the signalling path variable in the target pages, from the server transceiving data.
With reference in a first aspect, in the 6th kind of possible implementation of first aspect, after the reference to the cross-page face variable is added for the target pages, including:
Asked according to page jump, delete reference of the old page to the cross-page face variable;Search whether the cross-page face variable is quoted by other pages;
In the case where the cross-page face variable is not quoted by other pages, destroy the corresponding page of the cross-page face variable and share content.
With reference to the 6th kind of possible implementation of first aspect, in the 7th kind of possible implementation of first aspect, after the reference to the cross-page face variable is added for the target pages, before deleting the old page to the reference of the cross-page face variable, including: Destroy the script running environment of the old page;
The page layout switch that the client is currently shown is the target pages;
Render the script running environment of the target pages.
With reference to second and third or seven kinds of possible implementations of first aspect, in the 8th kind of possible implementation of first aspect, search whether the cross-page face variable is quoted by other pages, including:According to the numerical value of the corresponding reference counter of the cross-page face variable, determine whether the cross-page face variable is quoted by other pages;Or
According to the adduction relationship between the identification information of cross-page the face variable and the target pages, determine whether the cross-page face variable is quoted by other pages.
Second aspect there is provided a kind of multi-page managing device, including:
Searching modul, for according to the page jump request received, searching whether the action scope of cross-page face variable to include target pages;
Module is quoted, is communicated with the searching modul, is reference of the target pages addition to the cross-page face variable in the case of including target pages in the action scope for finding cross-page face variable;Sharing module, is communicated with the reference module, for using the corresponding page of the cross-page face variable to share content in the target pages.
With reference to second aspect, in the first possible implementation of second aspect, the searching modul is additionally operable to according to the page open request received, and searching whether the action scope of cross-page face variable includes target pages.
With reference to the first possible implementation of second aspect or second aspect, in second of possible implementation of second aspect, multi-page managing device also includes:
Removing module, for according to the page close request received, deleting reference of the page for needing to close to the cross-page face variable;In the case where the searching modul finds the cross-page face variable not by the reference of other pages, destroy the corresponding page of the cross-page face variable and share content.
With reference to second aspect or its any one possible implementation, the third in second aspect may Implementation in, multi-page managing device also includes:
Receiving module, cross-page face variable declarations for receiving the target pages from server, the cross-page face variable declarations include the title and action scope of the corresponding cross-page face variable of the target pages, the server is the equipment pointed by the uniform resource position mark URL of the target pages, and the title of the cross-page face variable includes variable name and/or shared name;
The searching modul is additionally operable to the title according to the cross-page face variable, the page that searches whether to have been friends in the past has built up the cross-page face variable of title identical with the cross-page face variable, and judges whether the action scope of the cross-page face variable of the same name found includes the target pages.
With reference to second aspect or its any one possible implementation, in the 4th kind of possible implementation of second aspect, multi-page managing device also includes:
Read module, content is shared for reading the corresponding page of the cross-page face variable from the internal memory of client according to the variable name of the target pages;
The module of quoting is additionally operable to update the numerical value in reference counter, or the numerical value preserved in adduction relationship between the identification information of cross-page the face variable and the target pages, the reference counter is used to represent the number of times that the cross-page face variable is currently cited.
With reference to second of possible implementation of second aspect, in the 5th kind of possible implementation of second aspect, the removing module is additionally operable to after the reference to the cross-page face variable is added for the target pages, asked according to page jump, delete reference of the old page to the cross-page face variable;In the case where the searching modul finds the cross-page face variable not by the reference of other pages, destroy the corresponding page of the cross-page face variable and share content;Or
The removing module is additionally operable to after the reference to the cross-page face variable is added for the target pages, before deleting the old page to the reference of the cross-page face variable, destroys the script running environment of the old page;The page layout switch that the client is currently shown is the target pages;Render the script running environment of the target pages.
Beneficial effect The embodiment of the present invention, if the action scope of cross-page face variable includes target pages, the reference to the cross-page face variable can be added in target pages, content is shared using the corresponding page of cross-page face variable in target pages, resource-sharing can be realized by variable, system resource waste is reduced.
According to below with reference to the accompanying drawings to detailed description of illustrative embodiments, further feature and aspect of the invention will be clear.Brief description of the drawings
Comprising in the description and constituting accompanying drawing and the specification of a part of specification and together illustrate exemplary embodiment, feature and the aspect of the present invention, and for explaining the principle of the present invention.
Fig. 1 is the flow chart of the multi-page management method of the embodiment of the present invention one;
Fig. 2 for the embodiment of the present invention one multi-page management method in open the page flow chart;Fig. 3 for the embodiment of the present invention one multi-page management method in close the page flow chart;Fig. 4 is the thread management structure chart of the browser of the multi-page management method of the embodiment of the present invention two;Fig. 5 opens the flow chart of the page for browser in the multi-page management method of the embodiment of the present invention two;Fig. 6 closes the flow chart of the page for browser in the multi-page management method of the embodiment of the present invention two;The flow chart that Fig. 7 redirects for browser page in the multi-page management method of the embodiment of the present invention two;Fig. 8 is the structured flowchart of the multi-page managing device of the embodiment of the present invention three;
Fig. 9 is the structured flowchart of the multi-page managing device of the embodiment of the present invention four;
Figure 10 is the structured flowchart of the multi-page managing device of the embodiment of the present invention five.Embodiment
Describe various exemplary embodiments, feature and the aspect of the present invention in detail below with reference to accompanying drawing.Identical reference represents the same or analogous element of function in accompanying drawing.Although the various aspects of embodiment are shown in the drawings, unless otherwise indicated, it is not necessary to accompanying drawing drawn to scale.
Special word " exemplary " is meant " being used as example, embodiment or illustrative " herein.Here as " exemplary " illustrated any embodiment should not necessarily be construed as preferred or advantageous over other embodiments.
In addition, in order to better illustrate the present invention, numerous details are given in embodiment below.It will be appreciated by those skilled in the art that without some details, the present invention can equally be implemented.In other example, it is not described in detail for method well known to those skilled in the art, means, element and circuit, in order to highlight the purport of the present invention.
Embodiment 1
Fig. 1 is the flow chart of the multi-page management method of the embodiment of the present invention one.As shown in figure 1, the multi-page management method mainly includes:
Step 110, client are asked according to the page jump received, are searched whether the action scope of cross-page face variable and are included target pages.
Specifically, client can be various forms of browsers in the embodiment of the present invention.If browser has currently had already turned on a certain page, when user's selection opens target pages or clicks on the hyperlink of a certain opening target pages in a browser, browser can receive page jump request.The page info for the target pages that needs are jumped to can be included in page jump request, for example:Identification information or hyperlink of target pages etc..Wherein, hyperlink can be uniform resource locator (the Uniform Resource Locator that html page includes, URL after) pointer, user's clickable hyperlinks, browser can be redirected from the target pages pointed by current page to URL.
Wherein, if client has the page having already turned on, the cross-page face variable that the page having already turned on is created can be stored in setting regions.After client receives page jump request, the action scope of cross-page face variable can be searched whether in setting regions includes target pages, and detailed process can include:
The client receives the target pages from server, the procedure script of the target pages includes cross-page face variable declarations, the cross-page face variable declarations include the title and action scope of the corresponding cross-page face variable of the target pages, the server is the equipment pointed by the uniform resource position mark URL of the target pages, and the title of the cross-page face variable includes variable name and/or shared name; According to the title of the cross-page face variable, the page that searches whether to have been friends in the past has built up the cross-page face variable of title identical with the cross-page face variable, and judges whether the action scope of the cross-page face variable of the same name found includes the target pages.
Wherein, the cross-page face variable in the embodiment of the present invention refers to that needs realize shared variable between multiple pages, for example:WebSocket, the Variable for needing cross-page face shared, Thread etc..
Step 120, in the case where the action scope for finding cross-page face variable includes target pages, be that the target pages add reference to the cross-page face variable.
Specifically, it is that the target pages addition can include to the detailed process of the reference of the cross-page face variable:The numerical value in reference counter is updated, or the numerical value preserved in the adduction relationship between the identification information of cross-page the face variable and the target pages, the reference counter is used to represent the number of times that the cross-page face variable is currently cited;The corresponding page of the cross-page face variable is read from the internal memory of client according to the title of the corresponding cross-page face variable of the target pages and shares content.
Wherein, the shared content of the different corresponding pages of cross-page face variable can be different.For example, for WebSocket, it can be client to the WebSocket passages between server that the corresponding page, which shares content,;For thread(), Thread it can be the shared thread run in client that the corresponding page, which shares content,;For other common Variable, the corresponding page share content can be the shared information that includes of the old page of client such as:Commodity data, user profile etc..
Furthermore, it is possible to record specific reference situation of each page in client for cross-page face variable.For example, a reference counter can be set up for each cross-page face variable, in the reference counter of newly-built one cross-page face variable, the initial value of reference counter can be " 1 ".Often increase reference of the page to the cross-page face variable, the numerical value of the reference counter adds " 1 ".Reference of the page to the cross-page face variable is often reduced, the numerical value of the reference counter subtracts " 1 ".When the numerical value of the reference counter is " 0 ", it can represent that no page quotes the cross-page face variable.For another example, the adduction relationship between cross-page face variable and the identification information of the page can be preserved.Often increase reference of the target pages to the cross-page face variable, the adduction relationship between the cross-page face variable and the identification information of the target pages can be preserved.Often subtract Few reference of Geju City page to the cross-page face variable, can delete the adduction relationship between the identification information of cross-page the face variable and the old page.When not recording any adduction relationship, it can represent that no page quotes the cross-page face variable.
Step 130, in the target pages using the corresponding page of the cross-page face variable share content.Specifically, the concrete mode that target pages share content using the corresponding page of cross-page face variable can be different.Following scene can be specifically divided into:
Scene one, the cross-page face variable can be used to indicate that the signalling path variable for needing to set up between client and server, and step 130 can include:The client uses the signalling path resource corresponding to the signalling path variable in the target pages, from the server transceiving data;For example, for WebSocket, target pages can use the client that other pages have built up to the WebSocket passages between server, from server transceiving data.
Scene two, the cross-page face variable can be also used for the thread variable for representing to need to share, and step 130 can include:The client runs the corresponding thread of the thread variable in the target pages.For example, for Thread, target pages can run the corresponding threads of the Thread in the client.
Scene three, the cross-page face variable, which can be used to indicate that, needs shared page info variable, and step 130 can include:The client reads the corresponding page info of the page info variable in the target pages.For example, for Variable, target pages can read the page info pointed by Variable from the internal memory of client.
Further, after client receives page jump request, within a period of time closed between the old page and opening new page, the data that can be first cached with prevent loss of data, specifically, can also include before step 110:Caching uses the corresponding page of the cross-page face variable to share the data obtained by content.And it is possible to load the page resource of the target pages from server.Step 110 is performed again after the completion of the page resource loading of target pages.
If for example, cross-page face variable is websocket, or other similar can produce the thread for the data that need to be handled by target pages in real time(Thread the data that the cross-page face variable is produced in real time), are then needed Cached.And browser can be by the page resource needed for being loaded by HTTP request passage from server.
Further, due to having one section of time interval between being opened in old page close and target pages, in order to prevent in this time interval, cross-page face variable is destroyed, it can again perform after the reference completion that step 120 is added for the target pages to the cross-page face variable, turn off the old page.Specifically, after step 101 or step 120, judge whether that the detailed process for closing the old page can include:Delete reference of the old page to the cross-page face variable;Search whether the cross-page face variable is quoted by other pages;In the case where the cross-page face variable is not quoted by other pages, destroy the corresponding page of the cross-page face variable and share content.So, if new target pages refer to the cross-page face variable existed, the reference counter of the cross-page face variable is all without for " 0 " during whole redirect, therefore the page variable will not be destroyed.Therefore, only open a window in a browser even for user and carry out the scene of page jump, cross-page face variable can be still shared.
Wherein, search whether the cross-page face variable is quoted by other pages, can specifically use any one following mode:
Mode one, the numerical value according to the corresponding reference counter of the cross-page face variable, determine whether the cross-page face variable is quoted by other pages;For example, the numerical value of the reference counter of the cross-page face variable is " 0 ", it may indicate that cross-page face variable is not quoted by other pages, for the numerical value more than or equal to " 1 ", may indicate that cross-page face variable is quoted by other pages.
Mode two, according to the adduction relationship between the identification information of cross-page the face variable and the target pages, determine whether the cross-page face variable is quoted by other pages.
Further, after step 101 or step 120, before deleting the old page to the reference of the cross-page face variable, it can also include:The new target pages of loading;Add reference of the target pages to the cross-page face variable;Destroy the script running environment of the old page;The page layout switch that browser is currently shown is the target pages;Render the script running environment of the target pages.
In a kind of possible implementation, client is in the situation for needing to open the page, such case Under, the multi-page management method can also include the flow for opening the page, as shown in Fig. 2 can specifically include:
Step 210, client are asked according to the page open received, are searched whether the action scope of cross-page face variable and are included target pages;
Specifically, when user needs to open a page in client such as a certain browser, browser can receive page open request.It can include needing the page info of the target pages of opening in page open request, for example:Identification information or hyperlink of target pages etc..Wherein, search whether that detailed process of the action scope including target pages of cross-page face variable may refer to the associated description of above-mentioned steps 110.
Step 220, in the case where the action scope for finding cross-page face variable includes target pages, be that the target pages add reference to the cross-page face variable;Detailed process may refer to the associated description of above-mentioned steps 120.
Step 230, in the target pages using the corresponding page of the cross-page face variable share content.Wherein, detailed process may refer to the associated description of above-mentioned steps 130.
In a kind of possible implementation, client is in the situation for needing to close the page, in this case, and the multi-page management method can also include the flow for closing the page, as shown in figure 3, can specifically include:
Step 310, client delete reference of the page for needing to close to the cross-page face variable according to the page close request received.
Whether step 320, the lookup cross-page face variable are quoted by other pages.The specific associated description that may refer to aforesaid way one and mode two.
Step 330, in the case where the cross-page face variable is not quoted by other pages, destroy the corresponding page of the cross-page face variable and share content.
The multi-page management method of the present embodiment, if the action scope of cross-page face variable includes target pages, the reference to the cross-page face variable can be added in target pages, is become in target pages using cross-page face Measure the corresponding page and share content, resource-sharing can be realized by variable, reduce system resource waste.Embodiment 2
Fig. 4 is the thread management structure chart of the browser of the multi-page management method of the embodiment of the present invention two.Using cross-page face variable as WebS0CKet, client be browser exemplified by, ensure security on the premise of, WebSocket action scope scope can be expanded so that during the page jump that WebSocket is connected between same site without disconnect and reconnect.The realization in JavaScript in WebSocket interfaces, and browser to WebSocket can specifically be changed.As shown in figure 4, the thread management structure of browser can include:When front opening page area 41, cross-page face variable management region 43, target pages redirect management region 45.
Wherein, when front opening page area 41 can be comprising two parts, one is the JavaScriptContext i.e. performing environment of page internal variable, and this part can be realized using traditional JavaScript variable declarations and administrative skill;Two be cross-page face WebSocket constructed fuction statement(Referred to as cross-page face variable declarations), in the webpage of the website comprising multi-page, when stating WebSocket, it is allowed to specify which jump target page to share the WebSocket in homepage.
When being redirected from the homepage of browser towards target pages, if some WebSocket of the target pages in homepage allows in shared target pages list, cross-page face variable management region 43 can keep the WebSocket passages of homepage until the JavaScript Context completions of target pages, and set up the reference to the WebSocket.Wherein, adduction relationship can be realized with reference counter.
What target pages redirected that management region 45 can record homepage and target pages redirects relation, same to keep sharing WebSocket when succeeding target page reverse skip is to homepage.Also, target pages redirect management region 45 and can also carry out Ajax, Javascript
Wherein, for Javascript parts, WebSocket constructed fuction statement can in page code, be changed(I.e. cross-page face variable declarations), increase a shared variable name and such as target pages list (TargetList) of an action scope, for example:
var websocket = new WebSocket('ws:〃 www.example.com', [], name, [7page2 wherein, " websocket " is variable name, and " name " is the shared name of variable, ['/page2'] For target pages list.Wherein, " websocket " is name of the variable in this page, and " name " is that other pages quote the name used during the variable.
For another example, target pages list can also be claimed as all pages of same web site:
var websocket = new WebSocket('ws:〃 www.example.com', [], name, [*]);And for example, it can not also increase shared name newly, but use variable name " websocket " as shared variable name, namely in this page and other pages, the name used when quoting the variable is " websocket ", only increases the action scope of the variable.
Browser is after page open request or page jump request is received, during parsing in the loaded targets page and to target pages, can check whether legal and carry out respective handling across the TargetList in variable declarations in the page:(If 1) target pages in TargetList do not meet " origin policy ", it can report an error and ignore the URL;(2) if the target pages in TargetList are not sky, the list can be preserved.
In addition, existing browser is to the administrative mechanism of dependent variable:The effective range of each variable is limited in certain JavaScript Context, and the script running environment of highest level is a Webpage(Or the DOM after corresponding html document, or corresponding parsing).When browser leaves a page, corresponding script running environment and variable therein will be destroyed.And the embodiment of the present invention can change administrative mechanism of the browser to variable.Referring to Fig. 4, in a browser, except in addition to the corresponding JavaScript Context of the page, also creating cross-page face variable management region 43.The cross-page face variable in opening, closing and the redirect procedure of the page can be controlled to manage by cross-page face variable management region 43.
Fig. 5 opens the flow chart of the page for browser in the multi-page management method of the embodiment of the present invention two, as shown in figure 5, opening the flow of the page can specifically include:
Step 510, browser receive page open request.
Step 520, browser receive the WebSocket constructed fuctions statement in cross-page face from server(I.e. cross-page face variable declarations).
Step 530, the cross-page face variable management region of browser, check the cross-page face variable (WebSocket) whether by other page creations.If it is step 540 is performed;Otherwise step 550 is performed.
Step 540, cross-page face variable management region add the reference to WebSocket.
Wherein, the WebSocket in each cross-page face, be able to will can be somebody's turn to do to that should have one " reference counter ", when a page is opened in a browser and the page refer to a WebSocket
WebSocket reference counter adds " 1 ".The mark and WebSocket adduction relationship of the page can also be deposited into cross-page face variable management region.
Step 550, in cross-page face variable management region, create the signalling path between the browser and server(WebSocket passages);
Step 560, opening target pages use the WebSocket passages.
Fig. 6 closes the flow chart of the page for browser in the multi-page management method of the embodiment of the present invention two, as shown in fig. 6, closing the flow of the page can specifically include:
Step 610, browser receive page close request.
Step 620, destroy the corresponding script running environment of the page(JavaScript Context ).
Step 630, delete reference of the page to WebSocket.
Specifically the corresponding WebSocket of page reference counter can be subtracted into " 1 " in cross-page face variable management region, the mark and WebSocket adduction relationship by the page that cross-page face variable management region is preserved can also be deleted.
Step 640, check whether the corresponding WebSocket of the page is quoted by other pages, if do not quoted by other pages, perform step 650.Wherein it is possible to according to the numerical value of the reference counter of the WebSocket, or according to the WebSocket and the adduction relationship of page iden-tity of preservation, judge whether to be quoted by other pages.
Step 650, destroy the corresponding WebSocket passages of the WebSocket.If the corresponding WebSocket of the page is quoted by other pages, without destroying the WebSocket passages, other pages can be waited to be continuing with. Wherein, the opportunity of the reference to the WebSocket in cross-page face is created and deleted, can be explicitly indicated by code, and is not limited in the opening page and is carried out when closing the page.
For example, the statement of cross-page face shared variable is placed on according in the program block that condition judgment is compiled and is performed, such as:
If (condition==tme) var websocket=new WebSocket (' ws:〃 www.example.com', [], name, [*]);II generates the reference and generation of the cross-page face variable in cross-page face shared variable said procedure block when eligible, need to be in program process, and the result performed according to preceding routine dynamically judges.In this case, create and delete has two methods to the opportunity of the WebSocket in cross-page face reference:
(1) adduction relationship is determined in page jump.When target pages are loaded, all cross-page face variables in cross-page face variable region are checked, if the action scope of a certain cross-page face shared variable includes target pages, then reference of the target pages to the cross-page face shared variable are created.This method is that the action scope and target pages for sharing page variable by cross-page face are completed, unrelated with the code script and its implementing result in target pages;
(2) in the code of parsing and the performance objective page, reference of the target pages to the cross-page face shared variable is created during the statement for running into cross-page face shared variable again.This method is related to by the code script in the action scope of the shared page variable in cross-page face, target pages, target pages and its implementing result three.
The flow chart that Fig. 7 redirects for browser page in the multi-page management method of the embodiment of the present invention two, in page jump, is spaced for some time between the closing of the old page and the opening of target pages.In order to avoid the WebSocket in the cross-page face in this time interval is destroyed, browser can receive page jump request, before performing old page close, judge whether the URL of target pages belongs to some existing WebSocket action scope, if it is, reference of the addition target pages to the WebSocket(Exist Reference of the target pages to the WebSocket is added before old page close).As shown in fig. 7, the flow of page jump can specifically include:
Step 710, browser have already turned on current page, it may refer to the flow in Fig. 5, stated according to the WebSocket in the cross-page face received constructed fuction, the WebSocket, or reference of the increase to the WebSocket are created to global variable management region.
Step 720, browser receive page jump request, perform in step 730 and step 740, the embodiment of the present invention the not sequential relationship of conditioning step 730 and step 740, can perform simultaneously, can also be successively.
Specifically, when user selects page jump or clicks on the hyperlink of page jump, the request of browser start to process page jump.
The message that step 730, caching server are sended over by WebSocket passages, to avoid information drop-out.
Step 740, browser press the page resource of the generalized flowsheet loaded targets page.
After loading page resource is completed, step 750 can be performed.
Step 750, check whether there is cross-page face variable(WebSocket action scope) includes target pages, and whether target pages quote the WebSocket, if, then perform step 760, otherwise step 550 is may refer to, in cross-page face variable management region, the signalling path between the browser and server is created(WebSocket passages).
The reference of step 760, addition to the WebSocket, it is then possible to which referring to step 560, the WebSocket passages are used in the target pages of opening.
After reference of the target pages to the WebSocket is completed, step 770 can be performed.
Step 770, the JavaScript Context for destroying the old page.
The reference of step 780, the old page of deletion to the WebSocket.
Step 790, the page for currently showing browser are target pages by old page layout switch.
The JavaScript Context of step 791, the post-processing object page. In the present embodiment, the example shared using WebSocket as cross-page face variable describes multi-page management method, it is understood by one of ordinary skill in the art that the present invention answers not limited to this, such as:The WebSocket for cross-page face is not only applicable as the situation of WebRTC signalling paths, and the web scripts suitable for other web spheres(Such as JavaScript) the shared of general cross-page face variable is provided.
When using other JavaScript variables as cross-page face variable, concrete methods of realizing can be stated by changing the constructed fuction of JavaScript variables(I.e. cross-page face variable declarations)Implement, can specifically be revised as: var variable 1= new Variable (namel, ['/page2']);
Wherein, variablel is the variable name of the cross-page face variable, and namel is the shared name of the cross-page face variable, and [7page2'] is target pages list.
It can be shared and transmission information between multiple pages by the Variable.For example, user is placed into an article in " shopping cart " in the Webpage of an ecommerce, other pages then branched to an e-commerce website continue the free choice of goods, there can be which inventory records to get off " shopping cart " of user is inner by cross-page face variable, can be shown in target pages.
In addition, in the network operating system of multithreading(Webos in), a thread is needed to keep the log-on message of user, the authority information of user, user is required for the information when switching between multiple web programs, when sharing the thread in cross-page face between multiple pages, user can be facilitated to call user profile at any time.When using other JavaScript thread variables as cross-page face variable, concrete methods of realizing can be stated by changing the constructed fuction of JavaScript thread variables, can be specifically revised as:
var variable 1= new Thread (name2, ['/page2']);
Wherein, variablel is the variable name of cross-page face variable, and name2 is the shared name of cross-page face variable, and [7page2'] is target pages list.
The multi-page management method of the present embodiment, if the action scope of cross-page face variable includes target pages, the reference to the cross-page face variable can be added in target pages, in target pages content is shared using the corresponding page of cross-page face variable, resource-sharing can be realized by variable, system resource waste is reduced.
For example, by sharing WebSocket, it is possible to reduce between client and the system of server The repetition of WebSocket passages is connected, and can prevent WebSocket passages during page jump frequently disconnects and reconnect, and is realized that multiple pages share WebSocket passages, is saved system resource.By sharing Variable, the transmission of page info and shared, saving system resource can be realized between the different pages of client.By sharing thread(), Thread system resource can be saved.
Embodiment 3
Fig. 8 is the structured flowchart of the multi-page managing device of the embodiment of the present invention three, as shown in figure 8, the multi-page managing device can include:
Searching modul 81, for according to the page jump request received, searching whether the action scope of cross-page face variable to include target pages;
Module 83 is quoted, is communicated with the searching modul 81, is reference of the target pages addition to the cross-page face variable in the case of including target pages in the action scope for finding cross-page face variable;
Sharing module 85, is communicated with the reference module 83, for using the corresponding page of the cross-page face variable to share content in the target pages.
Specifically, multi-page managing device can be realized by various forms of browsers in the embodiment of the present invention.If browser has currently had already turned on a certain page, when user's selection opens target pages or clicks on the hyperlink of a certain opening target pages in a browser, browser can receive page jump request.The page info for the target pages that needs are jumped to can be included in page jump request, for example:Identification information or hyperlink of target pages etc..Wherein, after hyperlink can be the URL pointers that html page includes, user's clickable hyperlinks, browser can be redirected from the target pages pointed by current page to URL.Wherein, the cross-page face variable in the embodiment of the present invention refers to that needs realize shared variable between multiple pages, for example:WebSocket, the Variable for needing cross-page face shared, Thread etc..The flow of the modules page jump of multi-page managing device may refer to client in above-mentioned multi-page management method, the associated description for the flow that browser page is redirected.
In a kind of possible implementation, the situation of the opening page, the searching modul 81 are being needed It can be also used for according to the page open request received, searching whether the action scope of cross-page face variable includes target pages.Wherein, the flow of the modules opening page of multi-page managing device may refer to client, the associated description of the flow of the browser opening page in above-mentioned multi-page management method.
Multi-page managing device of the present invention, if the action scope that searching modul finds cross-page face variable includes target pages, the reference to the cross-page face variable can be added in target pages by quoting module, sharing module can use the shared content of the corresponding page of cross-page face variable in target pages, resource-sharing can be realized by variable, system resource waste is reduced.
Embodiment 4
Fig. 9 is the structured flowchart of the multi-page managing device of the embodiment of the present invention four, as shown in figure 9, the multi-page managing device can also include:
Removing module 91, for according to the page close request received, deleting reference of the page for needing to close to the cross-page face variable;In the case where the searching modul 81 finds the cross-page face variable not by the reference of other pages, destroy the corresponding page of the cross-page face variable and share content.The situation of the closing page is being needed, the flow of the modules closing page of multi-page managing device may refer to client, the associated description of the flow of the browser closing page in above-mentioned multi-page management method.
In a kind of possible implementation, the multi-page managing device can also include:
Receiving module 93, cross-page face variable declarations for receiving the target pages from server, the cross-page face variable declarations include the title and action scope of the corresponding cross-page face variable of the target pages, the server is the equipment pointed by the uniform resource position mark URL of the target pages, and the title of the cross-page face variable includes variable name and/or shared name;
The searching modul 81 is additionally operable to the title according to the cross-page face variable, the page that searches whether to have been friends in the past has built up the cross-page face variable of title identical with the cross-page face variable, and judges whether the action scope of the cross-page face variable of the same name found includes the target pages.
In a kind of possible implementation, the multi-page managing device can also include:
Read module 95, for reading the cross-page face from internal memory according to the variable name of the target pages The corresponding page of variable shares content;
The module 83 of quoting is additionally operable to update the numerical value in reference counter, or the numerical value preserved in adduction relationship between the identification information of cross-page the face variable and the target pages, the reference counter is used to represent the number of times that the cross-page face variable is currently cited.
In a kind of possible implementation, the cross-page face variable is used to represent to need shared common page info variable, and the sharing module 85 in the target pages specifically for reading the corresponding page info of the page info variable;Or
The cross-page face variable is used for the thread variable for representing to need to share, and the sharing module 85 in the target pages specifically for running the corresponding thread of the thread variable;Or
The cross-page face variable is represents the signalling path variable needing to set up between server, and the sharing module 85 is specifically for using the signalling path resource corresponding to the signalling path variable in the target pages, from the server transceiving data.
In a kind of possible implementation, the multi-page managing device can also include:
Cache load-on module 97, for before including target pages in the action scope for searching whether cross-page face variable, if the cross-page face variable caches the data that the cross-page face variable is produced or received, until target pages described in loaded for that can produce or receive the thread of data.
In a kind of possible implementation, the removing module 91 can be also used for after the reference to the cross-page face variable is added for the target pages, be asked according to page jump, delete reference of the old page to the cross-page face variable;In the case where the searching modul 81 finds the cross-page face variable not by the reference of other pages, destroy the corresponding page of the cross-page face variable and share content;Or
The removing module 91 is additionally operable to after the reference to the cross-page face variable is added for the target pages, before deleting the old page to the reference of the cross-page face variable, destroys the script running environment of the old page;It is the target pages by the page layout switch currently shown;Render the script running environment of the target pages.
Multi-page managing device of the present invention, if searching modul finds the action scope bag of cross-page face variable Include target pages, the reference to the cross-page face variable can be added in target pages by quoting module, sharing module can be realized resource-sharing, reduce system resource waste in target pages using the shared content of the corresponding page of cross-page face variable by variable.
Embodiment 5
Figure 10 is the structured flowchart of the multi-page managing device of the embodiment of the present invention five.The multi-page managing device 1100 can possess host server, personal computer PC or portable portable computer or terminal of computing capability etc..The specific embodiment of the invention is not limited implementing for calculate node.
The multi-page managing device 1100 includes processor (processor) lllO, communication interface (Communications Interface) 1120, memory (memory) 1130 and bus 1140.Wherein, processor 1110, communication interface 1120 and memory 1130 complete mutual communication by bus 1140.
Communication interface 1120 is used for and network device communications, and wherein the network equipment is included such as Virtual Machine Manager center, shared storage.
Processor 1110 is used for configuration processor.Processor 1110 is probably a central processor CPU, either application-specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement one or more integrated circuits of the embodiment of the present invention.
Memory 1130 is used to deposit file.Memory 1130 may include high-speed RAM memory, it is also possible to also including nonvolatile memory (non-volatile memory), for example, at least one magnetic disk storage.Memory 1130 can also be memory array.Memory 1130 is also possible to by piecemeal, and described piece can be combined into virtual volume by certain rule.
In a kind of possible embodiment, said procedure can be to include the program code of computer-managed instruction.The program is particularly used in:
According to the page jump request received, searching whether the action scope of cross-page face variable includes target pages;
It is the page object in the case where the action scope for finding cross-page face variable includes target pages Add the reference to the cross-page face variable in face;
The corresponding page of the cross-page face variable is used to share content in the target pages.
In a kind of possible embodiment, said procedure can be additionally used according to the page open request received, and searching whether the action scope of cross-page face variable includes target pages.
In a kind of possible embodiment, said procedure can be additionally used according to the page close request received, delete reference of the page for needing to close to the cross-page face variable;
Search whether the cross-page face variable is quoted by other pages;
In the case where the cross-page face variable is not quoted by other pages, destroy the corresponding page of the cross-page face variable and share content.
In a kind of possible embodiment, searching whether the action scope of cross-page face variable includes target pages, including:
The target pages are received from server, the procedure script of the target pages includes cross-page face variable declarations, the cross-page face variable declarations include the title and action scope of the corresponding cross-page face variable of the target pages, the server is the equipment pointed by the uniform resource position mark URL of the target pages, and the title of the cross-page face variable includes variable name and/or shared name;
According to the title of the cross-page face variable, the page that searches whether to have been friends in the past has built up the cross-page face variable of title identical with the cross-page face variable, and judges whether the action scope of the cross-page face variable of the same name found includes the target pages.
It is reference of the target pages addition to the cross-page face variable in a kind of possible embodiment, including:
The numerical value in reference counter is updated, or the numerical value preserved in the adduction relationship between the identification information of cross-page the face variable and the target pages, the reference counter is used to represent the number of times that the cross-page face variable is currently cited;
The corresponding page of the cross-page face variable is read from internal memory according to the title of the corresponding cross-page face variable of the target pages and shares content. In a kind of possible embodiment, the cross-page face variable is used to represent to need shared common page info variable, uses the corresponding page of the cross-page face variable to share content in the target pages, including:The corresponding page info of the page info variable is read in the target pages;Or
The cross-page face variable is used for the thread variable for representing to need to share, and uses the corresponding page of the cross-page face variable to share thread in the target pages, including:The corresponding thread of the thread variable is run in the target pages;Or
The cross-page face variable uses the corresponding page of the cross-page face variable to share content to represent the signalling path variable needing to set up between server in the target pages, including:In the target pages using the signalling path resource corresponding to the signalling path variable, from the server transceiving data.
In a kind of possible embodiment, after the reference to the cross-page face variable is added for the target pages, including:
Asked according to page jump, delete reference of the old page to the cross-page face variable;Search whether the cross-page face variable is quoted by other pages;
In the case where the cross-page face variable is not quoted by other pages, destroy the corresponding page of the cross-page face variable and share content.
In a kind of possible embodiment, after the reference to the cross-page face variable is added for the target pages, before deleting the old page to the reference of the cross-page face variable, including:
Destroy the script running environment of the old page;
It is the target pages by the page layout switch currently shown;
Render the script running environment of the target pages.
In a kind of possible embodiment, search whether the cross-page face variable is quoted by other pages, including:
According to the numerical value of the corresponding reference counter of the cross-page face variable, determine whether the cross-page face variable is quoted by other pages;Or
According to the adduction relationship between the identification information of cross-page the face variable and the target pages, it is determined that Whether the cross-page face variable is quoted by other pages.
The embodiment of the present invention, if the action scope of cross-page face variable includes target pages, the reference to the cross-page face variable can be added in target pages, content is shared using the corresponding page of cross-page face variable in target pages, resource-sharing can be realized by variable, system resource waste is reduced.
Those of ordinary skill in the art are it is to be appreciated that each exemplary cell and algorithm steps in embodiment described herein, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are realized with hardware or software form actually, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel can realize described function for the different method of specific application selection, but this realization is it is not considered that beyond the scope of this invention.
If using in the form of computer software come realize the function and as independent production marketing or in use, if to a certain extent it is believed that technical scheme all or part(The part for example contributed to prior art)Embody in form of a computer software product.The computer software product is generally stored inside in the non-volatile memory medium of embodied on computer readable, including some instructions are to cause computer equipment(Can be personal computer, server or network equipment etc.)Perform all or part of step of various embodiments of the present invention method.And foregoing storage medium includes USB flash disk, mobile hard disk, read-only storage(ROM, Read-Only Memory), random access memory(RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
It is described above; only embodiment of the invention, but protection scope of the present invention is not limited thereto, any one skilled in the art the invention discloses technical scope in; change or replacement can be readily occurred in, should be all included within the scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (1)

  1. Claims
    1st, a kind of multi-page management method, it is characterised in that including:
    Client is asked according to the page jump received, is searched whether the action scope of cross-page face variable and is included target pages;
    It is reference of the target pages addition to the cross-page face variable in the case where the action scope for finding cross-page face variable includes target pages;
    The corresponding page of the cross-page face variable is used to share content in the target pages.
    2nd, multi-page management method according to claim 1, it is characterised in that also include:The client is asked according to the page open received, is searched whether the action scope of cross-page face variable and is included target pages.
    3rd, multi-page management method according to claim 1 or 2, it is characterised in that also include:The client deletes reference of the page for needing to close to the cross-page face variable according to the page close request received;
    Search whether the cross-page face variable is quoted by other pages;
    In the case where the cross-page face variable is not quoted by other pages, destroy the corresponding page of the cross-page face variable and share content.
    4th, the multi-page management method according to any one of claim 1-3, it is characterised in that searching whether the action scope of cross-page face variable includes target pages, including:
    The client receives the target pages from server, the procedure script of the target pages includes cross-page face variable declarations, the cross-page face variable declarations include the title and action scope of the corresponding cross-page face variable of the target pages, the server is the equipment pointed by the uniform resource position mark URL of the target pages, and the title of the cross-page face variable includes variable name and/or shared name;
    According to the title of the cross-page face variable, the page that searches whether to have been friends in the past has built up the cross-page face variable of title identical with the cross-page face variable, and judges whether the action scope of the cross-page face variable of the same name found includes the target pages.
    5th, the multi-page management method according to any one of claim 1-4, it is characterised in that be The target pages add the reference to the cross-page face variable, including:
    The numerical value in reference counter is updated, or the numerical value preserved in the adduction relationship between the identification information of cross-page the face variable and the target pages, the reference counter is used to represent the number of times that the cross-page face variable is currently cited;
    The corresponding page of the cross-page face variable is read from the internal memory of client according to the title of the corresponding cross-page face variable of the target pages and shares content.
    6th, the multi-page management method according to any one of claim 1-5, it is characterized in that, the cross-page face variable is used for the common page info variable for representing to need to share, and uses the corresponding page of the cross-page face variable to share content in the target pages, including:The client reads the corresponding page info of the page info variable in the target pages;Or
    The cross-page face variable is used for the thread variable for representing to need to share, and uses the corresponding page of the cross-page face variable to share thread in the target pages, including:The client runs the corresponding thread of the thread variable in the target pages;Or
    The cross-page face variable uses the corresponding page of the cross-page face variable to share content to represent the signalling path variable for needing to set up between client and server in the target pages, including:The client uses the signalling path resource corresponding to the signalling path variable in the target pages, from the server transceiving data.
    7th, multi-page management method according to claim 1, it is characterised in that after the reference to the cross-page face variable is added for the target pages, including:
    Asked according to page jump, delete reference of the old page to the cross-page face variable;Search whether the cross-page face variable is quoted by other pages;
    In the case where the cross-page face variable is not quoted by other pages, destroy the corresponding page of the cross-page face variable and share content.
    8th, multi-page management method according to claim 7, it is characterised in that after the reference to the cross-page face variable is added for the target pages, deletes the old page to the cross-page face variable Reference before, including:
    Destroy the script running environment of the old page;
    The page layout switch that the client is currently shown is the target pages;
    Render the script running environment of the target pages.
    9th, the multi-page management method according to claim 3,4 or 8, it is characterised in that search whether the cross-page face variable is quoted by other pages, including:
    According to the numerical value of the corresponding reference counter of the cross-page face variable, determine whether the cross-page face variable is quoted by other pages;Or
    According to the adduction relationship between the identification information of cross-page the face variable and the target pages, determine whether the cross-page face variable is quoted by other pages.
    10th, a kind of multi-page managing device, it is characterised in that including:
    Searching modul, for according to the page jump request received, searching whether the action scope of cross-page face variable to include target pages;
    Module is quoted, is communicated with the searching modul, is reference of the target pages addition to the cross-page face variable in the case of including target pages in the action scope for finding cross-page face variable;Sharing module, is communicated with the reference module, for using the corresponding page of the cross-page face variable to share content in the target pages.
    11st, multi-page managing device according to claim 10, it is characterised in that the searching modul is additionally operable to according to the page open request received, and searching whether the action scope of cross-page face variable includes target pages.
    12nd, the multi-page managing device according to claim 10 or 11, it is characterised in that also include:Removing module, for according to the page close request received, deleting reference of the page for needing to close to the cross-page face variable;In the case where the searching modul finds the cross-page face variable not by the reference of other pages, destroy the corresponding page of the cross-page face variable and share content.
    13rd, the multi-page managing device according to any one of claim 10-12, it is characterised in that Also include:
    Receiving module, cross-page face variable declarations for receiving the target pages from server, the cross-page face variable declarations include the title and action scope of the corresponding cross-page face variable of the target pages, the server is the equipment pointed by the uniform resource position mark URL of the target pages, and the title of the cross-page face variable includes variable name and/or shared name;
    The searching modul is additionally operable to the title according to the cross-page face variable, the page that searches whether to have been friends in the past has built up the cross-page face variable of title identical with the cross-page face variable, and judges whether the action scope of the cross-page face variable of the same name found includes the target pages.
    14th, the multi-page managing device according to any one of claim 10-13, it is characterised in that also include:
    Read module, content is shared for reading the corresponding page of the cross-page face variable from internal memory according to the variable name of the target pages;
    The module of quoting is additionally operable to update the numerical value in reference counter, or the numerical value preserved in adduction relationship between the identification information of cross-page the face variable and the target pages, the reference counter is used to represent the number of times that the cross-page face variable is currently cited.
    15th, multi-page managing device according to claim 12, it is characterised in that:
    The removing module is additionally operable to after the reference to the cross-page face variable is added for the target pages, is asked according to page jump, deletes reference of the old page to the cross-page face variable;In the case where the searching modul finds the cross-page face variable not by the reference of other pages, destroy the corresponding page of the cross-page face variable and share content;Or
    The removing module is additionally operable to after the reference to the cross-page face variable is added for the target pages, before deleting the old page to the reference of the cross-page face variable, destroys the script running environment of the old page;It is the target pages by the page layout switch currently shown;Render the script running environment of the target pages.
CN201480000459.XA 2014-02-24 2014-02-24 multi-page management method and device Active CN105027120B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/072472 WO2015123891A1 (en) 2014-02-24 2014-02-24 Multi-page management method and device

Publications (2)

Publication Number Publication Date
CN105027120A true CN105027120A (en) 2015-11-04
CN105027120B CN105027120B (en) 2019-01-18

Family

ID=53877574

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201480000459.XA Active CN105027120B (en) 2014-02-24 2014-02-24 multi-page management method and device

Country Status (2)

Country Link
CN (1) CN105027120B (en)
WO (1) WO2015123891A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108173900A (en) * 2017-11-20 2018-06-15 中国科学院声学研究所 A kind of method and apparatus of transparent migration
CN109167830A (en) * 2018-08-24 2019-01-08 北京国电智深控制技术有限公司 A kind of acquisition methods and device of monitoring data
CN110300137A (en) * 2018-03-22 2019-10-01 腾讯科技(深圳)有限公司 Communication means, device, computer equipment and storage medium
CN110557412A (en) * 2018-05-30 2019-12-10 杭州海康威视数字技术股份有限公司 data synchronization method and device
CN110780957A (en) * 2019-09-18 2020-02-11 北京你财富计算机科技有限公司 Page jump configuration method, page jump configuration device and electronic equipment
CN111382381A (en) * 2018-12-28 2020-07-07 北京字节跳动网络技术有限公司 User data sharing method and device, mobile terminal and storage medium
CN114265997A (en) * 2022-03-01 2022-04-01 成都鲁易科技有限公司 Page information output method, device, storage medium and terminal

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107786882A (en) * 2017-09-30 2018-03-09 青岛海信宽带多媒体技术有限公司 A kind of Webpage display process, device and set top box
CN109165067B (en) * 2018-08-07 2021-11-09 武汉斗鱼网络科技有限公司 Android horizontal and vertical screen data synchronization method and device, terminal and readable medium
CN109189498B (en) * 2018-08-07 2021-09-07 武汉斗鱼网络科技有限公司 Android horizontal and vertical screen data synchronization method and device, terminal and readable medium
CN109144638B (en) * 2018-08-07 2021-11-09 武汉斗鱼网络科技有限公司 Android horizontal and vertical screen data synchronization method and device, terminal and readable medium
CN109743381B (en) * 2018-12-27 2022-04-05 北京字节跳动网络技术有限公司 Long connection interaction method and device for client and server
CN109740098B (en) * 2018-12-29 2022-01-11 深圳点猫科技有限公司 Application processing method based on multi-page window and electronic equipment
CN111240847B (en) * 2020-01-19 2023-09-19 网易传媒科技(北京)有限公司 Data processing method, device, medium and computing equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6353839B1 (en) * 1998-04-30 2002-03-05 Openwave Systems Inc. Method for inline variables management in a hypermedia display language
US20020174147A1 (en) * 2000-05-19 2002-11-21 Zhi Wang System and method for transcoding information for an audio or limited display user interface
CN101295243A (en) * 2007-04-26 2008-10-29 环达电脑(上海)有限公司 Method for one window implementing multiple pages in embedded system
CN101334726A (en) * 2007-06-29 2008-12-31 纬创资通股份有限公司 Method for accessing web page variable
CN101484894A (en) * 2006-07-07 2009-07-15 国际商业机器公司 Method for inheriting a wiki page layout for a wiki page
CN101668004A (en) * 2008-09-04 2010-03-10 阿里巴巴集团控股有限公司 Method, device and system for acquiring webpage
CN103020498A (en) * 2012-11-19 2013-04-03 广东亚仿科技股份有限公司 Intelligent dynamic access control method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103472977B (en) * 2013-09-24 2017-05-24 北京奇虎科技有限公司 Method and device for activating next label page when label page is closed

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6353839B1 (en) * 1998-04-30 2002-03-05 Openwave Systems Inc. Method for inline variables management in a hypermedia display language
US20020174147A1 (en) * 2000-05-19 2002-11-21 Zhi Wang System and method for transcoding information for an audio or limited display user interface
CN101484894A (en) * 2006-07-07 2009-07-15 国际商业机器公司 Method for inheriting a wiki page layout for a wiki page
CN101295243A (en) * 2007-04-26 2008-10-29 环达电脑(上海)有限公司 Method for one window implementing multiple pages in embedded system
CN101334726A (en) * 2007-06-29 2008-12-31 纬创资通股份有限公司 Method for accessing web page variable
CN101668004A (en) * 2008-09-04 2010-03-10 阿里巴巴集团控股有限公司 Method, device and system for acquiring webpage
CN103020498A (en) * 2012-11-19 2013-04-03 广东亚仿科技股份有限公司 Intelligent dynamic access control method and system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108173900A (en) * 2017-11-20 2018-06-15 中国科学院声学研究所 A kind of method and apparatus of transparent migration
CN110300137A (en) * 2018-03-22 2019-10-01 腾讯科技(深圳)有限公司 Communication means, device, computer equipment and storage medium
CN110557412A (en) * 2018-05-30 2019-12-10 杭州海康威视数字技术股份有限公司 data synchronization method and device
CN109167830A (en) * 2018-08-24 2019-01-08 北京国电智深控制技术有限公司 A kind of acquisition methods and device of monitoring data
CN109167830B (en) * 2018-08-24 2021-08-10 北京国电智深控制技术有限公司 Method and device for acquiring monitoring data
CN111382381A (en) * 2018-12-28 2020-07-07 北京字节跳动网络技术有限公司 User data sharing method and device, mobile terminal and storage medium
CN110780957A (en) * 2019-09-18 2020-02-11 北京你财富计算机科技有限公司 Page jump configuration method, page jump configuration device and electronic equipment
CN114265997A (en) * 2022-03-01 2022-04-01 成都鲁易科技有限公司 Page information output method, device, storage medium and terminal
CN114265997B (en) * 2022-03-01 2022-05-20 成都鲁易科技有限公司 Page information output method, device, storage medium and terminal

Also Published As

Publication number Publication date
WO2015123891A1 (en) 2015-08-27
CN105027120B (en) 2019-01-18

Similar Documents

Publication Publication Date Title
CN105027120A (en) Multi-page management method and device
US20200106850A1 (en) System and method for mobile application deep linking
US8849802B2 (en) Historical browsing session management
US9253284B2 (en) Historical browsing session management
CN103984686B (en) page switching method and device
RU2589306C2 (en) Remote viewing session control
CN102855318B (en) Method and system for preloading of webpages
CN102594813B (en) Many account login methods and device
US10291738B1 (en) Speculative prefetch of resources across page loads
CN103699674B (en) Webpage preservation, webpage deployment method and device and Web browsing system
US20080091685A1 (en) Handling dynamic URLs in crawl for better coverage of unique content
AU2016202333B2 (en) Historical browsing session management
US20150161089A1 (en) Method, Device And Mobile Terminal For Restoring Page
CN104572777B (en) Webpage loading method and device based on UIWebView component
CN106503134A (en) Browser jumps to the method for data synchronization and device of application program
CN105095280A (en) Caching method and apparatus for browser
US20150193389A1 (en) Presenting updated hyperlink information on a webpage
CN103412890A (en) Webpage loading method and device
CN109829121B (en) Method and device for reporting click behavior data
CN106126693A (en) The sending method of the related data of a kind of webpage and device
Pande et al. Enhanced web application and browsing performance through service-worker infusion framework
CN107105336A (en) Data processing method and data processing equipment
CN104462571A (en) Webpage loading method and device and browser client-side
CN106412054A (en) Naming method for converting dynamic network address into static network address, system and application thereof
CN106557584A (en) A kind of web site collection method and device

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

Effective date of registration: 20201229

Address after: 313200 mubali, Yantang village, Luoshe Town, Deqing County, Huzhou City, Zhejiang Province (Deqing Kangxin Wood Industry Co., Ltd.)

Patentee after: Luo Sanjie

Address before: 518101 Baoan District Xin'an street, Shenzhen, Guangdong, No. 625, No. 625, Nuo platinum Plaza,

Patentee before: SHENZHEN SHANGGE INTELLECTUAL PROPERTY SERVICE Co.,Ltd.

Effective date of registration: 20201229

Address after: 518101 Baoan District Xin'an street, Shenzhen, Guangdong, No. 625, No. 625, Nuo platinum Plaza,

Patentee after: SHENZHEN SHANGGE INTELLECTUAL PROPERTY SERVICE Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211103

Address after: 101300 North Cultural Ying Village, Gaoliying Town, Shunyi District, Beijing (No. 1, Linkong Second Road)

Patentee after: SINO-PARSONS TECHNOLOGY (BEIJING) Co.,Ltd.

Address before: 313200 mubali, Yantang village, Luoshe Town, Deqing County, Huzhou City, Zhejiang Province (Deqing Kangxin Wood Industry Co., Ltd.)

Patentee before: Luo Sanjie