CN108255898B - Page display method and device - Google Patents

Page display method and device Download PDF

Info

Publication number
CN108255898B
CN108255898B CN201710091617.2A CN201710091617A CN108255898B CN 108255898 B CN108255898 B CN 108255898B CN 201710091617 A CN201710091617 A CN 201710091617A CN 108255898 B CN108255898 B CN 108255898B
Authority
CN
China
Prior art keywords
page
uniform resource
resource locator
data
extracted
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
CN201710091617.2A
Other languages
Chinese (zh)
Other versions
CN108255898A (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 CN201710091617.2A priority Critical patent/CN108255898B/en
Publication of CN108255898A publication Critical patent/CN108255898A/en
Application granted granted Critical
Publication of CN108255898B publication Critical patent/CN108255898B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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

Landscapes

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

Abstract

The invention relates to a page display method and a device, wherein the method comprises the following steps: acquiring a page access instruction; extracting a uniform resource locator in the page access instruction; creating a page instance according to the extracted uniform resource locator, parallelly acquiring page data corresponding to the extracted uniform resource locator, and storing the acquired page data; and after the creation of the page example is completed, displaying the page corresponding to the extracted uniform resource locator in the page example according to the stored page data. According to the page display method and device provided by the invention, the page data is not required to be acquired when the creation of the page instance is completed. After the page instance is created, the page can be directly displayed in the created page instance according to the stored page data, so that the time consumed for waiting for creating the page instance is saved, the page display speed is improved, and the situation that the page is blank for a long time is avoided.

Description

Page display method and device
Technical Field
The invention relates to the technical field of data processing, in particular to a page display method and device.
Background
With the development of computer technology and internet technology, computers can provide more and more functions for users, and users can open various pages in the computers and enjoy various services provided by third parties through the opened pages. When a user accesses a page through a computer, page data can be acquired from a third-party server through the Internet, and the page is displayed according to the page data.
In the traditional page display process, after a page instance is successfully created, page data is acquired, and a page is displayed according to the acquired page data. This results in a longer time required to acquire page data, resulting in a lower speed of page display.
Disclosure of Invention
Based on this, it is necessary to provide a page display method and apparatus for the problem of low speed of page display.
A method of page display, the method comprising:
acquiring a page access instruction;
extracting a uniform resource locator in the page access instruction;
when a page instance is created according to the extracted uniform resource locator, page data corresponding to the extracted uniform resource locator is acquired in parallel and stored;
and after the creation of the page example is completed, displaying the page corresponding to the extracted uniform resource locator in the page example according to the stored page data.
In one embodiment, the obtaining and storing the page data corresponding to the extracted uniform resource locator includes:
acquiring page data corresponding to the extracted uniform resource locator from a local cache;
after the page corresponding to the extracted uniform resource locator is displayed in the page instance according to the stored page data, the method further includes:
acquiring page data from a server according to the extracted uniform resource locator;
determining page difference data according to the page data extracted from the local cache and the page data acquired from the server;
and updating the displayed page according to the page difference data.
In one embodiment, after the obtaining the page data corresponding to the extracted uniform resource locator from the local cache, the method further includes:
if the page data corresponding to the extracted uniform resource locator is not acquired from the local cache, generating a page data request according to the extracted uniform resource locator;
sending the page data request to a server;
and receiving page data returned by the server according to the page data request.
In one embodiment, after the displaying, according to the stored page data, the page corresponding to the extracted uniform resource locator in the page instance, the method further includes:
acquiring a uniform resource locator and page access time corresponding to a current page;
and correspondingly storing the page access time and the acquired uniform resource locator to generate a page access record.
In one embodiment, after the storing the page access time corresponding to the obtained uniform resource locator and generating the page access record, the method further includes:
acquiring a page backspacing instruction;
inquiring page access time which is earlier than the page access time of the current page and has the minimum time difference with the page access time of the current page in the page access record according to the page rollback instruction;
extracting a uniform resource locator corresponding to the inquired page access time;
and executing the step of creating a page instance according to the extracted uniform resource locator, parallelly acquiring page data corresponding to the extracted uniform resource locator, and storing the acquired page data.
According to the page display method, after the page access instruction is obtained, the uniform resource locators in the page access instruction are extracted, the page instance is created according to the extracted uniform resource locators, the page data is obtained according to the extracted uniform resource locators in parallel, the obtained page data is stored, and the page data is obtained without waiting for the creation of the page instance to be completed. After the page instance is created, the page can be directly displayed in the created page instance according to the stored page data, so that the time consumed for waiting for creating the page instance is saved, the page display speed is improved, and the situation that the page is blank for a long time is avoided.
A page display apparatus, the apparatus comprising:
the instruction acquisition module is used for acquiring a page access instruction;
the locator extraction module is used for extracting the uniform resource locator in the page access instruction;
the instance creating module is used for parallelly acquiring and storing page data corresponding to the extracted uniform resource locators when creating page instances according to the extracted uniform resource locators;
and the page display module is used for displaying the page corresponding to the extracted uniform resource locator in the page example according to the stored page data after the page example is created.
In one embodiment, the instance creation module is further configured to obtain page data corresponding to the extracted uniform resource locator from a local cache;
the device further comprises:
the data acquisition module is used for acquiring page data from a server according to the extracted uniform resource locator;
the difference determining module is used for determining page difference data according to the page data extracted from the local cache and the page data acquired from the server;
and the page updating module is used for updating the displayed page according to the page difference data.
In one embodiment, the instance creation module further comprises:
a data request generating module, configured to generate a page data request according to the extracted uniform resource locator if page data corresponding to the extracted uniform resource locator is not acquired from the local cache;
the data request sending module is used for sending the page data request to a server;
and the page data receiving module is used for receiving the page data returned by the server according to the page data request.
In one embodiment, the apparatus further comprises:
the access time acquisition module is used for acquiring the uniform resource locator and the page access time corresponding to the current page;
and the access record generating module is used for correspondingly storing the page access time and the acquired uniform resource locator to generate a page access record.
In one embodiment, the apparatus further comprises:
the backspacing instruction acquisition module is used for acquiring a page backspacing instruction;
the access time query module is used for querying the page access time which is earlier than the page access time of the current page and has the minimum time difference with the page access time of the current page in the page access record according to the page rollback instruction;
the locator extracting module is also used for extracting the uniform resource locator corresponding to the inquired page access time.
According to the page display device, after the page access instruction is obtained, the uniform resource locators in the page access instruction are extracted, the page instance is created according to the extracted uniform resource locators, the page data is obtained according to the extracted uniform resource locators in parallel, the obtained page data is stored, and the page data is obtained without waiting for the completion of the creation of the page instance. After the page instance is created, the page can be directly displayed in the created page instance according to the stored page data, so that the time consumed for waiting for creating the page instance is saved, the page display speed is improved, and the situation that the page is blank for a long time is avoided.
Drawings
FIG. 1 is a diagram of an application environment of a page display method in one embodiment;
FIG. 2 is a block diagram showing the structure of a terminal in the page display system according to one embodiment;
FIG. 3 is a flowchart illustrating a page display method according to an embodiment;
FIG. 4 is a flowchart illustrating a page display method according to another embodiment;
FIG. 5 is a flowchart illustrating the steps of page rollback in one embodiment;
FIG. 6 is a block diagram showing the structure of a page display device according to an embodiment;
FIG. 7 is a block diagram showing the construction of a page display apparatus according to another embodiment;
fig. 8 is a block diagram showing the structure of a page display module in still another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
FIG. 1 is a diagram of an application environment of a page display method in one embodiment. Referring to fig. 1, the page display method is applied to a page display system. The page display system includes a terminal 110 and a server 120, wherein the terminal 110 is connected to the server 120 through a network. The terminal 110 may be a fixed terminal, which may specifically be at least one of a printer, a scanner, and a monitor, or a mobile terminal, which may specifically be at least one of a tablet, a smartphone, a personal data assistant, and a digital camera.
Fig. 2 is a schematic diagram illustrating an internal structure of the terminal 110 in the page display system of fig. 1 according to an embodiment. As shown in fig. 2, the terminal 110 includes a processor, a nonvolatile storage medium, an internal memory, a network interface, and a touch screen, which are connected through a system bus. The non-volatile storage medium of the terminal 110 stores an operating system and a database, and further includes a page display device, where the page display device is used to implement a page display method. The processor is used for providing computing and control capability, supporting the operation of the whole terminal 110, and an internal memory in the terminal 110 provides an environment for the operation of the page display device in the nonvolatile storage medium, and the internal memory can store computer readable instructions, and when the computer readable instructions are executed by the processor, the processor can be used for executing a page display method. The network interface is used for network communication with the server 120.
As shown in fig. 3, in an embodiment, a page display method is provided, which is exemplified by applying the page display method to a terminal 110 of a page display system, and the method specifically includes the following steps:
s302, a page access instruction is obtained.
The Uniform Resource locator (UR L, Uniform Resource L atom) is a compact representation of the location and access method of the Resource available from the internet, and is an address of a standard Resource on the internet.
S304, extracting the uniform resource locator in the page access instruction.
Specifically, after acquiring the page access instruction, the terminal 110 parses the page access instruction, and extracts the uniform resource locator in the page access instruction by parsing.
S306, when the page instance is created according to the extracted uniform resource locator, page data corresponding to the extracted uniform resource locator is parallelly acquired and stored.
Specifically, after extracting the uniform resource locator, the terminal 110 creates a page instance corresponding to the extracted uniform resource locator, and concurrently acquires page data corresponding to the extracted uniform resource locator while creating the page instance, and stores the acquired page data. The page instance is a space for displaying a page according to page data. The page instance may be a webview instance, and the code statement for creating the webview instance is specifically: new webview (this).
In one embodiment, the terminal 110 creates a page instance corresponding to the extracted uniform resource locator, and first queries the local cache for page data corresponding to the extracted uniform resource locator. When the query is received, the terminal 110 obtains the page data corresponding to the extracted uniform resource locator, and stores the obtained page data in the storage space corresponding to the page instance. If the terminal 110 does not inquire the page data corresponding to the extracted uniform resource locator in the local cache, a page data request is generated according to the extracted uniform resource locator, and the page data request is sent to the server 120. The server 120 extracts the uniform resource locator in the page data request, queries the page data according to the uniform resource locator, and the server 120 returns the queried page data to the terminal 110. The terminal 110 receives the page data returned by the server 120 according to the page data request.
In one embodiment, the terminal 110 generates a page data request according to the extracted uniform resource locator, and sends the page data request to the server 120. After receiving the page data request sent by the terminal 110, the server 120 parses the page data request, extracts the uniform resource locator in the page data request by parsing, and queries the page data corresponding to the uniform resource locator. The server 120 transmits the queried page data to the terminal 110. The terminal 110 receives the page data returned by the server 120 and stores the page data. The terminal 110 may specifically store the page data in a specified storage space, where the specified storage space is a storage space corresponding to the terminal 110, and the specified storage space may specifically be a local cache.
And S308, after the page example is created, displaying the page corresponding to the extracted uniform resource locator in the page example according to the stored page data.
Specifically, after detecting that the creation of the page instance is completed, the terminal 110 fills the stored page data into the created page instance, renders a page according to the page data in the page instance, and displays the rendered page in the page instance.
In this embodiment, after the page access instruction is obtained, the uniform resource locator in the page access instruction is extracted, a page instance is created according to the extracted uniform resource locator, page data is obtained according to the extracted uniform resource locator in parallel, the obtained page data is stored, and the page data is obtained without waiting for the completion of creation of the page instance. After the page instance is created, the page can be directly displayed in the created page instance according to the stored page data, so that the time consumed for waiting for creating the page instance is saved, the page display speed is improved, and the situation that the page is blank for a long time is avoided.
As shown in fig. 4, in another embodiment, a page display method is provided, where the page display method specifically includes the following contents:
s402, acquiring a page access instruction.
S404, extracting the uniform resource locator in the page access instruction.
S406, when a page instance is created according to the extracted uniform resource locator, page data corresponding to the extracted uniform resource locator is acquired in parallel and stored.
S408, after the creation of the page example is completed, displaying the page corresponding to the extracted uniform resource locator in the page example according to the stored page data.
And S410, acquiring page data from the server according to the extracted uniform resource locator.
Specifically, after the terminal 110 displays the page corresponding to the extracted uniform resource locator according to the page data, the terminal 110 generates a page data request according to the extracted uniform resource locator, and sends the page data request to the server 120. After receiving the page data request sent by the terminal 110, the server 120 parses the page data request, and extracts the uniform resource locator in the page data request by parsing. The server 120 queries page data according to the extracted uniform resource locator and returns the queried page data to the terminal 110. The terminal 110 receives the page data returned by the server 120.
S412, determining page difference data according to the page data extracted from the local cache and the page data acquired from the server.
Specifically, the terminal 110 compares the page data extracted from the local cache according to the extracted uniform resource locator with the page data acquired from the server 120, determines whether page difference data exists between the page data extracted from the local cache and the page data acquired from the server 120 through the comparison, and indicates that the displayed page is updated if the page difference data exists; and if the page difference data does not exist, the displayed page is not updated.
And S414, updating the displayed page according to the page difference data.
Specifically, the terminal 110 determines that page difference data exists between the page data extracted from the local cache and the page data acquired from the server 120, queries an update portion corresponding to the page difference data in the displayed page, and re-renders the update portion according to the page difference data to update the displayed page.
In this embodiment, the page data corresponding to the extracted uniform resource locator is acquired from the local cache, and the page data is displayed in the created page instance according to the page data from the local cache, and the page data can be acquired without interacting with the server, so that the acquisition speed of the page data and the page display speed are increased, and the situation that the page is blank for a long time is avoided. After the page is displayed according to the page data extracted from the local cache, the page data is acquired from the server, and the displayed page is updated according to the page difference data between the page data extracted from the local cache and the page data acquired from the server, so that the accuracy of the displayed page is ensured while the display speed of the page is improved.
As shown in fig. 5, in an embodiment, the step of page rollback is further specifically included after S306, and the step specifically includes the following steps:
s502, acquiring the uniform resource locator and the page access time corresponding to the current page.
Specifically, the terminal 110 obtains the uniform resource locator corresponding to the current page, and extracts the time for obtaining the uniform resource locator carrying the uniform resource locator corresponding to the current page, where the extracted time is the page access time corresponding to the currently displayed page.
S504, storing the page access time corresponding to the acquired uniform resource locator to generate a page access record.
Specifically, after acquiring the uniform resource locator and the page access time corresponding to the current page, the terminal 110 correspondingly stores the acquired uniform resource locator and the page access time to generate a page access record corresponding to the current page. The page access record may specifically include a plurality of uniform resource locators corresponding to different page access times. The page access record may specifically include a corresponding storage table of the uniform resource locator and the page access time.
S506, acquiring a page back-off instruction.
Specifically, a browser for displaying a page is installed in the terminal 110, a back button is provided in the browser, and a user clicks the back button in the browser by operating an input device of the terminal 110. When the terminal 110 detects that a backspace button in the browser is clicked, a page backspace instruction is triggered.
And S508, inquiring the page access time which is earlier than the page access time of the current page and has the minimum time difference with the page access time of the current page in the page access record according to the page rollback instruction.
Specifically, after acquiring the page rollback instruction, the terminal 110 acquires a page access record, extracts the uniform resource locator of the current page, and extracts page access time corresponding to the uniform resource locator of the current page from the page access record, where the extracted page access time is the page access time of the current page. The terminal 110 compares the page access time in the page access record with the page access time of the current page, and screens out the page access time earlier than the page access time of the current page. The terminal 110 calculates a time difference between the screened page access time and the page access time of the current page, and queries the page access time corresponding to the minimum time difference.
In one embodiment, a page forward button is provided in the browser displaying the current page, and the user clicks the page forward button through an input device of the terminal 110. The terminal 110 triggers a page forward command when detecting that the page forward button is clicked. The terminal 110 obtains a page access record according to the page forward instruction, and extracts the page access time corresponding to the uniform resource locator of the current page from the page access record, where the extracted page access time is the page access time of the current page. The terminal 110 compares the page access time in the page access record with the page access time of the current page, and screens out the page access time later than the page access time of the current page. The terminal 110 calculates a time difference between the screened page access time and the page access time of the current page, and queries the page access time corresponding to the minimum time difference.
S510, extracting the uniform resource locator corresponding to the inquired page access time.
Specifically, after the terminal 110 queries the page access time which is earlier than the page access time of the current page and has the minimum time difference with the page access time of the current page in the page access record, the terminal extracts the uniform resource locator corresponding to the queried page access time in the page access record, where the extracted uniform resource locator is the uniform resource locator corresponding to the returned page.
S512, when a page instance is created according to the extracted uniform resource locator, page data corresponding to the extracted uniform resource locator is acquired in parallel and stored.
Specifically, after extracting the uniform resource locator, the terminal 110 creates a page instance corresponding to the extracted uniform resource locator, and concurrently acquires page data corresponding to the extracted uniform resource locator while creating the page instance, and stores the acquired page data. The obtained page data may be stored in a local cache.
In an embodiment, the terminal 110 may specifically obtain the page data corresponding to the extracted uniform resource locator from the local cache, and when the page data corresponding to the extracted uniform resource locator is not obtained, obtain the page data corresponding to the extracted uniform resource locator from the server 120.
And S514, after the page example is created, displaying the page corresponding to the extracted uniform resource locator in the page example according to the stored page data.
In the embodiment, according to the recorded page access time, when the page rollback instruction is obtained, the uniform resource locator recorded in the query rollback page is accessed in the page according to the page access time, the page example is created according to the uniform resource locator, the page data of the uniform resource locator is obtained in parallel, the page is displayed according to the created page example and the page data, when the page needs to be rolled back, the page access instruction with the uniform resource locator does not need to be input again, the rolling back access efficiency is improved, and the operation of the rolling back access is simplified.
As shown in fig. 6, in an embodiment, a page display apparatus 600 is provided, which specifically includes: an instruction fetch module 602, a locator extraction module 604, an instance creation module 606, and a page display module 608.
An instruction obtaining module 602, configured to obtain a page access instruction.
And a locator extracting module 604, configured to extract a uniform resource locator in the page access instruction.
An instance creating module 606, configured to create a page instance according to the extracted uniform resource locator, obtain page data corresponding to the extracted uniform resource locator in parallel, and store the obtained page data.
And the page display module 608 is configured to display, after the creation of the page instance is completed, a page corresponding to the extracted uniform resource locator in the page instance according to the stored page data.
In this embodiment, after the page access instruction is obtained, the uniform resource locator in the page access instruction is extracted, a page instance is created according to the extracted uniform resource locator, page data is obtained according to the extracted uniform resource locator in parallel, the obtained page data is stored, and the page data is obtained without waiting for the completion of creation of the page instance. After the page instance is created, the page can be directly displayed in the created page instance according to the stored page data, so that the time consumed for waiting for creating the page instance is saved, the page display speed is improved, and the situation that the page is blank for a long time is avoided.
As shown in fig. 7, in an embodiment, the page display apparatus 600 further includes: a data acquisition module 610, a difference determination module 612, a page update module 614, a data request generation module 616, a data request transmission module 618, and a page data reception module 620.
The instance creation module 606 is further configured to retrieve page data corresponding to the extracted uniform resource locator from a local cache.
And a data obtaining module 610, configured to obtain page data from the server according to the extracted uniform resource locator.
A difference determining module 612, configured to determine page difference data according to the page data extracted from the local cache and the page data acquired from the server.
And a page updating module 614, configured to update the displayed page according to the page difference data.
In one embodiment, the instance creating module 606 is further configured to generate a page data request according to the extracted uniform resource locator if the page data corresponding to the extracted uniform resource locator is not acquired from the local cache; sending a page data request to a server; and receiving page data returned by the server according to the page data request.
In this embodiment, the page data corresponding to the extracted uniform resource locator is acquired from the local cache, and the page data is displayed in the created page instance according to the page data from the local cache, and the page data can be acquired without interacting with the server, so that the acquisition speed of the page data and the page display speed are increased, and the situation that the page is blank for a long time is avoided. After the page is displayed according to the page data extracted from the local cache, the page data is acquired from the server, and the displayed page is updated according to the page difference data between the page data extracted from the local cache and the page data acquired from the server, so that the accuracy of the displayed page is ensured while the display speed of the page is improved.
As shown in fig. 8, in one embodiment, the page display apparatus 600 further includes: an access time acquisition module 616, an access record generation module 618, a rollback instruction acquisition module 620, and an access time query module 622.
An access time obtaining module 616, configured to obtain a uniform resource locator and a page access time corresponding to the current page.
And an access record generating module 618, configured to store the page access time and the obtained uniform resource locator correspondingly to generate a page access record.
And a rollback instruction obtaining module 620, configured to obtain a page rollback instruction.
And the access time query module 622 is configured to query, according to the page rollback instruction, the page access time that is earlier than the page access time of the current page and has the smallest time difference with the page access time of the current page in the page access record.
The locator extracting module 604 is further configured to extract a uniform resource locator corresponding to the queried page access time.
In the embodiment, according to the recorded page access time, when the page rollback instruction is obtained, the uniform resource locator recorded in the query rollback page is accessed in the page according to the page access time, the page example is created according to the uniform resource locator, the page data of the uniform resource locator is obtained in parallel, the page is displayed according to the created page example and the page data, when the page needs to be rolled back, the page access instruction with the uniform resource locator does not need to be input again, the rolling back access efficiency is improved, and the operation of the rolling back access is simplified.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the computer program is executed. The storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Access Memory (RAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of page display, the method comprising:
acquiring a page access instruction;
extracting a uniform resource locator in the page access instruction;
when a page instance is created according to the extracted uniform resource locator, page data corresponding to the extracted uniform resource locator is acquired in parallel and stored;
after the page example is created, displaying a page corresponding to the extracted uniform resource locator in the page example according to stored page data;
after the page corresponding to the extracted uniform resource locator is displayed in the page instance according to the stored page data, the method further includes:
acquiring a uniform resource locator and page access time corresponding to a current page;
storing the page access time and the acquired uniform resource locator correspondingly to generate a page access record;
acquiring a page forward instruction;
inquiring page access time which is later than the current page and has the minimum time difference with the page access time of the current page in the page access record according to the page forward instruction;
extracting a uniform resource locator corresponding to the inquired page access time;
and when the page instance is created according to the extracted uniform resource locator, parallelly acquiring and storing the page data corresponding to the extracted uniform resource locator.
2. The method according to claim 1, wherein the obtaining and storing the page data corresponding to the extracted uniform resource locator comprises:
acquiring page data corresponding to the extracted uniform resource locator from a local cache;
after the page corresponding to the extracted uniform resource locator is displayed in the page instance according to the stored page data, the method further includes:
acquiring page data from a server according to the extracted uniform resource locator;
determining page difference data according to the page data extracted from the local cache and the page data acquired from the server;
and updating the displayed page according to the page difference data.
3. The method of claim 2, wherein after retrieving the page data corresponding to the extracted uniform resource locator from the local cache, further comprising:
if the page data corresponding to the extracted uniform resource locator is not acquired from the local cache, generating a page data request according to the extracted uniform resource locator;
sending the page data request to a server;
and receiving page data returned by the server according to the page data request.
4. The method of claim 1, wherein after storing the page access time corresponding to the obtained uniform resource locator and generating a page access record, further comprising:
acquiring a page backspacing instruction;
inquiring page access time which is earlier than the page access time of the current page and has the minimum time difference with the page access time of the current page in the page access record according to the page rollback instruction;
extracting a uniform resource locator corresponding to the inquired page access time;
and when the page instance is created according to the extracted uniform resource locator, parallelly acquiring and storing the page data corresponding to the extracted uniform resource locator.
5. A page display apparatus, characterized in that the apparatus comprises:
the instruction acquisition module is used for acquiring a page access instruction;
the locator extraction module is used for extracting the uniform resource locator in the page access instruction;
the instance creating module is used for parallelly acquiring and storing page data corresponding to the extracted uniform resource locators when creating page instances according to the extracted uniform resource locators;
the page display module is used for displaying a page corresponding to the extracted uniform resource locator in the page example according to stored page data after the page example is created;
the device further comprises:
the access time acquisition module is used for acquiring the uniform resource locator and the page access time corresponding to the current page;
the access record generating module is used for correspondingly storing the page access time and the acquired uniform resource locator to generate a page access record;
the forward instruction acquisition module is used for acquiring a page forward instruction;
the access time query module is used for querying the page access time which is later than the page access time of the current page and has the minimum time difference with the page access time of the current page in the page access record according to the page forward instruction;
the locator extracting module is also used for extracting the uniform resource locator corresponding to the inquired page access time.
6. The apparatus of claim 5, wherein the instance creation module is further configured to retrieve page data corresponding to the extracted uniform resource locator from a local cache;
the device further comprises:
the data acquisition module is used for acquiring page data from a server according to the extracted uniform resource locator;
the difference determining module is used for determining page difference data according to the page data extracted from the local cache and the page data acquired from the server;
and the page updating module is used for updating the displayed page according to the page difference data.
7. The apparatus of claim 6, wherein the instance creation module further comprises:
a data request generating module, configured to generate a page data request according to the extracted uniform resource locator if page data corresponding to the extracted uniform resource locator is not acquired from the local cache;
the data request sending module is used for sending the page data request to a server;
and the page data receiving module is used for receiving the page data returned by the server according to the page data request.
8. The apparatus of claim 5, further comprising:
the backspacing instruction acquisition module is used for acquiring a page backspacing instruction;
the access time query module is used for querying the page access time which is earlier than the page access time of the current page and has the minimum time difference with the page access time of the current page in the page access record according to the page rollback instruction;
the locator extracting module is also used for extracting the uniform resource locator corresponding to the inquired page access time.
9. A computer storage medium on which a computer program is stored, which program, when executed by a processor, is adapted to carry out the method of any one of claims 1 to 4.
10. A terminal device comprising a storage medium, a processor and a computer program stored on the storage medium and executable on the processor, the processor implementing the method according to any one of claims 1 to 4 when executing the program.
CN201710091617.2A 2017-02-20 2017-02-20 Page display method and device Active CN108255898B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710091617.2A CN108255898B (en) 2017-02-20 2017-02-20 Page display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710091617.2A CN108255898B (en) 2017-02-20 2017-02-20 Page display method and device

Publications (2)

Publication Number Publication Date
CN108255898A CN108255898A (en) 2018-07-06
CN108255898B true CN108255898B (en) 2020-07-21

Family

ID=62721760

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710091617.2A Active CN108255898B (en) 2017-02-20 2017-02-20 Page display method and device

Country Status (1)

Country Link
CN (1) CN108255898B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110865843B (en) * 2018-08-09 2024-03-26 阿里巴巴集团控股有限公司 Page backtracking, information backup and problem solving method, system and equipment
CN111414207A (en) * 2020-03-12 2020-07-14 支付宝(杭州)信息技术有限公司 Page construction method, device and equipment
CN112799948A (en) * 2021-02-03 2021-05-14 网易(杭州)网络有限公司 Webpage data processing method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005157842A (en) * 2003-11-27 2005-06-16 Fujitsu Ltd Browser program, browsing method, and browsing device
CN105574049A (en) * 2014-10-30 2016-05-11 阿里巴巴集团控股有限公司 Page processing method, device and system of mobile applications
CN105893425A (en) * 2015-12-04 2016-08-24 乐视致新电子科技(天津)有限公司 Page display method and apparatus
CN106095999A (en) * 2016-06-22 2016-11-09 腾讯科技(深圳)有限公司 Obtain the method and device of content of pages

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005157842A (en) * 2003-11-27 2005-06-16 Fujitsu Ltd Browser program, browsing method, and browsing device
CN105574049A (en) * 2014-10-30 2016-05-11 阿里巴巴集团控股有限公司 Page processing method, device and system of mobile applications
CN105893425A (en) * 2015-12-04 2016-08-24 乐视致新电子科技(天津)有限公司 Page display method and apparatus
CN106095999A (en) * 2016-06-22 2016-11-09 腾讯科技(深圳)有限公司 Obtain the method and device of content of pages

Also Published As

Publication number Publication date
CN108255898A (en) 2018-07-06

Similar Documents

Publication Publication Date Title
CN110096660B (en) Method and device for loading page pictures and electronic equipment
US8291312B1 (en) Displaying web pages without downloading static files
US9479519B1 (en) Web content fingerprint analysis to detect web page issues
US9250765B2 (en) Changing icons for a web page
EP2963567A1 (en) Method, device, server and terminal for visiting webpage
CN108717437B (en) Search result display method and device and storage medium
EP2786266A1 (en) Dynamic browser icons
JP6440828B2 (en) Visibility detection of digital content
US20150278234A1 (en) Inline web previews with dynamic aspect ratios
CN109948073B (en) Content retrieval method, terminal, server, electronic device, and storage medium
CN106547547B (en) data acquisition method and device
CN108255898B (en) Page display method and device
CN113382083B (en) Webpage screenshot method and device
CN103678704A (en) Picture recognition method, system, equipment and device based on picture information
WO2019019670A1 (en) Application accessing method and device, computer apparatus, and storage medium
US9706006B2 (en) System and method of context aware adaption of content for a mobile device
WO2024011899A1 (en) Widget loading method and apparatus, device, and storage medium
KR20160083915A (en) Method, apparatus, and system for communicating and presenting product information
TWI519980B (en) Method and device for displaying web page and computer-readable storage medium
CN112183045A (en) Online document processing method and device and electronic equipment
US10931610B2 (en) Method, device, user terminal and electronic device for sharing online image
CN112788090B (en) Network resource transmission method, device and system
CN111367606A (en) Application page display method, device, terminal and medium
CN106302821B (en) Data request method and equipment thereof
CN113590985B (en) Page jump configuration method and device, electronic equipment and computer readable medium

Legal Events

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