CN109684585B - Cross-page data access method and device, computer equipment and storage medium - Google Patents

Cross-page data access method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN109684585B
CN109684585B CN201811382243.0A CN201811382243A CN109684585B CN 109684585 B CN109684585 B CN 109684585B CN 201811382243 A CN201811382243 A CN 201811382243A CN 109684585 B CN109684585 B CN 109684585B
Authority
CN
China
Prior art keywords
page data
same common
data
common page
same
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811382243.0A
Other languages
Chinese (zh)
Other versions
CN109684585A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201811382243.0A priority Critical patent/CN109684585B/en
Publication of CN109684585A publication Critical patent/CN109684585A/en
Application granted granted Critical
Publication of CN109684585B publication Critical patent/CN109684585B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The invention discloses a cross-page data access method, a device, computer equipment and a storage medium, wherein the method comprises the following steps: requesting page data of different pages from a server, and identifying the same common page data in the page data of the different pages; after the same common page data are identified, storing the same common page data in a local storage; when the page is refreshed, if the requested data is the same common page data, the same common page data is called to a local storage, and if the requested data is non-same common page data, the non-same common page data is requested to a server. The invention can reduce the pressure of the server and accelerate the page rendering efficiency of the client.

Description

Cross-page data access method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer internet, and in particular, to a method and apparatus for accessing data across pages, a computer device, and a storage medium.
Background
When a client user accesses a webpage through a browser, the webpage requested by the user can be presented to the user through webpage rendering, namely the browser analyzes a URL address input by the user, after a webpage rendering request is sent to a server, the server obtains page elements and data required by webpage display according to the webpage rendering request, the data are filled in corresponding page elements to generate html files, the html files are sent to the browser and stored in a browser cache, and the browser completes webpage rendering according to the html files.
Most of the data involved in the page rendering process is to request a load from a server. In different webpages loaded by APP or websites on the market at present, if the same data are contained, a browser can repeatedly and frequently send requests for the data, and once the client-side even refreshes each pair of pages, the data requests are sent to a server once, so that the load of the server is greatly increased, the rendering speed of the pages is reduced, and the overall generation efficiency of the pages is reduced.
Disclosure of Invention
The invention aims to provide a cross-page data access method, a device, computer equipment and a storage medium, which aim at overcoming the defects of the prior art, and the method, the device, the computer equipment and the storage medium are used for identifying the same frequently-called data contained in different webpages, and after the data are stored in the local places, an APP or a website does not send a loading request to a server, so that the number of requests to the server is reduced, the pressure of the server is reduced, the effect of rendering and loading the page in the local places is achieved, and the page rendering efficiency of a client is accelerated.
In order to achieve the above objective, the technical scheme of the present invention provides a cross-page data access method, a device, a computer device and a storage medium.
The invention discloses a data access method across pages, which comprises the following steps:
requesting page data of different pages from a server, and identifying the same common page data in the page data of the different pages;
After the same common page data are identified, storing the same common page data in a local storage;
When the page is refreshed, if the requested data is the same common page data, the same common page data is called to a local storage, and if the requested data is non-same common page data, the non-same common page data is requested to a server.
Preferably, the requesting page data of different pages from the server, and identifying the same common page data in the page data of different pages includes:
inquiring the same data among the page data of different pages, and setting the same data among the page data of different pages as the same page data after finding the same data among the page data of different pages;
Presetting a threshold value of the request times of the same page data;
when the request of the same page data is received, accumulating the request times of the same page data;
and setting the same page data as the same common page data when the accumulated value of the request times of the same page data is equal to the threshold value of the request times of the same page data.
Preferably, after identifying the same common page data, storing the same common page data in a local storage includes:
After the same common page data are identified, the same common page data are acquired from the server;
And the same common page data acquired from the server are transferred to a local storage.
Preferably, after identifying the same common page data, storing the same common page data in a local storage includes:
Presetting the valid period of the data storage time of the same common page;
after the same common page data are stored in the local storage, timing the storage time of the same common page data;
And deleting the same common page data in the local storage after the same common page data storage timing time reaches the valid period of the same common page data storage time.
Preferably, after identifying the same common page data, storing the same common page data in a local storage includes:
and after the same common page data are stored in the local storage, permanently storing the same common page data.
Preferably, when the page is refreshed, if the requested data is the same common page data, the same common page data is called to the local storage, and if the requested data is non-same common page data, the non-same common page data is requested to the server, including:
Inquiring the same common page data in the local storage when the same common page data is called, and sending the same common page data to a browser after the same common page data is inquired;
When the non-identical common page data is requested, requesting the non-identical common page data from a server, and after the non-identical common page data is acquired, sending the non-identical common page data to a browser;
And loading and rendering the page after the browser receives the same common page data and the non-same common page data.
Preferably, when the page is refreshed, if the requested data is the same common page data, the same common page data is called to the local storage, and if the requested data is non-same common page data, the non-same common page data is requested to the server, including:
presetting a preset value area in a browser;
Querying the local store for the same common page data when the same common page data is invoked;
When the inquiry fails, sending a failure instruction of calling the same common page data to the browser;
And after the browser receives the call failure indication of the same common page data, loading non-same common page data in the browser, rendering a page, and replacing the area rendered by the same common page data with the preset value area.
The invention also discloses a data access device crossing pages, which comprises:
The same data identification module: the method comprises the steps of setting page data of different pages to a server, and identifying the same common page data in the page data of the different pages;
the same data storage module: the method comprises the steps that after the same common page data are identified, the same common page data are stored in a local storage;
Page data request module: and when the page is refreshed, if the requested data is the same common page data, calling the same common page data to a local storage, and if the requested data is non-same common page data, requesting the non-same common page data to a server.
The invention also discloses a computer device, which comprises a memory and a processor, wherein the memory stores computer readable instructions, and the computer readable instructions, when executed by the processor, cause the processor to execute the steps of the data access method.
The invention also discloses a storage medium storing computer readable instructions that, when executed by one or more processors, cause the one or more processors to perform the steps of the data access method described above.
The beneficial effects of the invention are as follows: according to the method and the device, the same frequently-called data contained in different webpages are identified, and after the data are stored locally, the APP or the website does not send a loading request to the server any more, so that the number of requests to the server is reduced, the pressure of the server is reduced, the effect of locally rendering and loading the pages is achieved, and the page rendering efficiency of the client is accelerated.
Drawings
FIG. 1 is a flow chart of a cross-page data access method according to an embodiment of the invention;
FIG. 2 is a flow chart of a cross-page data access method according to an embodiment of the invention;
FIG. 3 is a flow chart of a cross-page data access method according to an embodiment of the invention;
FIG. 4 is a flow chart of a cross-page data access method according to an embodiment of the invention;
FIG. 5 is a flow chart of a cross-page data access method according to an embodiment of the invention;
FIG. 6 is a flow chart of a cross-page data access method according to an embodiment of the invention;
FIG. 7 is a schematic diagram of a cross-page data access device according to an embodiment of the invention.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
The flow of a data access method across pages in the embodiment of the present invention is as shown in fig. 1, and the embodiment includes the following steps:
step S101, requesting page data of different pages from a server, and identifying the same common page data in the page data of the different pages;
Specifically, when a client user accesses a webpage through a browser, the webpage requested by the user can be presented to the user through webpage rendering, and after the browser sends a webpage rendering request to a server through analyzing a URL address input by the user, the server requests webpage data to be loaded by the browser, and the server finds out webpage elements and data required by webpage display in a server memory according to the webpage rendering request.
Specifically, in the process that the browser requests page data from the server, since different web pages of the same website often contain the same data, even among different web sites, the situation that different pages call the same data occurs due to the relevance among the web sites, for these situations, software accessing the data or other web sites repeatedly and frequently send access requests to the data server of the accessed web site, so that the same data among different web pages can be found first, the frequently called and same data are generally json type data, and after the same data are found, the same page data among different pages can be set as the same page data.
Specifically, after the same page data is found, a threshold value can be set for the request times of the same page data because the same page data can be frequently called, and when the request times cumulative value of the same page data reaches the threshold value, the same page data can be set as the same common page data; taking access to a website N as an example, the following description will be given: assuming that the interface of the called same page data is named as alpha, when the alpha interface is called for the first time, declaring and counting the interface, namely setting the calling frequency parameter in the alpha interface as 1, when the alpha interface is continuously called at the back, accumulating the counting of the interface, judging the calling frequency parameter of the interface alpha in the subsequent access, and when the calling frequency parameter of the alpha interface is found to exceed a preset threshold value, setting the same page data as the same common page data.
Step s102, after identifying the same common page data, storing the same common page data in a local storage;
Specifically, after the same common page data is identified, the same common page data may be stored in a local store. The server sends corresponding data only when the browser requests the server, so that after the same common page data are identified, the server can send the request for the same common page data, after the server receives the request, the server sends the same common page data locally, after the same common page data are received locally, the same common page data are stored in the local storage, and when the browser needs to call the same common page data again, the browser does not need to request the server again, and only the same common page data need to be requested from the local storage.
Specifically, the local storage may be a persistent storage, for example, a storage unit user may be opened up in the local storage localStorage, and the same common page data to be stored may be named as alpha, so that the operation of transferring the same common page data is localStorage.
Specifically, the local storage can also be temporary storage, such as a temporary storage unit for opening up cookies in the local storage; wherein, the temporary storage unit can be provided with a time period for storing the same common page data, such as one day, one week or one year; and after the same common page data is transferred from the server to the local temporary storage unit, starting the storage time timing of the same common page data, and deleting the same common page data when the accumulated time of the same common page data reaches the time period of storing the same common page data.
Step s103, when the page is refreshed, if the requested data is the same common page data, calling the same common page data to a local storage, and if the requested data is non-same common page data, requesting the non-same common page data to a server.
Specifically, when the page is refreshed, the data in the page is requested again, and the data in the page contains the same common page data and the non-same common page data, so when the requested data is the same common page data, the same common page data can be called to the local storage, and if the requested data is the non-same common page data, the non-same common page data can be requested to the server, and after the browser acquires the same common page data and the non-same common page data, the browser loads the data and renders the current page.
In the embodiment, the same frequently called page data among different pages are identified, and the same frequently called page data among the different pages are stored in the local storage, so that the efficiency of loading the page data by the browser is improved, and the burden of a server is reduced.
Fig. 2 is a schematic diagram of a cross-page data access flow according to an embodiment of the present invention, as shown in the drawing, in step s101, page data of different pages are requested to a server, and the same common page data is identified from the page data of the different pages, including:
Step s201, inquiring the same data among the page data of different pages, and setting the same data among the page data of different pages as the same page data after finding the same data among the page data of different pages;
Specifically, in the process that the browser requests page data from the server, since different web pages of the same website often contain the same data, even among different web sites, the situation that different pages call the same data occurs due to the relevance among the web sites, for these situations, software accessing the data or other web sites repeatedly and frequently send access requests to the data server of the accessed web site, so that the same data among different web pages can be found first, the frequently called and same data are generally json type data, and after the same data are found, the same page data among different pages can be set as the same page data.
Step S202, presetting a threshold value of the request times of the same page data;
Specifically, a threshold value of the number of times of requests of the same page data can be preset in the browser, and the threshold value can be set to be a fixed value, namely, the threshold value is solidified in the system and cannot be changed; an entry to change the threshold, i.e. to make an artificial change to the threshold in the form of a list or an input box, may also be provided.
Step s203, when the request of the same page data is received, accumulating the number of times of the request of the same page data;
Specifically, the initial number of requests for the same page data may be set to 0, may be accumulated to 1 when the first request for the same page data is received, may be accumulated to 2 when the second request for the same page data is received, and so on.
Step s204, when the accumulated value of the request times of the same page data is equal to the threshold value of the request times of the same page data, setting the same page data as the same common page data.
Specifically, after the cumulative value of the request times of the same page data reaches the threshold value, the same page data can be set as the same common page data; taking access to a website N as an example, the following description will be given: assuming that the interface of the called same page data is named as alpha, when the alpha interface is called for the first time, declaring and counting the interface, namely setting the calling frequency parameter in the alpha interface as 1, when the alpha interface is continuously called at the back, accumulating the counting of the interface, judging the calling frequency parameter of the interface alpha in the subsequent access, and when the calling frequency parameter of the alpha interface is found to exceed a preset threshold value, setting the same page data as the same common page data.
In this embodiment, the data which are the same among different pages and are frequently called can be effectively identified by accumulating and discriminating the number of times of data requests of the same page.
Fig. 3 is a schematic diagram of a cross-page data access flow according to an embodiment of the present invention, as shown in the drawing, in step s102, after identifying the same common page data, storing the same common page data in a local storage, including:
Step s301, when the same common page data is identified, acquiring the same common page data from the server;
Specifically, since all the page data are stored in the memory of the server, the server transmits corresponding data only when the browser requests the server, so that after identifying the same common page data, the server may transmit the request of the same common page data, and after receiving the request, the server may locally transmit the same common page data.
Step s302, the same common page data obtained from the server is transferred to a local storage.
Specifically, after the same common page data is received locally, the same common page data is stored in the local storage, so that when the browser needs to call the same common page data again, the browser does not need to request the server any more, and only needs to call the same common page data to the local storage.
Specifically, the local storage may be a persistent storage, for example, a storage unit user may be opened up in the local storage localStorage, and the same common page data to be stored may be named as alpha, so that the operation of transferring the same common page data is localStorage.
Specifically, the local storage can also be temporary storage, such as a temporary storage unit for opening up cookies in the local storage; wherein, the temporary storage unit can be provided with a time period for storing the same common page data, such as one day, one week or one year; and after the same common page data is transferred from the server to the local temporary storage unit, starting the storage time timing of the same common page data, and deleting the same common page data when the accumulated time of the same common page data reaches the time period of storing the same common page data.
In this embodiment, the load of the server can be effectively reduced and the efficiency of loading data by the browser can be improved by transferring the same common page data in the server to the local storage.
Fig. 4 is a schematic diagram of a cross-page data access flow according to an embodiment of the present invention, as shown in the drawing, in step s102, after identifying the same common page data, storing the same common page data in a local storage, including:
step s401, presetting the valid period of the data storage time of the same common page;
Specifically, the temporary storage unit may set a time period for storing the same general page data, for example, a time period, such as a day, a week, or a year, beyond which the same time period expires, or a time point, such as 10 months, 1 days, 2018, beyond which the same time period expires.
Step s402, when the same common page data is stored in the local storage, timing the storage time of the same common page data;
Specifically, after the same common page data is transferred from the server to the local temporary storage unit, the storage time of the same common page data may be started, and the time may be counted, or whether a preset time point is reached may be determined.
Step s403, deleting the same common page data in the local storage after the same common page data storage timing time reaches the valid period of the same common page data storage time.
Specifically, when the timing time of the same general page data reaches the time period of storing the same general page data, for example, exceeds a preset time period or exceeds a preset time point, the same general page data may be deleted.
In this embodiment, by setting the storage time for the local storage, the same common page data may be deleted after the storage time expires, so as to release the local storage space and improve the use efficiency of the local storage space.
In one embodiment, the step s102, after identifying the same common page data, stores the same common page data in a local storage, includes:
and after the same common page data are stored in the local storage, permanently storing the same common page data.
Specifically, a storage unit user may be opened up in the local storage localStorage, and the same common page data to be stored is named as alpha, so that the operation of transferring the same common page data is localStorage.
In this embodiment, by permanently storing the same common page data, it may be ensured that the same common page data is not deleted, and efficiency of loading data by the browser is improved.
Fig. 5 is a schematic diagram of a cross-page data access flow according to an embodiment of the present invention, as shown in the drawing, in step s103, when a page is refreshed, if the requested data is the same common page data, the same common page data is called to a local store, and if the requested data is non-same common page data, the non-same common page data is requested to a server, including:
Step s501, when the same common page data is called, inquiring the same common page data in the local storage, and after inquiring the same common page data, sending the same common page data to a browser;
Specifically, when the page is refreshed, the data in the page is requested again, and the data in the page contains the same common page data and the non-same common page data, so that when the requested data is the same common page data, the data can be queried in the local storage, and when the same common page data is queried in the local storage, the same common page data can be sent to the browser.
Step s502, when the non-identical common page data is requested, requesting the non-identical common page data from a server, and after the non-identical common page data is acquired, sending the non-identical common page data to a browser;
specifically, if the requested data is non-identical common page data, the non-identical common page data may be requested from the server, and after the server receives the request of the non-identical common page data, the non-identical common page data may be sent to the browser.
Step s503, when the browser receives the same common page data and the non-same common page data, loading and rendering a page.
Specifically, after the browser obtains the same common page data and the non-same common page data, loading can be performed according to the same common page data and the non-same common page data, and after loading, a page can be generated through rendering, wherein the page is a page seen by a user.
In this embodiment, the same common page data is queried locally and loaded in the browser, so that the efficiency of loading data by the browser is improved, and the burden of the server is reduced.
Fig. 6 is a schematic diagram of a cross-page data access flow according to an embodiment of the present invention, as shown in the drawing, in step s103, when a page is refreshed, if the requested data is the same common page data, the same common page data is called to a local store, and if the requested data is non-same common page data, the non-same common page data is requested to a server, including:
Step s601, presetting a preset value area in a browser;
Specifically, a preset value area can be preset in the browser, that is, the web page only displays an empty page or some areas on the web page can be preset with a preset value, for example, the area of the pre-display data is filled with the displayed page with the preset value or a preset web page element; for the preset page or the preset area, a set of templates of preset icon buttons (such as icon buttons in the form of words or other pictures like loading, loading and the like) for users or developers to call can be stored, and one or more icon buttons can be called at will to be designed on the preset page or the preset area.
Step s602, when the same common page data is called, querying the local storage for the same common page data;
specifically, when the same common page data is called again, a call request of the same common page data may be sent to the local storage, and when the local storage receives the call request of the same common page data, the same common page data is queried in the local storage, and because naming is performed when the same common page data is stored, when the same common page data is queried or called, the query may be performed according to the name.
Step s603, when the query fails, sending a failure indication of invoking the same common page data to the browser;
Specifically, when the query fails, that is, the local storage has no related common page data, or the common page data has been stored, but has been deleted, and the query is not completed, the browser may send a call failure indication of the common page data to notify that the browser has no related common page data.
Step s604, when the browser receives the call failure indication of the same common page data, loading non-same common page data in the browser, rendering a page, and replacing the area rendered by the same common page data with the preset value area.
Specifically, after the browser receives the call failure indication of the same common page data, it may be known that the same common page data cannot be obtained, and the area where the same common page data is rendered may only be blank, so that the obtained page data, that is, the non-same common page data, may be rendered, and then the preset value area set in step s601 is substituted for the area where the same common page data is rendered, so that the total rendered page is finally generated.
In this embodiment, the user experience can be improved by presetting a page for the browser and replacing the preset page with the same common page data rendering area under the condition that the same common page data is lost.
A cross-page data access device according to an embodiment of the present invention is shown in FIG. 7, and includes:
The same data identification module 701, the same data storage module 702, and the page data request module 703; wherein the same data identification module 701 is connected with the same data storage module 702, and the same data storage module 702 is connected with the page data request module 703; the same data identifying module 701 is configured to request page data of different pages from the server, and identify the same common page data in the page data of the different pages; the same data storage module 702 is configured to store the same common page data in the local storage after identifying the same common page data; the page data request module 703 is configured to, when a page is refreshed, call the same common page data to the local store if the requested data is the same common page data, and request the non-same common page data to the server if the requested data is the non-same common page data.
The embodiment of the invention also discloses a computer device, which comprises a memory, a processor and computer readable instructions stored on the memory and capable of being executed on the processor, wherein the computer readable instructions, when executed by the processor, cause the processor to execute the steps in the cross-page data access method in the above embodiments.
The embodiment of the invention also discloses a storage medium storing computer readable instructions, which when executed by one or more processors, cause the one or more processors to execute the steps in the cross-page data access method in the embodiment.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored in a computer-readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. The storage medium may be a nonvolatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a random access Memory (Random Access Memory, RAM).
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the invention and are described in detail herein without thereby limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.

Claims (9)

1. A method for accessing data across pages, comprising:
requesting page data of different pages from a server, and identifying the same common page data in the page data of the different pages;
Presetting the valid period of the data storage time of the same common page;
after the same common page data are stored in the local storage, timing the storage time of the same common page data;
Deleting the same common page data in the local storage after the same common page data storage timing time reaches the valid period of the same common page data storage time;
When the page is refreshed, if the requested data is the same common page data, the same common page data is called to a local storage, and if the requested data is non-same common page data, the non-same common page data is requested to a server.
2. The method for accessing data across pages according to claim 1, wherein the step of requesting page data of different pages from the server and identifying the same common page data among the page data of different pages comprises:
inquiring the same data among the page data of different pages, and setting the same data among the page data of different pages as the same page data after finding the same data among the page data of different pages;
Presetting a threshold value of the request times of the same page data;
when the request of the same page data is received, accumulating the request times of the same page data;
and setting the same page data as the same common page data when the accumulated value of the request times of the same page data is equal to the threshold value of the request times of the same page data.
3. The method for accessing data across pages according to claim 1, wherein said storing said same common page data in a local store after said same common page data is identified comprises:
After the same common page data are identified, the same common page data are acquired from the server;
And the same common page data acquired from the server are transferred to a local storage.
4. The method for accessing data across pages according to claim 1, wherein said storing said same common page data in a local store after said same common page data is identified comprises:
and after the same common page data are stored in the local storage, permanently storing the same common page data.
5. The method for accessing data across pages according to claim 1, wherein when the page is refreshed, if the requested data is the same common page data, the same common page data is called to the local store, and if the requested data is non-same common page data, the method comprises:
Inquiring the same common page data in the local storage when the same common page data is called, and sending the same common page data to a browser after the same common page data is inquired;
When the non-identical common page data is requested, requesting the non-identical common page data from a server, and after the non-identical common page data is acquired, sending the non-identical common page data to a browser;
And loading and rendering the page after the browser receives the same common page data and the non-same common page data.
6. The method for accessing data across pages according to claim 1, wherein when the page is refreshed, if the requested data is the same common page data, the same common page data is called to the local store, and if the requested data is non-same common page data, the method comprises:
presetting a preset value area in a browser;
Querying the local store for the same common page data when the same common page data is invoked;
When the inquiry fails, sending a failure instruction of calling the same common page data to the browser;
And after the browser receives the call failure indication of the same common page data, loading non-same common page data in the browser, rendering a page, and replacing the area rendered by the same common page data with the preset value area.
7. A cross-page data access apparatus, the apparatus comprising:
The same data identification module: the method comprises the steps of setting page data of different pages to a server, and identifying the same common page data in the page data of the different pages;
The same data storage module: presetting the valid period of the data storage time of the same common page; after the same common page data are stored in the local storage, timing the storage time of the same common page data; deleting the same common page data in the local storage after the same common page data storage timing time reaches the valid period of the same common page data storage time;
Page data request module: and when the page is refreshed, if the requested data is the same common page data, calling the same common page data to a local storage, and if the requested data is non-same common page data, requesting the non-same common page data to a server.
8. A computer device comprising a memory and a processor, the memory having stored therein computer readable instructions which, when executed by the processor, cause the processor to perform the steps of the method of any of claims 1 to 6.
9. A storage medium storing computer readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the method of any of claims 1 to 6.
CN201811382243.0A 2018-11-20 2018-11-20 Cross-page data access method and device, computer equipment and storage medium Active CN109684585B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811382243.0A CN109684585B (en) 2018-11-20 2018-11-20 Cross-page data access method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811382243.0A CN109684585B (en) 2018-11-20 2018-11-20 Cross-page data access method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109684585A CN109684585A (en) 2019-04-26
CN109684585B true CN109684585B (en) 2024-07-09

Family

ID=66184920

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811382243.0A Active CN109684585B (en) 2018-11-20 2018-11-20 Cross-page data access method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109684585B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678549A (en) * 2013-12-04 2014-03-26 新浪网技术(中国)有限公司 Webpage table data sharing method and device
CN105930537A (en) * 2016-06-23 2016-09-07 乐视控股(北京)有限公司 Page storing method and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110029899A1 (en) * 2009-08-03 2011-02-03 FasterWeb, Ltd. Systems and Methods for Acceleration and Optimization of Web Pages Access by Changing the Order of Resource Loading
CN106156148B (en) * 2015-04-14 2020-08-21 腾讯科技(深圳)有限公司 Page rendering method and device and terminal equipment
CN106484738B (en) * 2015-09-01 2020-08-28 腾讯科技(深圳)有限公司 Page processing method and device
CN106682176A (en) * 2016-12-29 2017-05-17 北京五八信息技术有限公司 Page loading method, equipment and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678549A (en) * 2013-12-04 2014-03-26 新浪网技术(中国)有限公司 Webpage table data sharing method and device
CN105930537A (en) * 2016-06-23 2016-09-07 乐视控股(北京)有限公司 Page storing method and electronic equipment

Also Published As

Publication number Publication date
CN109684585A (en) 2019-04-26

Similar Documents

Publication Publication Date Title
US11032388B2 (en) Methods for prerendering and methods for managing and configuring prerendering operations
CN110263275B (en) Method and device for accessing webpage, mobile terminal and storage medium
US11019179B2 (en) Access to network content
US9530099B1 (en) Access to network content
US20170017672A1 (en) Accessing search results in offline mode
CN106528578B (en) Information display method and device
EP3528474B1 (en) Webpage advertisement anti-shielding methods and content distribution network
US8874687B2 (en) System and method for dynamically modifying content based on user expectations
US8832275B1 (en) Offline web browser
CN111597213A (en) Caching method, software server and storage medium
US20160182673A1 (en) Dynamic cache injector
CN112926002A (en) Service request processing method and device
CN111383038A (en) Advertisement display method and device of mobile terminal, mobile terminal and storage medium
US10210277B2 (en) Computing system with dynamic web page feature
CN109684585B (en) Cross-page data access method and device, computer equipment and storage medium
US20160117392A1 (en) Information search method and apparatus
US9229611B2 (en) Automatic management of client data consistency
US20230065501A1 (en) Interaction tracking controls
CN114547422A (en) Method and device for preventing repeated clicking of page elements
CN107341263B (en) Static page data processing method and device
CN117112940A (en) Offline data display method and device, electronic equipment and readable storage medium
CN117131295A (en) Resource management method, system, device, electronic equipment and storage medium
US10909209B2 (en) Dynamic insertion of content into webpages
CN116701800A (en) Page content processing method, device, computer equipment and medium
US9380118B2 (en) Analytics based scoping of HTML5 web storage attributes

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant