CN106021549B - Web application program page control method and device and terminal equipment - Google Patents

Web application program page control method and device and terminal equipment Download PDF

Info

Publication number
CN106021549B
CN106021549B CN201610367063.XA CN201610367063A CN106021549B CN 106021549 B CN106021549 B CN 106021549B CN 201610367063 A CN201610367063 A CN 201610367063A CN 106021549 B CN106021549 B CN 106021549B
Authority
CN
China
Prior art keywords
page
identifier
current
target
target historical
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
CN201610367063.XA
Other languages
Chinese (zh)
Other versions
CN106021549A (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.)
Qingdao Hisense Media Network Technology Co Ltd
Original Assignee
Qingdao Hisense Media Network Technology 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 Qingdao Hisense Media Network Technology Co Ltd filed Critical Qingdao Hisense Media Network Technology Co Ltd
Priority to CN201610367063.XA priority Critical patent/CN106021549B/en
Publication of CN106021549A publication Critical patent/CN106021549A/en
Application granted granted Critical
Publication of CN106021549B publication Critical patent/CN106021549B/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
    • 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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Abstract

The embodiment of the invention provides a method, a device and a terminal device for controlling a web application program page, wherein the method comprises the following steps: after a return instruction input by a user on a current page of a web application program is obtained, determining an identifier of a target historical page corresponding to the current page, wherein the identifier of the target historical page is any page identifier which is different from the identifier of the current page in an application stack of the web application program; and acquiring page information of the target historical page according to the identifier of the target historical page, and displaying the target historical page according to the page information of the target historical page. For improving the efficiency of presenting history pages to a user.

Description

Web application program page control method and device and terminal equipment
Technical Field
The embodiment of the invention relates to the technical field of internet, in particular to a method and a device for controlling a web application page and a terminal device.
Background
With the continuous development of internet technology, the use of web applications is more and more widespread, and the web applications are applications that can be accessed through a browser.
In the prior art, in the process that a user accesses a web application program through a browser, a terminal device generally manages historical pages browsed by the user by using an application stack, and when the user opens a new page, the terminal device sequentially puts identifiers of the pages opened by the user into the application stack according to the sequence of the pages opened by the user, so that the identifier of the current page accessed by the user is located at the top of the stack, and the user can also input a return instruction to check the accessed historical pages, specifically: after the terminal device receives a return instruction input by a user on a current page, the terminal device performs stack popping processing on an identifier of the current page in an application stack, so that a page identifier before the current page is located at the stack top, displays a page corresponding to the page identifier currently located at the stack top to the user, and when the user needs to check an Nth page browsed before the current page, the user needs to input the return instruction for N times in sequence.
However, in the prior art, when a history page that a user needs to access is provided, a terminal device may only sequentially present each history page to the user according to an identifier of each history page in an application stack, and when a plurality of pages exist between the history page that the user needs to view and a current page, the terminal device may present the history page that the user needs to access only after the terminal device sequentially presents the plurality of pages to the user, which results in low efficiency of presenting the history page to the user.
Disclosure of Invention
The embodiment of the invention provides a page control method and device of a web application program and terminal equipment, which are used for improving the efficiency of displaying historical pages to a user.
In a first aspect, an embodiment of the present invention provides a method for controlling a page of a web application, including:
after a return instruction input by a user on a current page of a web application program is obtained, determining an identifier of a target historical page corresponding to the current page, wherein the identifier of the target historical page is any page identifier which is different from the identifier of the current page in an application stack of the web application program;
and acquiring the page information of the target historical page according to the identifier of the target historical page, and displaying the target historical page according to the page information of the target historical page.
In a possible implementation manner, the determining an identifier of a target history page corresponding to the current page includes:
judging whether the current page corresponds to a self-defined return page or not;
if yes, determining the identifier of the self-defined return page as the identifier of the target historical page;
if not, determining the page identifier adjacent to the identifier of the current page in the application stack as the identifier of the target historical page.
In another possible implementation manner, the determining the identifier of the target history page corresponding to the current page includes:
acquiring all historical page identifiers to be selected in the application stack except the identifier of the current page;
displaying the identification of each history page to be selected on the current page;
receiving the selection operation of the user on the identifier of the history page to be selected in the current page;
and determining the identifier of the history page to be selected by the user as the identifier of the target history page.
In another possible implementation manner, after determining the identifier of the target history page corresponding to the current page, the method further includes:
acquiring a page identifier to be popped from the application stack, wherein the page identifier to be popped comprises the identifier of the current page and a page identifier between the identifier of the current page and the identifier of the target historical page;
and in the application stack, performing pop operation on the page identifier to be popped.
In another possible implementation manner, after the pop operation is performed on the to-be-popped page identifier, the method further includes:
judging whether the application stack is empty or not;
and if so, exiting the web application program.
In another possible implementation manner, the obtaining page information of the target history page according to the identifier of the target history page includes:
and acquiring the page information of the target historical page in a cache region corresponding to the web application program according to the identifier of the target historical page.
In a second aspect, an embodiment of the present invention provides a page control apparatus for a web application, including:
the determining module is used for determining an identifier of a target historical page corresponding to a current page after a return instruction input by a user on the current page of a web application program is obtained, wherein the identifier of the target historical page is any page identifier which is different from the identifier of the current page in an application stack of the web application program;
the first acquisition module is used for acquiring the page information of the target historical page according to the identifier of the target historical page;
and the display module is used for displaying the target history page according to the page information of the target history page.
In a possible implementation, the determining module is specifically configured to:
judging whether the current page corresponds to a self-defined return page or not;
if yes, determining the identifier of the self-defined return page as the identifier of the target historical page;
if not, determining the page identifier adjacent to the identifier of the current page in the application stack as the identifier of the target historical page.
In another possible implementation manner, the determining module is specifically configured to:
acquiring all historical page identifiers to be selected in the application stack except the identifier of the current page;
displaying the identification of each history page to be selected on the current page;
receiving the selection operation of the user on the identifier of the history page to be selected in the current page;
and determining the identifier of the history page to be selected by the user as the identifier of the target history page.
In another possible implementation, the apparatus further includes a second obtaining module and a stack operation module, wherein,
the second obtaining module is configured to, after the determining module determines the identifier of the target history page corresponding to the current page, obtain an identifier of a page to be popped from the application stack, where the identifier of the page to be popped includes the identifier of the current page and a page identifier located between the identifier of the current page and the identifier of the target history page;
the stack operation module is used for performing stack popping operation on the page identifier to be popped in the application stack.
In another possible embodiment, the apparatus further comprises a determining module and an exiting module, wherein,
the judging module is used for judging whether the application stack is empty or not after the stack operation module performs the stack pulling operation on the page identifier to be pulled;
and the quitting module is used for quitting the web application program when the judging module judges whether the application stack is empty.
In another possible implementation manner, the first obtaining module is specifically configured to:
and acquiring the page information of the target historical page in a cache region corresponding to the web application program according to the identifier of the target historical page.
In a third aspect, an embodiment of the present invention provides a terminal device, where the terminal device includes the page control apparatus for a web application according to any one of the second aspects.
The embodiment of the invention provides a method and a device for controlling a web application page and terminal equipment, after the page control device obtains a return instruction input by a user on the current page of the browser, the identifier of a target historical page corresponding to the current page is obtained, the identification of the target history page can be any page identification which is different from the identification of the current page in the application stack of the browser, and the target history page is directly displayed according to the page information of the target history page, in the process, the page control device does not need to sequentially display each historical page to the user according to the sequence of the identifier of each historical page in the application stack, the page control device can directly acquire the target page identifier corresponding to the current page, and the target page is displayed to the user according to the page information of the target page, so that the efficiency of displaying the historical page to the user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flowchart illustrating a method for controlling a web page of a web application according to the present invention;
FIG. 2 is a diagram illustrating a first stack structure according to the present invention;
FIG. 3 is a first flowchart illustrating a method for determining an identifier of a target history page according to the present invention;
FIG. 4 is a diagram of a second stack structure provided by the present invention;
FIG. 5 is a flowchart illustrating a second method for determining an identifier of a target history page according to the present invention;
FIG. 6 is a schematic diagram of a terminal interface provided by the present invention;
FIG. 7 is a first schematic structural diagram of a page control apparatus of a web application according to the present invention;
fig. 8 is a schematic structural diagram of a second structure of the page control device of the web application provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the embodiment of the invention, a user can access a web application program in terminal equipment through a browser, the terminal equipment can be equipment such as a computer, a mobile phone and the like, a page control device (hereinafter referred to as a page control device for short) of the web application program is arranged in the terminal equipment, and when the user needs to return to a target historical page from a current page of the web application program, the page control device can acquire an identifier of the target historical page corresponding to the current page and directly return to the target historical page from the current page, so that the efficiency of displaying the historical page to the user is improved. The technical solution of the present application will be described in detail below with reference to specific examples.
It should be noted that the following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 1 is a schematic flow chart of a method for controlling a page of a web application according to the present invention, where an execution subject of the method is a page control device, and referring to fig. 1, the method may include:
s101, after a return instruction input on a current page of a web application program by a user is obtained, determining an identifier of a target historical page corresponding to the current page, wherein the identifier of the target historical page is any page identifier which is different from the identifier of the current page in an application stack of the web application program;
s102, acquiring page information of the target historical page according to the identification of the target historical page, and displaying the target historical page according to the page information of the target historical page.
In the embodiment of the invention, the web application program is composed of a plurality of pages, a user can access each page of the web application program through a browser, the web application program is provided with an application stack corresponding to the web application program, the application stack is empty initially, and in the process that the user accesses the page in the web application program through the browser, when the user accesses a new page through the browser, the page control device performs stacking operation on the identification of the page accessed by the user, so that the identification of the historical pages in the application stack is sequentially arranged from bottom to top according to the opening sequence of the historical pages, wherein the page control device can be arranged in the terminal equipment.
Next, the process of performing the stack operation on the page identifier will be described in detail with reference to fig. 2.
Fig. 2 is a first stack structure diagram provided in the present invention, please refer to fig. 2, which includes a stack structure 201-a stack structure 203, specifically:
in the stack structure 201, after a user opens a web application through a browser, the page control device creates an application stack for the web application, where the application stack does not include any data, and the stack structure of the application stack is as shown in the stack structure 201.
In the stack structure 202, when a user accesses page 1 in a web application through a browser, a page control device performs a stacking operation on an identifier of page 1, so that the application stack includes the identifier of page 1, and at this time, the stack structure of the application stack is as shown in the stack structure 202.
In the stack structure 203, in the process that a user accesses the page 1, when the user needs to access the page 2, the user may click on a link in the page 1 to access the page 2 through the browser, and the page control device performs a stacking operation on the identifier of the page 2, so that the application stack includes the identifier of the page 2, and at this time, the stack structure of the application stack is as shown in the stack structure 203.
In an actual application process, in a process that a user accesses a current page of a web application program through a browser, when the user needs to access a target historical page, the user may input a return instruction in the current page, optionally, the user may click a return button in the terminal device to input the return instruction, or the user may click a return button in the current page to input the return instruction.
After the page control device obtains the return instruction input by the user, the page control device obtains the identifier of the target history page corresponding to the current page, where the identifier of the target history page is any page identifier in the application stack that is different from the identifier of the current page, optionally, the identifier of the target history page corresponding to the current page may be determined by the page control device according to a preset corresponding relationship, or may be selected by the user from the identifiers of the history pages included in the application stack according to actual needs.
Optionally, because the target history page is a page that has been visited by the user, the page control device may perform cache processing on the page that has been visited by the user, so that the page control device may obtain the page information of the target history page in a cache region corresponding to the browser according to the identifier of the target history page, thereby increasing a rate of obtaining the target history page information, and after the page control device obtains the target history page information, the page control device displays the target history page according to the page information of the target history page.
Optionally, after acquiring the identifier of the target history page corresponding to the current page or after displaying the target history page according to the page information of the target history page, the page control device may acquire the identifier of the page to be popped from the application stack, where the identifier of the page to be popped includes the identifier of the current page and a page identifier located between the identifier of the current page and the identifier of the target history page, and perform a pop operation on the identifier of the page to be popped from the application stack, so that the identifier of the target history page is located at the top of the application stack, further, the page control device needs to determine whether the application stack is empty, and if the determination result is yes, quit the web application program.
In the page control method of the web application provided by the embodiment of the invention, after the page control device obtains the return instruction input by the user on the current page of the browser, the identifier of the target historical page corresponding to the current page is obtained, the identifier of the target historical page can be any page identifier different from the identifier of the current page in the application stack of the browser, and the target historical page is directly displayed according to the page information of the target historical page.
On the basis of the embodiment shown in fig. 2, the identifier of the target history page corresponding to the current page may be determined through a plurality of possible implementation manners (S101 in the embodiment shown in fig. 1), and two possible implementation manners are described below through the embodiments shown in fig. 3 to 6, specifically, please refer to the embodiments shown in fig. 3 to 6.
Fig. 3 is a first schematic flowchart of a method for determining an identifier of a target history page according to the present invention, please refer to fig. 3, where the method may include:
s301, judging whether the current page corresponds to a self-defined return page or not;
if yes, executing S302;
if not, executing S303;
s302, determining the identifier of the self-defined return page as the identifier of the target historical page;
s303, determining a page identifier adjacent to the identifier of the current page in the application stack as the identifier of the target historical page.
In the embodiment shown in fig. 3, the web application includes multiple pages, and in the process of developing the web application, a custom return page may be set for only a part of the pages, preferably, the custom return page is a page that is obtained by statistics and has the highest probability of being returned by the user from the current page, and in the embodiment shown in fig. 2, the page that is obtained by statistics and has the highest probability of being returned by the user from the current page is described in detail, and details are not repeated here.
In the practical application process, when the page control device needs to acquire a target historical page corresponding to a current page, the page control device firstly judges whether the current page has a corresponding self-defined return page;
and if the current page does not have the corresponding self-defined return page, the page control device acquires a page identifier adjacent to the identifier of the current page in the application stack, and determines the page identifier adjacent to the identifier of the current page as the identifier of the target historical page, wherein the page identifier adjacent to the identifier of the current page in the application stack is the identifier of the page accessed by the user before the user accesses the current page.
If the current page has the customized return page corresponding thereto, the page control device obtains an identifier of the customized return page, and determines the identifier of the customized return page as an identifier of a target history page corresponding to the current page, optionally, a corresponding relationship between each page and the target history page corresponding thereto may be set, so that the page control device may obtain the target history page corresponding to the current page according to the corresponding relationship, for example, the corresponding relationship may be as shown in table 1:
TABLE 1
Identification of pages Identification of target history pages
Page 3 Page 1
Page 5 Page 2
Page 6 Page 2
…… ……
Referring to table 1, if the current page is page 3, when the page control device needs to obtain the target historical page of page 3, the page control device may obtain the target historical page of page 3 as the page according to the corresponding relationship shown in table 1; if the current page is the page 5, when the page control device needs to obtain the target historical page of the page 5, the page control device can obtain that the target historical page of the page 5 is the page 2 according to the corresponding relation shown in the table 1.
In the foregoing process, preferably, the target history page corresponding to the current page may be a page obtained through statistics and having the highest probability of the user returning from the current page, and optionally, the behavior of the user using the web application may be counted to obtain the target history page corresponding to the current page, specifically: the method comprises the steps that a plurality of effective historical pages returned by a plurality of users from a current page can be counted, the effective historical pages are historical pages which stay in the historical pages for a time longer than a preset threshold value or operate in the historical pages after the users return from the current page, and the historical page with the highest probability is determined as the historical page corresponding to the current page according to the probability that the users return to each effective historical page from the current page; after determining that the historical page corresponding to the current page is obtained, a preset corresponding relationship between the current page and the historical page may be set, so that the page control device may obtain the identifier of the target historical page corresponding to the current page according to the preset corresponding relationship.
The method described in the embodiment of fig. 3 is described in detail below by using a specific example in conjunction with the stack structure shown in fig. 4.
Fig. 4 is a schematic diagram of a stack structure provided in the present invention, please refer to fig. 4, which includes a stack structure 401-a stack structure 403, specifically:
for example, assuming that a user can access the web application 1 through a browser, the user sequentially accesses pages 1 to 5 of the web application 1 during the access of the web application 1, and the page currently accessed by the user is page 5, the stack structure at this time is shown as stack structure 401.
In the stack structure 401, the identifiers of pages 1-5 are sequentially arranged from the bottom to the top of the stack; assuming that the user needs to return to view the target history page in the process of accessing the page 5, the user may click a return button in the page 5 to generate a return instruction, and after the page control device obtains the return instruction, the page control device determines whether the page 5 has a corresponding custom return page.
If so, the page control device obtains a custom return page corresponding to the page 5, and if the custom return page corresponding to the page 5 is the page 2, the page control device obtains page information of the page 2, and displays the page 2 to the user according to the page information of the page 2, and meanwhile, the page control device performs a pop-up operation on the identifiers of the pages 5 and 3 in the application stack, so that the identifier of the page 2 is located at the top of the stack, specifically, as shown in the stack structure 402.
If not, the page control device obtains the identifier of the page 4 adjacent to the identifier of the page 5 in the stack structure 401, and determines the identifier of the page 4 as a target history page corresponding to the page 5, the page control device obtains the page information of the page 4, and displays the page 4 to the user according to the page information of the page 4, and meanwhile, the page control device performs a pop-up operation on the identifier of the page 5 in the application stack, so that the identifier of the page 4 is located at the top of the stack, specifically, as shown in the stack structure 403.
Fig. 5 is a schematic flowchart of a second method for determining an identifier of a target history page according to the present invention, please refer to fig. 5, where the method may include:
s501, acquiring identifiers of all history pages to be selected in an application stack except the identifier of the current page;
s502, displaying the identification of each history page to be selected on the current page;
s503, receiving the selection operation of the user on the identifier of the history page to be selected in the current page;
s504, the identification of the history page to be selected by the user is determined as the identification of the target history page.
In the embodiment shown in fig. 5, when the page control apparatus needs to acquire the history page corresponding to the current page, the page control device acquires the identifications of all history pages to be selected in the application stack except the identification of the current page, and displays the mark of each history page to be selected on the current page so that the user can select the mark of each history page to be selected, optionally, in order to facilitate the user to identify the identity of each history page, the page control device may identify the identity of the history page by the characteristic information of the history page, wherein, the characteristic information of the historical pages can be the titles and the like of the historical pages, furthermore, the page control device can also sequence the historical pages and display the identifiers of the sequenced historical pages to the user, optionally, the identifiers of the history pages may be presented to the user in the order in which they are in the application stack.
After the page control device displays the identifier of each history page to be selected on the current page, the page control device may receive a selection operation of the identifier of the history page to be selected in the current page by a user, and determine the identifier of the history page to be selected by the user as the identifier of the target history page.
The method shown in the embodiment of fig. 5 will be described in detail below by referring to a terminal interface diagram shown in fig. 6 by specific examples.
For example, it is assumed that a user can access the web application 1 through a browser, and during the process of accessing the web application 1, the user sequentially accesses pages 1 to 5 of the web application 1, and a page currently accessed by the user is the page 5, at this time, an application stack of the web application 1 includes identifiers of the pages 1 to 5, and the identifiers of the pages 1 to 5 are sequentially arranged from bottom to top.
Fig. 6 is a schematic diagram of a terminal interface provided by the present invention, please refer to fig. 6, which includes a page 601-a page 3, specifically:
in the interface 601, a page 5 currently accessed by a user is included, the interface 601 further includes a "return" button, a "home" button, a "refresh" button, and the like, in a process that the user accesses the page 5, when the user needs to view a page accessed before accessing the page 5, the user performs a click operation on the "return" button in the interface 601 to generate a return instruction, after the page control device obtains the return instruction, the page control device obtains identifiers of all history pages to be selected, namely the identifiers of the pages 1 to 4, except for the identifier of the page 5, in an application stack, and displays the identifiers of the history pages to be selected on the page 5, specifically, please refer to the interface 602.
In the interface 602, the identifiers of the history pages to be selected are included, the user may click the identifiers of the history pages to be selected according to actual needs, and assuming that the user needs to return to the page 2 from the page 5, the user may click the identifier of the page 2, after the page control device receives the selection operation of the user on the identifier of the page 2 in the page 5, the page control device determines the page 2 as the identifier of the target history page, obtains the page information of the page 2 in the cache region corresponding to the web application 1, and displays the page 2 to the user according to the page information of the page 2, specifically, please refer to the interface 603.
In the interface 603, the page 2 returned by the user from the page 5 is included, and further, the page control apparatus needs to perform a pop operation on the identifiers of the pages 5 to 3 in the application stack of the web application 1.
In the process, the user can select the history page corresponding to the current page according to actual needs by displaying the identification of each history page to be selected corresponding to the current page to the user, so that the page control device can more accurately display the history page corresponding to the current page to the user.
On the basis of any of the above embodiments, preferably, the web application may adopt a single-page mode, so that services of a client (browser end) and a server end of the web application are separated, the client end is responsible for front-end services such as rendering of a page, and the server end is responsible for data processing services; the method includes the steps that a plurality of sub pages are included in a web application program realized by a single page, when the web application program is initialized, a Document Object Model (DOM) structure of a HyperText Markup Language (HTML) of all the sub pages of the web application program is requested to be loaded to a server, and in the running process of the web application program, the page in an activated state is displayed and the page which is not activated is hidden.
Fig. 7 is a schematic structural diagram of a first structure of a page control device for a web application, referring to fig. 7, the device may include:
a determining module 701, configured to determine, after a return instruction input by a user on a current page of a web application program is obtained, an identifier of a target history page corresponding to the current page, where the identifier of the target history page is any page identifier, different from the identifier of the current page, in an application stack of the web application program;
a first obtaining module 702, configured to obtain page information of the target history page according to the identifier of the target history page;
a display module 703, configured to display the target history page according to the page information of the target history page.
The page control device of the web application provided in the embodiment of the present invention may execute the technical solutions shown in the above method embodiments, and the implementation principles and beneficial effects thereof are similar and will not be described herein again.
In an actual application process, optionally, the determining module 701 may be specifically configured to:
judging whether the current page corresponds to a self-defined return page or not;
if yes, determining the identifier of the self-defined return page as the identifier of the target historical page;
if not, determining the page identifier adjacent to the identifier of the current page in the application stack as the identifier of the target historical page.
Optionally, the determining module 701 may be further specifically configured to:
acquiring all historical page identifiers to be selected in the application stack except the identifier of the current page;
displaying the identification of each history page to be selected on the current page;
receiving the selection operation of the user on the identifier of the history page to be selected in the current page;
and determining the identifier of the history page to be selected by the user as the identifier of the target history page.
Fig. 8 is a second schematic structural diagram of a page control apparatus of a web application according to the present invention, referring to fig. 8, based on the embodiment shown in fig. 7, the apparatus may include a second obtaining module 704 and a stack operating module 705, wherein,
the second obtaining module 704 is configured to, after the determining module determines the identifier of the target history page corresponding to the current page, obtain an identifier of a page to be popped from the application stack, where the identifier of the page to be popped includes the identifier of the current page and a page identifier located between the identifier of the current page and the identifier of the target history page;
the stack operation module 705 is configured to perform a pop operation on the to-be-popped page identifier in the application stack.
Further, the apparatus may further comprise a determining module 706 and an exiting module 707, wherein,
the determining module 706 is configured to determine whether the application stack is empty after the stack operation module performs a pop operation on the identifier of the page to be popped;
the exit module 707 is configured to exit the web application program when the determining module determines whether the application stack is empty.
Optionally, the first obtaining module 702 may specifically be configured to:
and acquiring the page information of the target historical page in a cache region corresponding to the web application program according to the identifier of the target historical page.
The page control device of the web application provided in the embodiment of the present invention may execute the technical solutions shown in the above method embodiments, and the implementation principles and beneficial effects thereof are similar and will not be described herein again.
An embodiment of the present invention further provides a terminal device, where the terminal device includes the page control apparatus of the web application shown in any embodiment of fig. 7 or fig. 8, and a structure, an operating principle, and an achievable beneficial effect of the page control apparatus of the web application included in the terminal device are similar to those of the page control apparatus of the web application shown in any embodiment of fig. 7 or fig. 8, and are not described again here.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (6)

1. A method for controlling a page of a web application, comprising:
after a return instruction input by a user on a current page of a web application program is obtained, determining an identifier of a target historical page corresponding to the current page, wherein the identifier of the target historical page is any page identifier which is different from the identifier of the current page in an application stack of the web application program;
acquiring page information of the target historical page according to the identifier of the target historical page, and displaying the target historical page according to the page information of the target historical page;
the determining the identifier of the target history page corresponding to the current page includes:
judging whether the current page corresponds to a custom return page according to the return instruction, wherein the custom return page is an effective history page which is returned from the current page and has the highest probability obtained by statistics, and the effective history page is as follows: returning from the current page to a page with the display duration being greater than the preset duration, or returning from the current page to a page with the display duration being greater than the preset duration and receiving a historical page of user operation;
if yes, determining the identifier of the self-defined return page as the identifier of the target historical page;
if not, determining the page identifier adjacent to the identifier of the current page in the application stack as the identifier of the target historical page.
2. The method of claim 1, wherein after determining the identity of the target history page corresponding to the current page, further comprising:
acquiring a page identifier to be popped from the application stack, wherein the page identifier to be popped comprises the identifier of the current page and a page identifier between the identifier of the current page and the identifier of the target historical page;
and in the application stack, performing pop operation on the page identifier to be popped.
3. The method according to claim 2, further comprising, after the pop operation is performed on the to-be-popped page identifier:
judging whether the application stack is empty or not;
and if so, exiting the web application program.
4. The method according to claim 1, wherein the obtaining page information of the target history page according to the identifier of the target history page comprises:
and acquiring the page information of the target historical page in a cache region corresponding to the web application program according to the identifier of the target historical page.
5. A page control apparatus of a web application, comprising:
the determining module is used for determining an identifier of a target historical page corresponding to a current page after a return instruction input by a user on the current page of a web application program is obtained, wherein the identifier of the target historical page is any page identifier which is different from the identifier of the current page in an application stack of the web application program;
the first acquisition module is used for acquiring the page information of the target historical page according to the identifier of the target historical page;
the display module is used for displaying the target historical page according to the page information of the target historical page;
the determining module is specifically configured to:
judging whether the current page corresponds to a custom return page according to the return instruction, wherein the custom return page is an effective history page which is returned from the current page and has the highest probability obtained by statistics, and the effective history page is as follows: returning from the current page to a page with the display duration being greater than the preset duration, or returning from the current page to a page with the display duration being greater than the preset duration and receiving a historical page of user operation;
if yes, determining the identifier of the self-defined return page as the identifier of the target historical page;
if not, determining the page identifier adjacent to the identifier of the current page in the application stack as the identifier of the target historical page.
6. A terminal device characterized in that it comprises page control means of a web application according to claim 5.
CN201610367063.XA 2016-05-27 2016-05-27 Web application program page control method and device and terminal equipment Active CN106021549B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610367063.XA CN106021549B (en) 2016-05-27 2016-05-27 Web application program page control method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610367063.XA CN106021549B (en) 2016-05-27 2016-05-27 Web application program page control method and device and terminal equipment

Publications (2)

Publication Number Publication Date
CN106021549A CN106021549A (en) 2016-10-12
CN106021549B true CN106021549B (en) 2020-04-07

Family

ID=57092450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610367063.XA Active CN106021549B (en) 2016-05-27 2016-05-27 Web application program page control method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN106021549B (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658124B (en) * 2016-11-10 2019-12-24 海信电子科技(深圳)有限公司 Television page return control method and television
CN108241688A (en) * 2016-12-26 2018-07-03 广州市动景计算机科技有限公司 A kind of page access method, apparatus and computing device
CN108345479A (en) * 2017-01-22 2018-07-31 北京优朋普乐科技有限公司 A kind of page returns and the method and system of mark stacking
CN106980507A (en) * 2017-03-31 2017-07-25 武汉斗鱼网络科技有限公司 Self-defined retrogressing treating method and apparatus
CN106951148B (en) * 2017-05-02 2020-03-03 深圳乐信软件技术有限公司 Page switching method and device
CN109101297B (en) * 2017-06-20 2021-08-13 北京国双科技有限公司 Page identification method and device
CN110020268B (en) * 2017-07-28 2022-04-12 北京国双科技有限公司 Page returning method and device
CN107807993B (en) * 2017-11-08 2021-06-15 山东云缦智能科技有限公司 Method and device for realizing webpage history recording function
WO2019090764A1 (en) * 2017-11-13 2019-05-16 深圳峰创智诚科技有限公司 Method and device for returning to an application program page
CN108255550A (en) * 2017-11-27 2018-07-06 深圳市小牛在线互联网信息咨询有限公司 Method for page jump, device, storage medium and computer equipment
CN108268622A (en) * 2018-01-08 2018-07-10 金行家(深圳)文化传播有限公司 The method, apparatus and computer readable storage medium of back page
CN110502169B (en) * 2018-05-18 2021-10-19 华为技术有限公司 Display control method and terminal
CN108763541B (en) * 2018-05-31 2021-07-13 维沃移动通信有限公司 Page display method and terminal
CN108959487A (en) * 2018-06-22 2018-12-07 福建南威软件有限公司 A kind of page processing method based on the end H5
CN108958591A (en) * 2018-06-29 2018-12-07 深圳春沐源控股有限公司 Terminal program control method and terminal device based on suspension button
CN110297997B (en) * 2019-06-19 2021-09-21 百度在线网络技术(北京)有限公司 Page display method, device and equipment
CN113127765A (en) * 2019-12-31 2021-07-16 华为技术有限公司 Method and terminal device for returning history page

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902805A (en) * 2012-10-15 2013-01-30 东软集团股份有限公司 Page access method and device
CN103105994A (en) * 2011-11-11 2013-05-15 希姆通信息技术(上海)有限公司 Mobile terminal and return method of mobile terminal page
CN103257782A (en) * 2012-02-20 2013-08-21 腾讯科技(深圳)有限公司 Method and system for title bar path navigation of mobile device
CN103678536A (en) * 2013-12-02 2014-03-26 乐视网信息技术(北京)股份有限公司 Method and device for implementing page returning
CN103885992A (en) * 2012-12-24 2014-06-25 腾讯科技(武汉)有限公司 Method and device for controlling page display
CN103984686A (en) * 2013-02-07 2014-08-13 阿里巴巴集团控股有限公司 Page-switching method and device
CN103995884A (en) * 2014-05-29 2014-08-20 北京中电普华信息技术有限公司 Hybrid application page switching method and system
CN104281677A (en) * 2014-09-29 2015-01-14 百度在线网络技术(北京)有限公司 Page displaying method and device
CN104615697A (en) * 2015-01-26 2015-05-13 南京信息工程大学 Webpage level memorizing and returning method
CN104881212A (en) * 2015-06-26 2015-09-02 深圳市富途网络科技有限公司 Fast display interface switching method and system for mobile electronic equipment
CN104898914A (en) * 2014-03-05 2015-09-09 腾讯科技(深圳)有限公司 Multi-page display method and device
CN104978385A (en) * 2015-03-19 2015-10-14 腾讯科技(深圳)有限公司 Information processing method, browser client and terminal
CN105224579A (en) * 2014-07-02 2016-01-06 腾讯科技(深圳)有限公司 A kind of history page air navigation aid and device
CN105335052A (en) * 2015-11-30 2016-02-17 腾讯科技(深圳)有限公司 Information processing method and terminal equipment
CN105468243A (en) * 2015-12-09 2016-04-06 魅族科技(中国)有限公司 Page returning method and page returning device

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103105994A (en) * 2011-11-11 2013-05-15 希姆通信息技术(上海)有限公司 Mobile terminal and return method of mobile terminal page
CN103257782A (en) * 2012-02-20 2013-08-21 腾讯科技(深圳)有限公司 Method and system for title bar path navigation of mobile device
CN102902805A (en) * 2012-10-15 2013-01-30 东软集团股份有限公司 Page access method and device
CN103885992A (en) * 2012-12-24 2014-06-25 腾讯科技(武汉)有限公司 Method and device for controlling page display
CN103984686A (en) * 2013-02-07 2014-08-13 阿里巴巴集团控股有限公司 Page-switching method and device
CN103678536A (en) * 2013-12-02 2014-03-26 乐视网信息技术(北京)股份有限公司 Method and device for implementing page returning
CN104898914A (en) * 2014-03-05 2015-09-09 腾讯科技(深圳)有限公司 Multi-page display method and device
CN103995884A (en) * 2014-05-29 2014-08-20 北京中电普华信息技术有限公司 Hybrid application page switching method and system
CN105224579A (en) * 2014-07-02 2016-01-06 腾讯科技(深圳)有限公司 A kind of history page air navigation aid and device
CN104281677A (en) * 2014-09-29 2015-01-14 百度在线网络技术(北京)有限公司 Page displaying method and device
CN104615697A (en) * 2015-01-26 2015-05-13 南京信息工程大学 Webpage level memorizing and returning method
CN104978385A (en) * 2015-03-19 2015-10-14 腾讯科技(深圳)有限公司 Information processing method, browser client and terminal
CN104881212A (en) * 2015-06-26 2015-09-02 深圳市富途网络科技有限公司 Fast display interface switching method and system for mobile electronic equipment
CN105335052A (en) * 2015-11-30 2016-02-17 腾讯科技(深圳)有限公司 Information processing method and terminal equipment
CN105468243A (en) * 2015-12-09 2016-04-06 魅族科技(中国)有限公司 Page returning method and page returning device

Also Published As

Publication number Publication date
CN106021549A (en) 2016-10-12

Similar Documents

Publication Publication Date Title
CN106021549B (en) Web application program page control method and device and terminal equipment
CN107273489B (en) Content delivery method, electronic equipment and computer storage medium
US10812849B2 (en) Method, apparatus, and storage medium for media file delivery
US7340689B2 (en) Method, system and program product for automatically modifying a display view during presentation of a web page
US9811350B2 (en) Embedding non-blocking help components in a display page using discovery drawer feature cues
CN103345421B (en) Application program method for pushing and device
US20200219016A1 (en) Method for Cleaning Up Background Application, Storage Medium, and Electronic Device
US20120066634A1 (en) Branded browser frame
US11372805B2 (en) Method and device for information processing
CN112463106A (en) Voice interaction method, device and equipment based on intelligent screen and storage medium
CN109740081B (en) Page loading method and device
CN106202368B (en) Preloading method and device
CN112905928A (en) Webpage refreshing method and device, electronic equipment and storage medium
CN107526589A (en) Page display method and device
WO2015003550A1 (en) Method for presenting data and device thereof
CN111026964B (en) Display method of list page, electronic equipment and computer storage medium
CN110287460B (en) Electronic book display method, computing equipment and computer storage medium
CN114449327B (en) Video clip sharing method and device, electronic equipment and readable storage medium
US20140245415A1 (en) Method and system for implementing directional publishing of information, and computer storage medium
CN111580726B (en) Electronic book display method, electronic equipment and storage medium
CN115186207A (en) Method and device for loading page resources and electronic equipment
CN116225286A (en) Page jump control method, operating system, electronic device and storage medium
CN114564581A (en) Text classification display method, device, equipment and medium based on deep learning
KR20170137844A (en) Web page creation support device, and storage medium
EP2599283B1 (en) Help channel

Legal Events

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