CN112214696A - Page display method and related device - Google Patents

Page display method and related device Download PDF

Info

Publication number
CN112214696A
CN112214696A CN201910624030.2A CN201910624030A CN112214696A CN 112214696 A CN112214696 A CN 112214696A CN 201910624030 A CN201910624030 A CN 201910624030A CN 112214696 A CN112214696 A CN 112214696A
Authority
CN
China
Prior art keywords
page
identification value
information
url
access instruction
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
CN201910624030.2A
Other languages
Chinese (zh)
Other versions
CN112214696B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910624030.2A priority Critical patent/CN112214696B/en
Publication of CN112214696A publication Critical patent/CN112214696A/en
Application granted granted Critical
Publication of CN112214696B publication Critical patent/CN112214696B/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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • 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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • 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 application discloses a page display method and a related device, which are used for improving the efficiency of page information acquisition and the speed of page display. The method comprises the following steps: acquiring a first page access instruction, wherein the first page access instruction carries a first Uniform Resource Locator (URL); generating a first page identification value according to the first URL; storing first page information, wherein the first page information is generated according to a first URL, and the first page identification value and the first page information have a unique corresponding relation; if a second page access instruction is obtained and the second page identification value is consistent with the first page identification value, obtaining first page information according to the second page identification value, wherein the second page identification value is a page identification value corresponding to a second URL (uniform resource locator) carried in the second page access instruction; and displaying the first page according to the first page information.

Description

Page display method and related device
Technical Field
The present application relates to the field of internet technologies, and in particular, to a page display method and a related device.
Background
In recent years, with the rapid development of mobile internet technology, mobile terminals such as mobile phones and tablet computers have more and more functions, the types and the number of third-party application programs installed on the mobile terminals by users are increasing, and users often browse information, watch videos or shop through the application programs.
Typically, different page contents are presented to a user through different pages in an application, and the user can jump from an old page to a new page or from a new page back to an old page by interacting with the pages (e.g., clicking a list button).
At present, for an application program, whether jumping from an old page to a new page or jumping from a new page back to an old page, information of a page to be jumped is often required to be requested from a server, and then after the information returned by the server is obtained, the corresponding page is displayed by loading the information, so that steps of requesting information, loading information and the like are required to be executed for each page jump, and the efficiency of displaying the page by the application program is low.
Disclosure of Invention
The embodiment of the application provides a page display method and a related device, information corresponding to an opened page is stored, so that the page which is opened before can be matched in advance when a new page is generated, if matching is successful, the new page is generated based on the stored page information, and the information of the new page does not need to be acquired again, so that the page information acquisition efficiency is improved, and the page display speed is increased.
A first aspect of an embodiment of the present application provides a method for displaying a page, including:
acquiring a first page access instruction, wherein the first page access instruction carries a first Uniform Resource Locator (URL);
generating a first page identification value according to the first URL;
storing first page information, wherein the first page information is generated according to a first URL, and the first page identification value and the first page information have a unique corresponding relation;
if a second page access instruction is obtained and the second page identification value is consistent with the first page identification value, obtaining first page information according to the second page identification value, wherein the second page identification value is a page identification value corresponding to a second URL (uniform resource locator) carried in the second page access instruction;
and displaying the first page according to the first page information.
A second aspect of the embodiments of the present application provides a page display apparatus, including:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a first page access instruction, and the first page access instruction carries a first URL;
a generating unit configured to generate a first page identification value from the first URL;
the storage unit is used for storing first page information, the first page information is generated according to a first URL, and the first page identification value and the first page information have a unique corresponding relation;
the obtaining unit is further configured to obtain the first page information according to the second page identification value if the second page access instruction is obtained and the second page identification value is consistent with the first page identification value, where the second page identification value is a page identification value corresponding to a second URL carried in the second page access instruction;
and the display unit is used for displaying the first page according to the first page information.
In one possible design, in a first implementation of the second aspect of an embodiment of the present application,
and the storage unit is further used for storing the first page identification value in a page access track, and the page access track is used for indicating the accessed page.
In one possible design, in a first implementation manner of the second aspect of the embodiment of the present application, the apparatus further includes a determining unit;
the determining unit is used for determining a page identification value in the page access track according to a second page identification value if a second page access instruction is obtained, wherein the second page identification value is a page identification value corresponding to a second URL (uniform resource locator) carried in the second page access instruction;
and the obtaining unit is further used for obtaining the first page information according to the second page identification value if the second page identification value is consistent with the first page identification value stored in the first position of the page access track, wherein the first position is the last-but-one position in the array of the page access track.
In one possible design, in a first implementation of the second aspect of an embodiment of the present application,
the determining unit is further configured to determine, if a second page access instruction is obtained, a page identification value in the page access track according to the second page identification value, where the second page identification value is a page identification value corresponding to a second URL carried in the second page access instruction;
and the obtaining unit is further used for obtaining second page information according to the second page identification value if the second page identification value is consistent with the first page identification value stored in the second position of the page access track, wherein the second position is the last position in the array of the page access track.
In one possible design, in a first implementation of the second aspect of an embodiment of the present application,
the acquisition unit is further used for acquiring a third page access instruction, and the third page access instruction carries a third URL;
the determining unit is further used for determining a corresponding third page identification value according to the third URL;
the generating unit is further used for generating third page information according to a third URL if the array of the page access track does not have a page identification value matched with the third page identification value;
and the display unit is also used for displaying the third page according to the third page information.
In one possible design, in a first implementation manner of the second aspect of the embodiment of the present application, the apparatus further includes a deleting unit;
and the deleting unit is used for deleting the fourth page information if the number of the pages stored in the storage space is greater than the first preset value, wherein the fourth page information is the earliest page information stored in the storage space, and the storage space is used for storing the page information.
In one possible design, in a first implementation of the second aspect of an embodiment of the present application,
and the deleting unit is further configured to delete fourth page information if the storage amount occupied by the page information stored in the storage space is greater than a second preset value, where the fourth page information is the earliest stored page information in the storage space, and the storage space is a space for storing the page information.
A third aspect of the embodiments of the present application provides a terminal, including: a memory, a transceiver, a processor, and a bus system;
wherein, the memory is used for storing programs;
the processor is used for executing the program in the memory and comprises the following steps:
acquiring a first page access instruction, wherein the first page access instruction carries a first Uniform Resource Locator (URL);
generating a first page identification value according to the first URL;
storing first page information, wherein the first page information is generated according to a first URL, and the first page identification value and the first page information have a unique corresponding relation;
if a second page access instruction is obtained and the second page identification value is consistent with the first page identification value, obtaining first page information according to the second page identification value, wherein the second page identification value is a page identification value corresponding to a second URL (uniform resource locator) carried in the second page access instruction;
displaying a first page according to the first page information;
the bus system is used for connecting the memory and the processor so as to enable the memory and the processor to communicate.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium having stored therein instructions, which, when executed on a computer, cause the computer to perform the method of any of the above aspects.
A fifth aspect of embodiments of the present application provides a computer program product comprising instructions which, when run on a computer or processor, cause the computer or processor to perform the method of any of the above aspects.
According to the technical scheme, the embodiment of the application has the following advantages:
the embodiment of the application provides a page display method and a related device, information corresponding to an opened page is stored, so that the page which is opened before can be matched in advance when a new page is generated, if matching is successful, the new page is generated based on the stored page information, and the information of the new page does not need to be acquired again, so that the page information acquisition efficiency is improved, and the page display speed is increased.
Drawings
Fig. 1 is an exemplary diagram of page jumping provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of a page display system according to an embodiment of the present application
Fig. 3 is an exemplary diagram of a page display method provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of a page display method according to an embodiment of the present disclosure;
fig. 5 is an exemplary diagram of an implementation flow of a method for page display provided in an embodiment of the present application;
fig. 6 is a flowchart illustrating a process of determining a page operation according to an embodiment of the present application;
FIG. 7 is an exemplary diagram of a page change provided by an embodiment of the present application;
FIG. 8 is a schematic view of an embodiment of a page display device in the embodiment of the present application;
FIG. 9 is a schematic view of an embodiment of a page display device in the embodiment of the present application;
FIG. 10 is a schematic view of an embodiment of a page display device in the embodiment of the present application;
fig. 11 is a block diagram illustrating a partial structure of a mobile phone related to a terminal provided in an embodiment of the present application.
Detailed Description
The embodiment of the application provides a page display method and a related device, which are used for improving the efficiency of page information acquisition and the speed of page display.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "corresponding" and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that the page display method provided by the embodiment of the present application may be applied to a scenario in which a page is displayed in an application, and specifically, different page contents may be displayed to a user through different pages in an application, for example, for an application providing medical information, an a page of the application may display list contents viewable by the user, a B page of the application may display specific contents of an option in the list of the a page, and the user may jump to the B page by clicking a button of the option in the a page. As shown in fig. 1, fig. 1 is an exemplary diagram of page jump provided in the embodiment of the present application; the left image (a) in fig. 1 shows the content displayed on the page a, which includes some information list that the user can browse, and after the user clicks the "cold prevention" button in the left image (a), the user can jump to the page B in the right image (B) in fig. 1; the right diagram (B) in fig. 1 shows the content displayed on the page B, including the content of the specific article under the column "cold prevention".
In some cases, after the user jumps from the old page to the new page, the user may need to return from the new page to the old page, and as an example, in fig. 1, after the user jumps from the a page to the B page related to "preventing cold", in order to be able to continue browsing other information, the user may need to return from the B page to the a page, so as to jump from the a page to other pages.
At present, for applications on the market, whether jumping from an old page to a new page or jumping from a new page back to an old page, information of a page to be jumped needs to be requested from a server, and then after the information returned by the server is obtained, the information is loaded (i.e., compiled and executed) to realize the display of the page. That is to say, each time when the application program jumps to a page, the application program needs to obtain information from the server and load the information to obtain the page to be displayed.
In view of this, an embodiment of the present application provides a page display method, in which information corresponding to an opened page is stored, so that a previously opened page can be matched in advance when a new page is generated, and if matching is successful, the new page is generated based on the stored page information, and information of the new page does not need to be acquired again, so that efficiency of acquiring page information is improved, and speed of displaying a page is increased.
An embodiment of the present application provides a method for displaying a page, where the method is applied to a page display system shown in fig. 2, please refer to fig. 2, and fig. 2 is a schematic structural diagram of the page display system in the embodiment of the present application, where, as shown in fig. 2, a user interacts with a terminal, the terminal is connected with a server through a network, and an application program (e.g., an application program for browsing information, etc.) is deployed on the terminal.
Specifically, after a user triggers a page access instruction on a terminal, the terminal requests corresponding information from a server according to the page access instruction, and carries out loading and displaying of a page based on the information returned by the server; in addition, the terminal also generates a page identification value corresponding to a Uniform Resource Locator (URL) in the page access instruction, stores page information corresponding to the page identification value, and establishes a unique correspondence between the page identification value and the page information; after a new page access instruction is triggered on a user terminal, the terminal can determine whether a page identification value is matched with the new page access instruction, if so, the page to be accessed by the user is a page already accessed by the user, namely, the user needs to return to the page already accessed, at the moment, page information stored on the terminal can be directly obtained, and a corresponding page is displayed based on the page information, so that the steps of obtaining information corresponding to the page from a server and compiling execution information are avoided, and the page displaying efficiency of an application program is improved.
The terminal shown in fig. 2 is only a simple illustration, and in practical applications, the terminal includes, but is not limited to, a mobile phone, a tablet computer, a desktop computer, a notebook computer, a palm computer, and other terminal devices.
In order to describe the page display system provided in the embodiment of the present application, the method for displaying a page provided in the embodiment of the present application will be described below from the perspective of a terminal. Referring to fig. 3, fig. 3 is a diagram illustrating a page display method according to an embodiment of the present disclosure.
One embodiment of a page display method provided in the embodiments of the present application includes:
301. acquiring a first page access instruction, wherein the first page access instruction carries a first URL;
in this embodiment, when a user triggers a page access instruction through an application interface displayed on a terminal (for example, the user triggers the page access instruction through touching and clicking a button on the interface), the terminal may obtain the corresponding page access instruction, where the page access instruction generally carries a URL, that is, a network address of a page to be accessed, and the terminal may request corresponding information from a server based on the network address.
Because the server stores the information corresponding to the network address, the server returns the information corresponding to the network address to the terminal after receiving the request of the terminal. After acquiring the returned information, the terminal may load, i.e., compile and execute the information, thereby generating and displaying a corresponding page.
302. Generating a first page identification value according to the first URL;
303. storing first page information, wherein the first page information is generated according to a first URL, and the first page identification value and the first page information have a unique corresponding relation;
in this embodiment, after the terminal corresponds to the page access instruction and presents the corresponding page, a page identification value corresponding to the URL may be automatically generated based on the URL of the page, where the page identification value and the URL have a unique corresponding association relationship. In addition, the terminal may further use the page identification value as a key value (key) to generate data for storing the page information, that is, to implement storage of the current page information, and the page identification value and the page information stored in the terminal also have a unique corresponding association relationship. In this way, a page identification value corresponding to the URL can be obtained based on the URL, and page information corresponding thereto can be obtained based on the page identification value.
Specifically, the page identification value may be a unique value consisting of a plurality of digits, such as an 8-digit, 10-digit or 16-digit value, and its constituent elements may include, but are not limited to, numbers, letters, or symbols.
Specifically, in this embodiment, the automatic storage of the page information may be implemented by the cache component, for example, the cache component directly generates JS Object Notation (JSON) data for storing the current page information based on the current page. The JSON is a lightweight data exchange format, adopts a text format completely independent of a programming language to store and represent data, has a simple and clear hierarchical structure, is easy to read and write by people, and is also easy to analyze and generate by a machine.
In addition, the cache component can be packaged into the application program in the form of a software registry (npm package) by an application program developer in the development process, and the application program can automatically realize the storage of the page information in the running process by calling the cache component. The whole page can be cached through the cache component, cache codes corresponding to the page do not need to be independently written in the development process, and the workload of developers is reduced. In addition, the page information is stored through the cache component, so that the stored page information cannot be stored in a browser cookie (browser cache), other users cannot acquire corresponding page access information through browsing the information in the browser cookie, and the security of page access is improved.
The time for storing the page information may be a time when the terminal jumps to another page, that is, when the terminal leaves the current page, the page corresponding to the current page may be stored. By saving the page information corresponding to the page when the terminal leaves the current page, some state information of the application program when the application program leaves the page can be reserved. For example, when a user triggers a page access instruction by clicking a button on a page to jump to a new page, the color of the page button clicked by the user before the page jump may change, so that the button clicked by the user is presented to the user in a different color before the page jump, and the user can conveniently confirm whether the button is clicked by mistake. In this case, the page information is stored when the current page is left, so that the stored page information can be ensured to include the last state information of the page, for example, a page button clicked by a user before page jump in the stored page information is colored.
304. If a second page access instruction is obtained and the second page identification value is consistent with the first page identification value, obtaining first page information according to the second page identification value, wherein the second page identification value is a page identification value corresponding to a second URL (uniform resource locator) carried in the second page access instruction;
in this embodiment, in addition to possibly instructing the application to jump from an old page to a new page during the browsing of the page by the user, it is also possible to instruct the application to return from the new page to the old page. Similarly, when the user needs to instruct the application program to return to the old page from the new page, a page access instruction (an instruction to access the old page), that is, a page return instruction, is triggered, and the page access instruction also carries the URL corresponding to the old page. Since the old page is a page that the user has visited, a page identification value corresponding to the URL of the old page is generated on the terminal, and the terminal can find the page identification value corresponding to the URL. Therefore, if the second page identification value corresponding to the second page access instruction acquired by the terminal is the same as the first page identification value of the first page information stored in the terminal, the second page access instruction acquired by the terminal can be considered as a page return instruction, that is, the application program needs to return to the first page at present, and at this time, the first page information stored in advance can be directly acquired.
That is to say, when a user requests to access a page, it may be determined whether the page access instruction has a corresponding page identifier value according to the obtained page access instruction, if there is a corresponding page identifier value, it represents that the page is accessed, and may find corresponding stored page information according to the page identifier value, and if there is no corresponding page identifier value, it represents that the page is an unvisited page, so that the information of the page may be requested from a server, and correspondingly, the information of the page may be stored and the page identifier value corresponding thereto may be generated.
305. And displaying the first page according to the first page information.
In this embodiment, since the pre-stored page information is obtained, the page may be directly displayed according to the pre-stored page information, that is, the accessed first page is directly displayed. That is, when the user requests to return the accessed page, the information of the page may not be requested from the server, but the page information stored locally may be directly obtained, and the page may be generated based on the page information and finally presented. Is/are as follows
For ease of understanding, the page display method provided by the embodiment of the present application will be described in detail below with reference to fig. 4. Referring to fig. 4, fig. 4 is a schematic view of a page display method according to an embodiment of the present disclosure.
As shown in fig. 4, a diagram (a) in fig. 4 shows a page presented on the terminal at a time T1, on which information selectively referred to by the user is presented in the form of a list, the user can further refer to the information corresponding to any one of the buttons by clicking the button in the list, and in addition, when the user jumps to the next page by clicking "prevent cold", the "prevent cold" button at a time before the page jumps is displayed in a different color; fig. 4 (b) shows the page displayed on the terminal at time T2, i.e. the page that the user jumps to by clicking the "prevent cold" button in fig. (a) shows the corresponding article content under the "prevent cold" button; fig. 4 (c) shows the page displayed on the terminal at time T3, i.e., the page in fig. (b) to which the user jumps by clicking the "back" button, the content displayed on the page is the same as the content displayed on the page in fig. (a), and the "cold prevention" button displayed on the page is displayed in a different color, i.e., the content displayed on the page is the content displayed immediately before the page jump of fig. (a) to the page in fig. (b). Thus, when returning to the old page, the user can clearly know what button is clicked to enter the new page.
The page display method provided by the embodiment of the present application is described above from the perspective of page display, and the page display method provided by the embodiment of the present application is described in detail below from the technical implementation side with reference to fig. 5. Referring to fig. 5, fig. 5 is a flowchart illustrating an implementation flow of a page display method according to an embodiment of the present application.
The implementation flow of the page display method shown in fig. 5 specifically includes:
s1, obtaining a page access instruction, wherein the page access instruction carries a URL.
S2, requesting the related information of the page from the server by accessing the URL in the page access instruction;
s3, judging whether a component matched with the URL exists or not;
s4, if there is a component matching the URL, traversing the components in the terminal, rendering the page through a rendering function (render function) in the vue frame, and generating node vnode information (i.e., page information).
S5, if there is no component matching the URL, the server may be considered to be unable to provide information normally, or the server may not respond, or the terminal may have an error of unknown cause, and the process may jump to a designated fault-tolerant page (e.g., page 404).
S6, after generating the page information in step S4, the cache component automatically generates a page identification value corresponding to the URL, and uses the page identification value as a key value for storing the page information.
And S7, when the user triggers a return instruction by clicking a return button and the like, the terminal can acquire the instruction of returning to the previous page by the user.
The router (vue-router) of the S8, vue framework listens for the change of the route, and when the command of returning to the upper layer is acquired, the route is routed to the position of the page of the upper layer.
S9, judging whether the current routing position has a corresponding page identification value;
and S10, if the current routing position has the corresponding page identification value, the cached page information is taken out from the cache space through the cache component, so that the generation of the page view is realized based on the page information.
The routing is not a router in daily life, but the implementation principle is basically the same, and represents a mapping relationship between a URL and a corresponding processing program, after a user inputs a URL to be visited, the routing analyzes a path in the URL, then searches a corresponding preset function according to the mapping relationship in a mapping table, and returns a result to the user, thereby completing one operation. The front-end routing differs from the traditional routing in that it does not require a server to resolve, but rather is implemented through a hash function or history API provided by H5. When developing, the route is used for setting an access path and mapping the path with the corresponding component, and when a user accesses the corresponding path, the route realizes switching between different components according to the mapping relation, thereby realizing rendering of different pages.
Optionally, on the basis of the first embodiment corresponding to fig. 3, in an optional embodiment of the page display method provided in this embodiment of the application, after generating the first page identification value according to the first URL, the method further includes:
and storing the first page identification value in a page access track, wherein the page access track is used for indicating the accessed page.
In the embodiment of the present application, after generating the page identification value, the page identification value may be stored in a page access track, where the page access track refers to a track of a user accessing a page and is mainly used for indicating a page that the user has accessed, for example, the page access track may be a browser cookie or a browsing track in the browser cookie.
The page identification value is stored in the page access track, so that the URL can be saved in the page access track instead of being saved, namely, the trace of the URL is not left in the page access track. In addition, when the page information is cached through the cache component, the terminal can determine whether the page identification value corresponding to the page access instruction exists in the page access track according to the page access instruction, and only after the page access instruction is determined to have the corresponding page identification value, the cache component is called to obtain the corresponding page information, so that frequent calling of the cache component is avoided.
It can be understood that, for an application, the user can perform the following three operations on the page of the application: the method comprises the steps of advancing a page, refreshing the page and returning the page, wherein the advancing page refers to the situation that a user needs to jump from an old page to a new page, and the new page is a page which is not visited by the user; refreshing the page means that a user needs to refresh the current page to obtain the latest information of the current page; the return page refers to the page that the user needs to return from the current page to the last page visited. For ease of understanding, the three operations described above will be described in detail below with reference to specific embodiments.
Optionally, on the basis of the first embodiment corresponding to fig. 3, in an optional embodiment of the page display method provided in this embodiment of the present application, if the second page access instruction is obtained and the second page identification value is consistent with the first page identification value, obtaining the first page information according to the second page identification value includes:
if a second page access instruction is obtained, determining a page identification value in a page access track according to a second page identification value, wherein the second page identification value is a page identification value corresponding to a second URL (uniform resource locator) carried in the second page access instruction;
and if the second page identification value is consistent with the first page identification value stored in the first position of the page access track, acquiring the first page information according to the second page identification value, wherein the first position is the last position in the array of the page access track.
In this embodiment, when the user triggers the return instruction by clicking a "return" button or other operations, the terminal may obtain an instruction (i.e., a second page access instruction) for the user to return to the previous page, and the terminal may determine, according to a second URL carried in the second page access instruction, a second page identification value corresponding to the second URL. And then judging whether the second page identification value is the same as the page identification value stored in the last-but-one position in the array of the page access track or not based on the second page identification value, and if so, acquiring page information corresponding to the page identification value.
That is, in this embodiment, the manner of determining whether the operation performed by the user on the page of the application is a return operation is: and judging whether the page identification value corresponding to the current page access instruction exists at the penultimate position in the array of the page access track, if so, representing that the operation of the user on the page of the application program is a return operation, namely, taking out the page information stored in advance, and generating a corresponding page based on the page information.
It can be understood that, after the terminal generates the page information, a page identifier value corresponding to the current page is generated, and the page identifier value is stored in the page access track, that is, in an array of the page access track, a page identifier value stored at a position from the last to the last is a page identifier value corresponding to a currently opened page, and a page identifier value stored at a position from the last to the last is a page identifier value of a page on the current page, so that if a page identifier value corresponding to a page access instruction acquired by the terminal is the same as a page identifier value at a position from the last to the last in the array of the page access track, it may be considered that the last page needs to be returned.
Optionally, on the basis of the first embodiment corresponding to fig. 3, in an optional embodiment of the page displaying method provided in this embodiment of the present application, after the first page identifier value is stored in the page access track, the method further includes:
if a second page access instruction is obtained, determining a page identification value in a page access track according to a second page identification value, wherein the second page identification value is a page identification value corresponding to a second URL (uniform resource locator) carried in the second page access instruction;
and if the second page identification value is consistent with the first page identification value stored in the second position of the page access track, acquiring second page information according to the second page identification value, wherein the second position is the last position in the array of the page access track.
In this embodiment, when the user triggers a page refresh command by clicking a "refresh" button or other operations, the terminal may obtain a command for refreshing the current page by the user, and the terminal may determine a second page identification value corresponding to a second URL according to the second URL carried in the command. Then, based on the second page identification value, it is determined whether the second page identification value is the same as the page identification value stored in the last position in the array of the page access track, and if so, the operation of the current user can be considered as a page refreshing operation.
It can be understood that, after the terminal generates the page information, a page identifier value corresponding to the current page is generated, and the page identifier value is stored in the page access track, that is, in an array of the page access track, a page identifier value stored at a position that is the last to be the page identifier value corresponding to the currently opened page, so that if the page identifier value corresponding to the page access instruction acquired by the terminal is the same as the page identifier value at the position that is the last to be in the array of the page access track, it may be considered that the current page needs to be refreshed.
Optionally, on the basis of the first embodiment corresponding to fig. 3, in an optional embodiment of the page displaying method provided in the embodiment of the present application, before storing the first page information, the method further includes:
acquiring a third page access instruction, wherein the third page access instruction carries a third URL;
determining a corresponding third page identification value according to the third URL;
if the array of the page access track does not have the page identification value matched with the third page identification value, generating third page information according to a third URL;
and displaying the third page according to the third page information.
In this embodiment, after the terminal determines to obtain the third page identification value according to the third URL in the third page access instruction, the terminal may search in the array of the page access trajectory according to the third page identification value, and if the page identification value that is the same as the third page identification value does not exist in the array of the page access trajectory, it represents that the page corresponding to the third URL is not accessed by the user, so that the terminal may request the server for the information of the response according to the third page access instruction and load the corresponding component to implement compiling and executing the information returned by the server, and generate a new page (i.e., a refreshed page), that is, respond to an operation of the user advancing the page.
In summary, it can be understood that, when the operation of the user on the page of the application program is judged, the judgment can be performed according to the page identification value determined by the current page access instruction, and when the page identification value exists at the last position in the page access track array, the page is considered to be refreshed; when the page identification value exists in the penultimate position in the page access track array, the page is considered to be returned; when the page identification value does not exist in the penultimate position in the page access track array, the page is considered to be a forward page. The judgment of the three operations can be realized by searching whether the page identification value matched with the current page identification value exists in the page access track book, so that the operations of refreshing the page, returning the page or advancing the page and the like can be quickly executed.
For ease of understanding, the above-described determination flow will be described in detail below with reference to fig. 6. Referring to fig. 6, fig. 6 is a flowchart illustrating a process for determining a page operation according to an embodiment of the present disclosure.
601. Acquiring a page access instruction, wherein the page access instruction carries a URL (uniform resource locator);
602. determining a corresponding page identification value according to a URL in a page access instruction;
603. judging the position of the page identification value in a page access track;
604. if the page identification value is at the last position of the array in the page access track, the operation of the user on the page can be considered as refreshing the page, and step 605 is executed;
605. refreshing the page, namely requesting corresponding information from the server according to the URL and loading a corresponding component to realize compiling execution of the information returned by the server and generate a new page (namely the refreshed page);
606. if the page identification value is at the penultimate position of the array in the page access track, the operation of the user on the page can be considered as returning to the page, and step 607 is executed;
607. and returning the page, namely taking out the page information stored in advance, and generating the corresponding page based on the page information.
608. If the page identification value does not exist in the page access track, the operation of the user on the page can be considered as a forward page, and step 609 is executed;
609. and the forward page is to request corresponding information from the server according to the URL and load a corresponding component to implement compiling and executing the information returned by the server, so as to generate a new page (i.e. an unvisited page).
Specifically, referring to fig. 7, fig. 7 is an exemplary diagram of a page change provided by the embodiment of the present application.
As shown in fig. 7, the page in fig. 7 (a) represents the currently displayed page, which includes a plurality of options "overview", "symptom", "cause", "hospitalization", "treatment", and "daily" under the "aids" column; fig. 7 (b) shows a page obtained after the user performs a page forward operation (i.e., the user performs page forward operation by clicking the "summary" option in (a) the page), (b) the page includes information related to the "summary" option; fig. 7 shows a page (c) obtained after a page returning operation is performed by a user, where the page (c) includes two lists, namely a "recent hot spot" list and a "hot content list," and each list has a different column, and a "aids" column in the page (b) is one of the columns in the page (a); (d) the page represents the page after the refresh operation is performed on the (a) page, the general content of the page is similar to that of the (a) page, except that the option of 'prevention' is added in the (d) page, namely, the (d) page is obtained after the (a) page is updated.
Optionally, on the basis of the first embodiment corresponding to fig. 3, in an optional embodiment of the page display method provided in this embodiment of the application, after generating the third page information according to the third URL, the method further includes:
and if the number of the pages stored in the storage space is greater than the first preset value, deleting fourth page information, wherein the fourth page information is the page information stored earliest in the storage space, and the storage space is used for storing the page information.
It can be understood that, in this embodiment, each time the terminal generates one page, the cache component stores the page information corresponding to the page, so that when too many pages are browsed by the user, the cache component stores a large amount of page information, that is, the cached page information occupies a large storage amount of the terminal, and thus the performance of the terminal may be affected.
Therefore, in this embodiment, after a new page is generated, it may be checked whether the number of pages stored in the storage space for storing the page information is greater than a first preset value, and if the number of pages stored in the storage space is greater than the first preset value, the oldest stored page information in the storage space is deleted. The first preset value may be a preset value, for example, 10 or 20, and the value may also be adjusted by the user at any time. By setting the first preset value, only the page information corresponding to a certain number of pages can be stored in the storage space at most, that is, the stored page information can be controlled within a certain range, and the excessive storage capacity of the terminal cannot be occupied.
Optionally, on the basis of the first embodiment corresponding to fig. 3, in an optional embodiment of the page display method provided in this embodiment of the application, after generating the third page information according to the third URL, the method further includes:
and if the storage space occupied by the page information stored in the storage space is larger than the second preset value, deleting the fourth page information, wherein the fourth page information is the page information stored earliest in the storage space, and the storage space is the space for storing the page information.
In this embodiment, after a new page is generated, it may be checked whether the storage amount occupied by the page information stored in the storage space for storing the page information is greater than a second preset value, and if the storage amount occupied by the page information stored in the storage space is greater than the second preset value, the oldest stored page information in the storage space is deleted. The second preset value may be a preset value, such as 10MByte (megabyte) or 20MByte, and the value may be adjusted by the user at any time. By setting the second preset value, only a certain amount of page information can be stored in the storage space at most, that is, the stored page information can be controlled within a certain range, and the excessive storage capacity of the terminal cannot be occupied.
Referring to fig. 8, fig. 8 is a schematic view of an embodiment of a page display apparatus in an embodiment of the present application, where the page display apparatus 800 in the embodiment of the present application includes:
an obtaining unit 801, configured to obtain a first page access instruction, where the first page access instruction carries a first URL;
a generating unit 802 for generating a first page identification value according to a first URL;
a storage unit 803, configured to store first page information, where the first page information is generated according to a first URL, and the first page identifier value and the first page information have a unique correspondence relationship;
the obtaining unit 801 is further configured to, if a second page access instruction is obtained and the second page identification value is consistent with the first page identification value, obtain the first page information according to the second page identification value, where the second page identification value is a page identification value corresponding to a second URL carried in the second page access instruction;
the display unit 804 is configured to display the first page according to the first page information.
Optionally, on the basis of the embodiment corresponding to fig. 8, in another embodiment of the apparatus 800 for page display provided in the embodiment of the present application,
the storage unit 803 is further configured to store the first page identifier value in a page access track, where the page access track is used to indicate an accessed page.
Optionally, on the basis of the embodiment corresponding to fig. 8, please refer to fig. 9, where fig. 9 is a schematic view of an embodiment of a page displaying apparatus in the embodiment of the present application, and in another embodiment of a page displaying apparatus 800 provided in the embodiment of the present application, a determining unit 805 is further included;
a determining unit 805, configured to determine, if a second page access instruction is obtained, a page identifier value in a page access track according to a second page identifier value, where the second page identifier value is a page identifier value corresponding to a second URL carried in the second page access instruction;
the obtaining unit 801 is further configured to obtain the first page information according to the second page identifier value if the second page identifier value is consistent with the first page identifier value stored in the first position in the page access track, where the first position is the penultimate position in the array of the page access track.
Optionally, on the basis of the embodiment corresponding to fig. 8, in another embodiment of the apparatus 800 for page display provided in the embodiment of the present application,
the determining unit 805 is further configured to determine, if a second page access instruction is obtained, a page identifier value in the page access track according to a second page identifier value, where the second page identifier value is a page identifier value corresponding to a second URL carried in the second page access instruction;
the obtaining unit 801 is further configured to obtain second page information according to the second page identification value if the second page identification value is consistent with the first page identification value stored in the second position of the page access track, where the second position is a position that is last in the array of the page access track.
Optionally, on the basis of the embodiment corresponding to fig. 8, in another embodiment of the apparatus 800 for page display provided in the embodiment of the present application,
the obtaining unit 801 is further configured to obtain a third page access instruction, where the third page access instruction carries a third URL;
the determining unit 805 is further configured to determine a corresponding third page identification value according to the third URL;
the generating unit 802 is further configured to generate third page information according to a third URL if the array of the page access trajectory does not have a page identification value that matches the third page identification value;
the display unit 804 is further configured to display a third page according to the third page information.
Optionally, on the basis of the embodiment corresponding to fig. 8, please refer to fig. 10, where fig. 10 is a schematic view of an embodiment of a page displaying apparatus in the embodiment of the present application, and another embodiment of the page displaying apparatus 800 provided in the embodiment of the present application further includes a deleting unit 806;
a deleting unit 806, configured to delete fourth page information if the number of pages stored in the storage space is greater than a first preset value, where the fourth page information is page information stored earliest in the storage space, and the storage space is a space for storing the page information.
Optionally, on the basis of the embodiment corresponding to fig. 8, in another embodiment of the apparatus 800 for page display provided in the embodiment of the present application,
the deleting unit 806 is further configured to delete fourth page information if the storage amount occupied by the page information stored in the storage space is greater than a second preset value, where the fourth page information is the earliest stored page information in the storage space, and the storage space is a space for storing the page information.
As shown in fig. 11, for convenience of description, only the portions related to the embodiments of the present application are shown, and details of the specific technology are not disclosed, please refer to the method portion of the embodiments of the present application. The terminal may be any terminal device including a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), a point of sale (POS), a vehicle-mounted computer, and the like, taking the terminal as the mobile phone as an example:
fig. 11 is a block diagram illustrating a partial structure of a mobile phone related to a terminal provided in an embodiment of the present application. Referring to fig. 11, the cellular phone includes: radio Frequency (RF) circuitry 1110, memory 1120, input unit 1130, display unit 1140, sensors 1150, audio circuitry 1160, wireless fidelity (WiFi) module 1170, processor 1180, and power supply 1190. Those skilled in the art will appreciate that the handset configuration shown in fig. 11 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 11:
RF circuit 1110 may be used for receiving and transmitting signals during a message transmission or call, and in particular, for receiving downlink messages from a base station and then processing the received downlink messages to processor 1180; in addition, the data for designing uplink is transmitted to the base station. In general, RF circuit 1110 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 1110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to global system for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), etc.
The memory 1120 may be used to store software programs and modules, and the processor 1180 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 1120. The memory 1120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 1120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 1130 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 1130 may include a touch panel 1131 and other input devices 1132. Touch panel 1131, also referred to as a touch screen, can collect touch operations of a user on or near the touch panel 1131 (for example, operations of the user on or near touch panel 1131 by using any suitable object or accessory such as a finger or a stylus pen), and drive corresponding connection devices according to a preset program. Alternatively, the touch panel 1131 may include two parts, namely, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1180, and can receive and execute commands sent by the processor 1180. In addition, the touch panel 1131 can be implemented by using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 1130 may include other input devices 1132 in addition to the touch panel 1131. In particular, other input devices 1132 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 1140 may be used to display information input by the user or information provided to the user and various menus of the cellular phone. The display unit 1140 may include a display panel 1141, and optionally, the display panel 1141 may be configured in the form of a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), or the like. Further, the touch panel 1131 can cover the display panel 1141, and when the touch panel 1131 detects a touch operation on or near the touch panel, the touch panel is transmitted to the processor 1180 to determine the type of the touch event, and then the processor 1180 provides a corresponding visual output on the display panel 1141 according to the type of the touch event. Although in fig. 11, the touch panel 1131 and the display panel 1141 are two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 1131 and the display panel 1141 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 1150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1141 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 1141 and/or the backlight when the mobile phone moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 1160, speakers 1161, and microphone 1162 may provide an audio interface between a user and a cell phone. The audio circuit 1160 may transmit the electrical signal converted from the received audio data to the speaker 1161, and convert the electrical signal into a sound signal for output by the speaker 1161; on the other hand, the microphone 1162 converts the collected sound signals into electrical signals, which are received by the audio circuit 1160 and converted into audio data, which are then processed by the audio data output processor 1180, and then transmitted to, for example, another cellular phone via the RF circuit 1110, or output to the memory 1120 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the cell phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 1170, and provides wireless broadband internet access for the user. Although fig. 11 shows the WiFi module 1170, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 1180 is a control center of the mobile phone, and is connected to various parts of the whole mobile phone through various interfaces and lines, and executes various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 1120 and calling data stored in the memory 1120, thereby performing overall monitoring of the mobile phone. Optionally, processor 1180 may include one or more processing units; optionally, the processor 1180 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like, and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated within processor 1180.
The mobile phone further includes a power supply 1190 (e.g., a battery) for supplying power to each component, and optionally, the power supply may be logically connected to the processor 1180 through a power management system, so that functions of managing charging, discharging, power consumption management, and the like are implemented through the power management system.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In the embodiment of the present application, the processor 1180 included in the terminal further has the following functions:
acquiring a first page access instruction, wherein the first page access instruction carries a first Uniform Resource Locator (URL);
generating a first page identification value according to the first URL;
storing first page information, wherein the first page information is generated according to a first URL, and the first page identification value and the first page information have a unique corresponding relation;
if a second page access instruction is obtained and the second page identification value is consistent with the first page identification value, obtaining first page information according to the second page identification value, wherein the second page identification value is a page identification value corresponding to a second URL (uniform resource locator) carried in the second page access instruction;
and displaying the first page according to the first page information.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A method for displaying a page, comprising:
acquiring a first page access instruction, wherein the first page access instruction carries a first Uniform Resource Locator (URL);
generating a first page identification value according to the first URL;
storing first page information, wherein the first page information is generated according to the first URL, and the first page identification value and the first page information have a unique corresponding relation;
if a second page access instruction is obtained and a second page identification value is consistent with the first page identification value, obtaining the first page information according to the second page identification value, wherein the second page identification value is a page identification value corresponding to a second URL (uniform resource locator) carried in the second page access instruction;
and displaying the first page according to the first page information.
2. The method of page presentation in accordance with claim 1, wherein after said generating a first page identification value from said first URL, said method further comprises:
and storing the first page identification value in a page access track, wherein the page access track is used for indicating the accessed page.
3. The method for displaying a page according to claim 2, wherein if a second page access instruction is obtained and a second page identification value is consistent with the first page identification value, obtaining the first page information according to the second page identification value includes:
if the second page access instruction is obtained, determining a page identification value in the page access track according to the second page identification value, wherein the second page identification value is a page identification value corresponding to a second URL (uniform resource locator) carried in the second page access instruction;
and if the second page identification value is consistent with the first page identification value stored in the first position of the page access track, acquiring the first page information according to the second page identification value, wherein the first position is the last-but-one position in the array of the page access track.
4. The method of page presentation in accordance with claim 2, wherein after said storing said first page identification value in a page access track, said method further comprises:
if the second page access instruction is obtained, determining a page identification value in the page access track according to the second page identification value, wherein the second page identification value is a page identification value corresponding to a second URL (uniform resource locator) carried in the second page access instruction;
and if the second page identification value is consistent with the first page identification value stored in the second position of the page access track, acquiring the second page information according to the second page identification value, wherein the second position is the last position in the array of the page access track.
5. The method of page presentation of claim 2, wherein prior to said storing first page information, said method further comprises:
acquiring a third page access instruction, wherein the third page access instruction carries a third URL;
determining a corresponding third page identification value according to the third URL;
if the array of the page access track does not have the page identification value matched with the third page identification value, generating third page information according to the third URL;
and displaying a third page according to the third page information.
6. The method of page presentation in accordance with claim 5, wherein after said generating third page information in accordance with said third URL, said method further comprises:
and deleting fourth page information if the number of the pages stored in the storage space is greater than a first preset value, wherein the fourth page information is the page information stored earliest in the storage space, and the storage space is used for storing the page information.
7. The method of page presentation in accordance with claim 5, wherein after said generating third page information in accordance with said third URL, said method further comprises:
and if the storage space occupied by the page information stored in the storage space is larger than a second preset value, deleting fourth page information, wherein the fourth page information is the page information stored earliest in the storage space, and the storage space is a space for storing the page information.
8. An apparatus for page display, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a first page access instruction, and the first page access instruction carries a first Uniform Resource Locator (URL);
a generating unit configured to generate a first page identification value from the first URL;
the storage unit is used for storing first page information, the first page information is generated according to the first URL, and the first page identification value and the first page information have a unique corresponding relation;
the obtaining unit is further configured to obtain the first page information according to a second page identification value if a second page access instruction is obtained and the second page identification value is consistent with the first page identification value, where the second page identification value is a page identification value corresponding to a second URL carried in the second page access instruction;
and the display unit is used for displaying the first page according to the first page information.
9. A terminal, comprising: a memory, a transceiver, a processor, and a bus system;
wherein the memory is used for storing programs;
the processor is used for executing the program in the memory and comprises the following steps:
acquiring a first page access instruction, wherein the first page access instruction carries a first Uniform Resource Locator (URL);
generating a first page identification value according to the first URL;
storing first page information, wherein the first page information is generated according to the first URL, and the first page identification value and the first page information have a unique corresponding relation;
if a second page access instruction is obtained and a second page identification value is consistent with the first page identification value, obtaining the first page information according to the second page identification value, wherein the second page identification value is a page identification value corresponding to a second URL (uniform resource locator) carried in the second page access instruction;
displaying a first page according to the first page information;
the bus system is used for connecting the memory and the processor so as to enable the memory and the processor to communicate.
10. A computer-readable storage medium comprising instructions that, when executed on a computer, cause the computer to perform the method of any one of claims 1 to 7.
CN201910624030.2A 2019-07-10 2019-07-10 Page display method and related device Active CN112214696B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910624030.2A CN112214696B (en) 2019-07-10 2019-07-10 Page display method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910624030.2A CN112214696B (en) 2019-07-10 2019-07-10 Page display method and related device

Publications (2)

Publication Number Publication Date
CN112214696A true CN112214696A (en) 2021-01-12
CN112214696B CN112214696B (en) 2023-10-20

Family

ID=74047680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910624030.2A Active CN112214696B (en) 2019-07-10 2019-07-10 Page display method and related device

Country Status (1)

Country Link
CN (1) CN112214696B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102708192A (en) * 2012-05-15 2012-10-03 华为技术有限公司 Method, system and device for sharing documents
CN102902805A (en) * 2012-10-15 2013-01-30 东软集团股份有限公司 Page access method and device
CN106055660A (en) * 2016-06-01 2016-10-26 努比亚技术有限公司 Mobile terminal page access method, mobile terminal page access device and mobile terminal
CN106886570A (en) * 2017-01-16 2017-06-23 网宿科技股份有限公司 page processing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102708192A (en) * 2012-05-15 2012-10-03 华为技术有限公司 Method, system and device for sharing documents
CN102902805A (en) * 2012-10-15 2013-01-30 东软集团股份有限公司 Page access method and device
CN106055660A (en) * 2016-06-01 2016-10-26 努比亚技术有限公司 Mobile terminal page access method, mobile terminal page access device and mobile terminal
CN106886570A (en) * 2017-01-16 2017-06-23 网宿科技股份有限公司 page processing method and device

Also Published As

Publication number Publication date
CN112214696B (en) 2023-10-20

Similar Documents

Publication Publication Date Title
US11237724B2 (en) Mobile terminal and method for split screen control thereof, and computer readable storage medium
US10528012B2 (en) Method and device for sending communication message
CN107329985B (en) Page collection method and device and mobile terminal
WO2014206276A1 (en) Domain name resolution method, domain name server, and domain name access method, system and terminal
CN108156508B (en) Barrage information processing method and device, mobile terminal, server and system
CN111580815B (en) Page element editing method and related equipment
US10506292B2 (en) Video player calling method, apparatus, and storage medium
CN110569078B (en) Method and device for preloading webpage-level program
CN108241703B (en) Webpage data transmission method and device
JP6068660B2 (en) Character selection method, character selection device, terminal device, program, and recording medium
CN111316618B (en) Network page storage method and terminal
JP7062059B2 (en) Application processing methods for terminal devices, and terminal devices
US9921735B2 (en) Apparatuses and methods for inputting a uniform resource locator
WO2015000430A1 (en) Intelligent word selection method and device
CN104898936A (en) Page turning method and mobile device
US20160308879A1 (en) Application-Based Service Providing Method, Apparatus, and System
WO2015096660A1 (en) Methods and devices for displaying a webpage
CN104965831A (en) Method, server, terminal and system for correcting website addresses
CN103399706A (en) Page interaction method, device and terminal
CN103383701A (en) Information retrieving method, device and terminal
CN106230919B (en) File uploading method and device
US20130205260A1 (en) Method and apparatus for managing an application in a mobile electronic device
CN112214696B (en) Page display method and related device
CN109240986B (en) Log processing method and device and storage medium
CN109614174B (en) Display method, mobile terminal and graphical user interface

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