CN108763541B - Page display method and terminal - Google Patents

Page display method and terminal Download PDF

Info

Publication number
CN108763541B
CN108763541B CN201810551630.6A CN201810551630A CN108763541B CN 108763541 B CN108763541 B CN 108763541B CN 201810551630 A CN201810551630 A CN 201810551630A CN 108763541 B CN108763541 B CN 108763541B
Authority
CN
China
Prior art keywords
page
information
browser
terminal
user
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
CN201810551630.6A
Other languages
Chinese (zh)
Other versions
CN108763541A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810551630.6A priority Critical patent/CN108763541B/en
Publication of CN108763541A publication Critical patent/CN108763541A/en
Application granted granted Critical
Publication of CN108763541B publication Critical patent/CN108763541B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses a page display method and a terminal, which are applied to the technical field of communication and can solve the problem of inflexible process of switching pages of a browser in the prior art. The method comprises the following steps: when the browser displays a first page, receiving a first input of a user, wherein the first input is used for triggering the terminal to be switched from the first page to a second page; responding to the first input, acquiring first information stored in a history stack of the browser, and switching the first page into a second page according to the first information; the first information is used for identifying a second page, the first information at least comprises a first identifier, and the page identified by the information comprising the first identifier is a page triggered and displayed by the operation of the user; the second page is a page except the main page in the pages displayed by the browser, and the first page and the second page are pages triggered and displayed by two continuous operations of the user. The method is applied to scenes displayed on the page.

Description

Page display method and terminal
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a page display method and a terminal.
Background
With the popularization of terminal technology, the application of terminals is more and more extensive. For example, users often browse web pages using a browser in the terminal to obtain information.
Currently, when a user wants to access a certain page (denoted as a destination page) during the process of using a browser, the user may click a link in the current page (denoted as a home page) to trigger the terminal to switch to the destination page, but the terminal may switch to the destination page through one or more intermediate pages during the process of switching from the home page to the destination page. In this process, the terminal stores pages (e.g., the above-described home page, intermediate page, and target page) that the user has visited in the history stack of the browser in the order of visit. When a user triggers the terminal to return a home page from a target page, the terminal is firstly switched to an intermediate page, and at the moment, if the user does not click and return for many times, the terminal is switched back to the target page from the intermediate page according to the access sequence of the pages stored in the history stack of the browser. The home page can only be returned if the user clicks back on the target page many times at a fast speed. If the user does not click back many times quickly, the user cannot exit the page, which makes the browser inflexible to switch pages.
Disclosure of Invention
The embodiment of the invention provides a page display method and a terminal, which are used for solving the problem that the process of switching pages by a browser is inflexible in the prior art.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, a page display method is provided, which is applied to a terminal, and includes: receiving a first input of a user under the condition that a browser displays a first page, wherein the first input is used for triggering a terminal to be switched from the first page to a second page; responding to the first input, acquiring first information stored in a history stack of the browser, and switching the first page into a second page according to the first information; the first information is used for identifying a second page, the first information at least comprises a first identifier, and the page identified by the information comprising the first identifier is a page triggered and displayed by the operation of the user; the second page is a page except the main page in the pages displayed by the browser, and the first page and the second page are pages triggered and displayed by two continuous operations of the user.
In a second aspect, a terminal is provided, which includes: the device comprises a receiving module and a display module;
the terminal comprises a receiving module, a switching module and a display module, wherein the receiving module is used for receiving a first input of a user under the condition that a browser displays a first page, and the first input is used for triggering the terminal to be switched from the first page to a second page; the display module is used for responding to the first input received by the receiving module, acquiring first information stored in a history stack of the browser, and switching the first page into a second page according to the first information; the first information is used for identifying a second page, the first information at least comprises a first identifier, and the page identified by the information comprising the first identifier is a page triggered and displayed by the operation of the user; the second page is a page except the main page in the pages displayed by the browser, and the first page and the second page are pages triggered and displayed by two continuous operations of the user.
In a third aspect, a terminal is provided, the terminal comprising a processor, a memory and a computer program stored on the memory and operable on the processor, the computer program, when executed by the processor, implementing the steps of the page display method according to the first aspect.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, realizes the steps of the page display method according to the first aspect.
In the embodiment of the invention, under the condition that a browser displays a first page, a first input of a user is received, wherein the first input is used for triggering a terminal to be switched from the first page to a second page; responding to the first input, acquiring first information stored in a history stack of the browser, and switching the first page into a second page according to the first information; the first information is used for identifying a second page, the first information at least comprises a first identifier, and the page identified by the information comprising the first identifier is a page triggered and displayed by the operation of the user; the second page is a page except the main page in the pages displayed by the browser, and the first page and the second page are pages triggered and displayed by two continuous operations of the user. According to the scheme, the first identification page can be adopted in the history stack of the browser to be the operation trigger display page of the user, so that in the process of switching the page of the browser (such as switching from the first page to the second page), the operation trigger display page of the user can be directly switched to the second page without skipping through an intermediate page, and the browser is more flexible in page switching.
Drawings
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention;
fig. 2 is a first schematic diagram of an interface display method according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating an interface display method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of an interface display method provided in the embodiment of the present invention;
fig. 5 is a schematic diagram of an interface display method according to an embodiment of the present invention;
fig. 6 is a first schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 8 is a hardware schematic diagram of a terminal according to an embodiment of the present invention.
Detailed Description
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, 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.
The terms "first" and "second," and the like, in the description and in the claims of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first input and the second input, etc. are for distinguishing different inputs, rather than for describing a particular order of inputs.
It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
The terminal in the embodiment of the present invention may be a terminal having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The following describes a software environment applied to the page display method provided by the embodiment of the present invention, by taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the page display method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the page display method may operate based on the android operating system shown in fig. 1. Namely, the processor or the terminal can implement the page display method provided by the embodiment of the invention by running the software program in the android operating system.
The embodiment of the invention provides a page display method and a terminal, wherein when a browser displays a first page, a first input of a user is received, and the first input is used for triggering the terminal to be switched from the first page to a second page; responding to the first input, acquiring first information stored in a history stack of the browser, and switching the first page into a second page according to the first information; the first information is used for identifying a second page, the first information at least comprises a first identifier, and the page identified by the information comprising the first identifier is a page triggered and displayed by the operation of the user; the second page is a page except the main page in the pages displayed by the browser, and the first page and the second page are pages triggered and displayed by two continuous operations of the user. According to the scheme, the first identification page can be adopted in the history stack of the browser to be the operation trigger display page of the user, so that in the process of switching the page of the browser (such as switching from the first page to the second page), the operation trigger display page of the user can be directly switched to the second page without skipping through an intermediate page, and the browser is more flexible in page switching.
The terminal in the embodiment of the invention can be a mobile terminal or a non-mobile terminal. The mobile terminal may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), etc.; the non-mobile terminal may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, or the like; the embodiments of the present invention are not particularly limited.
The execution main body of the page display method provided by the embodiment of the present invention may be the terminal (including a mobile terminal and a non-mobile terminal), or may also be a functional module and/or a functional entity capable of implementing the page display method in the terminal, which may be specifically determined according to actual use requirements, and the embodiment of the present invention is not limited. The following takes a terminal as an example to exemplarily explain a page display method provided by the embodiment of the present invention.
As shown in fig. 2, an embodiment of the present invention provides a page display method, where the method includes:
and S11, the terminal displays the first page in the browser.
Optionally, the browser may be an application installed in the terminal and having a browser function.
In the embodiment of the present invention, before the above S11, in the process that the terminal browses the page in the browser, information of the browsed page may be stored in the history stack (for example, a Uniform Resource Locator (URL) of the browsed page may be stored), which is different from the prior art that when the page information is stored, the page triggered and displayed for the operation of the user may store the URL information and a first identifier, where a page identified by information including the first identifier is a page triggered and displayed for the operation of the user.
The operation of the user in the embodiment of the present invention may include a click operation or a touch operation of the user.
In order to more clearly describe the page display method provided by the embodiment of the present invention, the page display method provided by the embodiment of the present invention is exemplarily described below by taking the case that before the above-mentioned S11, the user triggers the terminal to open the second page and the first page in the browser, and there are 1 middle pages jumped during the process of jumping from the second page to the first page.
Suppose that the home page of the browser is page a, the second page is page B, the first page is page C, and a middle page of the second page that is jumped to the first page is page 1. The process of storing information of the browsed pages in the history stack in the process of browsing the pages in the browser by the terminal may include the following steps a-e.
a. The user triggers the terminal to open the homepage of the browser through operation 1, the terminal displays the page A in the browser, and the information of the page A is stored in the history stack.
b. The user triggers the terminal to switch from page a to page B by operation 2.
c. The terminal switches from page a to page B in response to operation 2, and stores the information of page B in the history stack.
d. The user triggers the terminal to switch from page B to page C by operation 3.
e. The terminal switches from page B to page 1 and then from page 1 to page C in response to operation 3, and stores the page 1 information and the information of page C in the history stack.
The operation 1, the operation 2 and the operation 3 are all user operations, and the corresponding page a, the page B and the page C are all user operations for triggering the terminal to open.
Illustratively, after steps a-e above, the history stack may be as shown in Table 1 or Table 2 below:
URL identification
URL of page C Is that
URL of Page 1
URL of page B Is that
URL of page A Is that
TABLE 1
In table 1, "yes" is a first identifier for identifying a page displayed for operation trigger by the user, and a page not displayed for operation trigger by the user (for example, the middle page 1) may not be identified.
URL Identification
URL of page C Is that
URL of Page 1 Whether or not
URL of page B Is that
URL of page A Is that
TABLE 2
In table 2, "yes" is a first identifier for identifying a page that is displayed as a user operation trigger, and a page that is not displayed as a user operation trigger (for example, the middle page 1) may be identified as "no".
And S12, the terminal receives a first input of the user, wherein the first input is used for triggering the terminal to switch from the first page to the second page.
S13, the terminal responds to the first input and acquires first information stored in the history stack of the browser.
And S14, the terminal switches the first page to the second page according to the first information.
The first information is used for identifying a second page, the first information at least comprises a first identifier, and the page identified by the information comprising the first identifier is a page triggered and displayed by the operation of a user; the second page is a page except the main page in the pages displayed by the browser, and the first page and the second page are pages triggered and displayed by two continuous operations of the user.
Optionally, second information is stored in a history stack of the browser, where the second information is used to identify the first page, and the second information at least includes the first identifier. Optionally, the first information further includes a uniform resource locator URL of the second page.
Illustratively, as shown in table 1 or table 2 above, the first information for identifying the second page (i.e., page B) stored in the history stack of the browser includes "URL of page B" and a first identifier "yes". Through the first identifier 'yes', the terminal can know that the second page is a page triggered and displayed by the operation of the user, and then the terminal can jump to the second page according to the 'URL of the page B', so that the first page is switched to the second page.
In the embodiment shown in fig. 2, since the first information for identifying the second page is stored in the history stack, and the page currently displayed by the terminal is the first page, it can be known that, before the terminal displays the first page, the second page is already opened, and the user triggers the terminal to switch from the first page to the second page through the first input, that is, to return from the first page to the second page. At this time, by using the page display method provided by the embodiment of the present invention, the second page can be confirmed as the page triggered and displayed by the user operation according to the first identifier in the first information stored in the history stack, so that the second page can be directly switched from the first page to the second page without passing through an intermediate page. Compared with the page which can be returned to the user operation trigger display only by the user clicking for many times rapidly in the prior art, the browser is more flexible when switching the page.
For example, as shown in fig. 3, the following Sa1-Sa5 may be specifically used to implement the page display method provided by the embodiment of the present invention.
Sa1 receives a user's backward operation.
Specifically, the receiving user's back operation may be clicking a button with a page back function in the current page of the browser, and the button with an arrow is usually used in the browser to identify the button with the back function.
Sa2 determines whether the current page is the top page (i.e., the first page after the browser is opened).
If the current page is the home page, the current page cannot be backed up and no action is taken.
Sa3, if the current page is not the top page, subtracting 1 from the index value of the current page to obtain the index value of the previous page, and determining the previous page according to the index value.
Sa4 determines whether the previous page is a target page (i.e., a page that is triggered to be displayed by the user's operation).
Sa5, if the previous page is the target page, jumping to the previous page according to the URL of the previous page stored in the history stack.
If the last page is not the target page, return is made to S2 a.
It should be noted that each page in the browser corresponds to an index value, and the difference between the index values of adjacent pages is 1, for example, in table 1, if the index value corresponding to page a is 1, the index value corresponding to page B is 2, the index value corresponding to page 1 is 3, and the index value corresponding to page C is 4.
The embodiment of the invention provides a page display method, which comprises the steps of receiving a first input of a user under the condition that a browser displays a first page, wherein the first input is used for triggering a terminal to be switched from the first page to a second page; responding to the first input, acquiring first information stored in a history stack of the browser, and switching the first page into a second page according to the first information; the first information is used for identifying a second page, the first information at least comprises a first identifier, and the page identified by the information comprising the first identifier is a page triggered and displayed by the operation of the user; the second page is a page except the main page in the pages displayed by the browser, and the first page and the second page are pages triggered and displayed by two continuous operations of the user. According to the scheme, the first identification page can be adopted in the history stack of the browser to be the operation trigger display page of the user, so that in the process of switching the page of the browser (such as switching from the first page to the second page), the operation trigger display page of the user can be directly switched to the second page without skipping through an intermediate page, and the browser is more flexible in page switching.
As shown in fig. 4, after the above S14, the page display method according to the embodiment of the present invention further includes the following S15-S17.
And S15, the terminal receives a second input of the user, and the second input is used for triggering the terminal to switch from the second page to the first page.
In the embodiment of the invention, after the terminal returns from the second page to the first page, the terminal receives the second operation to trigger the terminal to advance from the first page to the second page.
In the embodiment of the present invention, before the terminal receives the second input of the user, the terminal may store second information in a history stack of the browser, where the second information is used to identify the first page, and the second information at least includes the first identifier. Optionally, the second information further includes a URL of the first page.
Optionally, the sequence of the first information and the second information stored in the history stack of the browser is the same as the sequence of browsing the second page and the first page in the browser.
And S16, the terminal responds to the second input and acquires second information.
And S17, the terminal switches the second page into the first page according to the second information.
Specifically, the terminal may obtain the second information from a history stack of the browser. And determining that the first page is a page opened by the operation trigger of the user according to the first identifier in the second information, and then the terminal can jump to the first page according to the URL of the first page included in the second information, so as to switch the second page into the first page.
For example, as shown in fig. 5, the following Sb1-Sb5 may be specifically used to implement the page display method provided by the embodiment of the present invention.
Sb1, forward operation by the user is received.
Specifically, the forward operation of the receiving user may be to click a button with a page forward function in the current page of the browser, and the button with an arrow is usually used in the browser to identify the button with the page forward function.
Sb2, determine whether the current page is the last page.
Wherein the last page is the last page that the browser can open. If the current page is the last page, the current page cannot be advanced and no action is taken.
Sb3, if the current page is not the last page, adding 1 to the index value of the current page to obtain the index value of the next page, and determining the next page according to the index value.
Sb4, it is determined whether the next page is a target page (i.e., a page that is triggered to be displayed by the user's operation).
And Sb5, if the next page is the target page, jumping to the next page according to the URL of the next page stored in the history stack.
If the next page is not the target page, return to Sb 2.
In the page display method shown in fig. 4, after the page is returned from the second page to the first page, the terminal receives the second operation to trigger the page to be forwarded from the first page to the second page, and since the second information for identifying the first page is stored in the history stack, the first page can be confirmed as the page triggered and displayed by the operation of the user according to the first identifier in the second information stored in the history stack, so that the page can be directly switched from the second page to the first page without passing through an intermediate page. Therefore, the jump of the middle page between the second page and the first page is not needed, and the browser can switch the pages more flexibly.
As shown in fig. 6, an embodiment of the present invention provides a terminal 130, where the terminal 130 includes: a receiving module 131 and a display module 132;
the receiving module 131 is configured to receive a first input of a user when the browser displays a first page, where the first input is used to trigger the terminal to switch from the first page to a second page; the display module 132 is configured to, in response to the first input received by the receiving module 131, acquire first information stored in a history stack of the browser, and switch the first page to the second page according to the first information. The first information is used for identifying a second page, the first information at least comprises a first identifier, and the page identified by the information comprising the first identifier is a page triggered and displayed by the operation of a user; the second page is a page except the main page in the pages displayed by the browser, and the first page and the second page are pages triggered and displayed by two continuous operations of the user.
Optionally, as shown in fig. 7, the terminal further includes a saving module 133;
the saving module 133 is configured to save second information in the history stack of the browser, where the second information is used to identify the first page, and the second information at least includes the first identifier.
Optionally, the receiving module is further configured to receive a second input of the user when the browser displays the second page, where the second input is used to trigger the terminal to switch from the second page to the first page; the display module is also used for responding to a second input and acquiring second information; and switching the second page into the first page according to the second information.
Optionally, the first information further includes a uniform resource locator URL of the second page, and the second information further includes a URL of the first page.
Optionally, the sequence of the first information and the second information stored in the history stack of the browser is the same as the sequence of browsing the second page and the first page in the browser.
The terminal provided by the embodiment of the present invention can implement each process shown in the above method embodiment, and is not described herein again to avoid repetition.
The embodiment of the invention provides a terminal, which receives a first input of a user when a browser displays a first page, wherein the first input is used for triggering the terminal to be switched from the first page to a second page; responding to the first input, acquiring first information stored in a history stack of the browser, and switching the first page into a second page according to the first information; the first information is used for identifying a second page, the first information at least comprises a first identifier, and the page identified by the information comprising the first identifier is a page triggered and displayed by the operation of the user; the second page is a page except the main page in the pages displayed by the browser, and the first page and the second page are pages triggered and displayed by two continuous operations of the user. According to the scheme, the first identification page can be adopted in the history stack of the browser to be the operation trigger display page of the user, so that in the process of switching the page of the browser (such as switching from the first page to the second page), the operation trigger display page of the user can be directly switched to the second page without skipping through an intermediate page, and the browser is more flexible in page switching.
Fig. 8 is a hardware schematic diagram of a terminal for implementing various embodiments of the present invention, where the terminal 100 includes but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the terminal configuration shown in fig. 8 is not intended to be limiting, and that the terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The user input unit 107 is configured to receive a first input of a user, where the first input is used to trigger the terminal to switch from a first page to a second page; the processor 110, in response to the first input, acquires first information stored in a history stack of the browser, and switches the first page to the second page according to the first information; the first information is used for identifying a second page, the first information at least comprises a first identifier, and the page identified by the information comprising the first identifier is a page triggered and displayed by the operation of the user; the second page is a page except the main page in the pages displayed by the browser, and the first page and the second page are pages triggered and displayed by two continuous operations of the user.
The embodiment of the invention provides a terminal, which receives a first input of a user when a browser displays a first page, wherein the first input is used for triggering the terminal to be switched from the first page to a second page; responding to the first input, acquiring first information stored in a history stack of the browser, and switching the first page into a second page according to the first information; the first information is used for identifying a second page, the first information at least comprises a first identifier, and the page identified by the information comprising the first identifier is a page triggered and displayed by the operation of the user; the second page is a page except the main page in the pages displayed by the browser, and the first page and the second page are pages triggered and displayed by two continuous operations of the user. According to the scheme, the first identification page can be adopted in the history stack of the browser to be the operation trigger display page of the user, so that in the process of switching the page of the browser (such as switching from the first page to the second page), the operation trigger display page of the user can be directly switched to the second page without skipping through an intermediate page, and the browser is more flexible in page switching.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The terminal provides wireless broadband internet access to the user through the network module 102, such as helping the user send and receive e-mails, browse web pages, access streaming media, and the like.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The terminal 100 also includes at least one sensor 105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of 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 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 8, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the terminal, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal 100 or may be used to transmit data between the terminal 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 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 109 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 processor 110 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the terminal. Processor 110 may include one or more processing units; alternatively, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and optionally, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. In addition, the terminal 100 includes some functional modules that are not shown, and thus, the detailed description thereof is omitted.
The embodiment of the present invention further provides a terminal, where the terminal may include a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, each process executed by the terminal in the above-mentioned page display method embodiment may be implemented, and the same technical effect may be achieved, and in order to avoid repetition, details are not described here again.
The computer-readable storage medium according to an embodiment of the present invention is characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process executed by the terminal in the above-described page display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the computer program is not described herein again. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (8)

1. A page display method is applied to a terminal, and is characterized by comprising the following steps:
when a browser displays a first page, receiving a first input of a user, wherein the first input is used for triggering the terminal to be switched from the first page to a second page;
responding to the first input, acquiring first information stored in a history stack of the browser, wherein the first information is used for identifying the second page and comprises a first identifier, and the first identifier is used for indicating that a page corresponding to the first identifier is a page triggered and displayed by the operation of a user; the second page is a page except a main page in pages displayed by the browser, and the first page and the second page are pages triggered and displayed by two continuous operations of a user;
switching the first page to the second page according to the first information;
second information is also stored in a history stack of the browser, the second information is used for identifying the first page, and the second information at least comprises the first identification;
after the switching the first page to the second page according to the first information, the method further includes:
when the browser displays the second page, receiving a second input of a user, wherein the second input is used for triggering the terminal to switch from the second page to the first page;
acquiring the second information in response to the second input;
and switching the second page into the first page according to the second information.
2. The method of claim 1, wherein the first information further comprises a Uniform Resource Locator (URL) of the second page, and wherein the second information further comprises a URL of the first page.
3. The method of claim 1, wherein the first information and the second information are saved in the same order in the history stack of the browser as the second page and the first page are browsed in the browser.
4. A terminal, comprising: the device comprises a receiving module, a display module and a storage module;
the receiving module is used for receiving a first input of a user when a browser displays a first page, wherein the first input is used for triggering the terminal to be switched from the first page to a second page;
the display module is used for responding to the first input received by the receiving module, acquiring first information stored in a history stack of the browser, and switching the first page to the second page according to the first information;
the first information is used for identifying the second page, the first information at least comprises a first identifier, and the first identifier is used for indicating that the page corresponding to the first identifier is a page triggered and displayed by the operation of the user; the second page is a page except a main page in pages displayed by the browser, and the first page and the second page are pages triggered and displayed by two continuous operations of a user;
the saving module is configured to save second information in a history stack of the browser, where the second information is used to identify the first page, and the second information at least includes the first identifier;
the receiving module is further configured to receive a second input of the user when the browser displays the second page, where the second input is used to trigger the terminal to switch from the second page to the first page;
the display module is further used for responding to the second input and acquiring the second information; and switching the second page into the first page according to the second information.
5. The terminal of claim 4, wherein the first information further comprises a Uniform Resource Locator (URL) of the second page, and wherein the second information further comprises a URL of the first page.
6. The terminal of claim 4, wherein the first information and the second information are stored in the same order in the history stack of the browser as the second page and the first page are browsed in the browser.
7. A terminal, characterized in that it comprises a processor, a memory and a computer program stored on said memory and executable on said processor, said computer program, when executed by said processor, implementing the steps of the page display method according to any one of claims 1 to 3.
8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the page display method according to any one of claims 1 to 3.
CN201810551630.6A 2018-05-31 2018-05-31 Page display method and terminal Active CN108763541B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810551630.6A CN108763541B (en) 2018-05-31 2018-05-31 Page display method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810551630.6A CN108763541B (en) 2018-05-31 2018-05-31 Page display method and terminal

Publications (2)

Publication Number Publication Date
CN108763541A CN108763541A (en) 2018-11-06
CN108763541B true CN108763541B (en) 2021-07-13

Family

ID=64001366

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810551630.6A Active CN108763541B (en) 2018-05-31 2018-05-31 Page display method and terminal

Country Status (1)

Country Link
CN (1) CN108763541B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112241296B (en) * 2019-07-17 2024-03-22 北京密境和风科技有限公司 Page switching method and device in application
CN111104099A (en) * 2019-12-25 2020-05-05 北京中微媒网络科技有限公司 Data processing method and device
CN111783018A (en) * 2020-07-28 2020-10-16 支付宝(杭州)信息技术有限公司 Page processing method, device and equipment
CN111897478A (en) * 2020-08-11 2020-11-06 聚好看科技股份有限公司 Page display method and display equipment
CN112000255A (en) * 2020-08-21 2020-11-27 北京明略软件系统有限公司 List display method and apparatus, storage medium, and electronic apparatus
CN112163143B (en) * 2020-10-29 2024-02-27 百度时代网络技术(北京)有限公司 Page switching method, device, equipment and storage medium
CN113656127B (en) * 2021-08-12 2023-08-04 北京数码大方科技股份有限公司 Page routing method, device, storage medium and processor
CN113805962B (en) * 2021-08-31 2023-10-20 北京百度网讯科技有限公司 Application page display method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104156232A (en) * 2014-07-18 2014-11-19 百度在线网络技术(北京)有限公司 Equipment and method for nonlinear page skip under linear page structure
CN107277242A (en) * 2017-06-14 2017-10-20 黄之 A kind of processing method of displaying information on screen, display methods and display system
CN107885767A (en) * 2017-09-26 2018-04-06 五八有限公司 A kind of page operation method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9182935B2 (en) * 2011-09-27 2015-11-10 Z124 Secondary single screen mode activation through menu option
CN104731807B (en) * 2013-12-20 2018-06-05 北京风行在线技术有限公司 A kind of method and device of statistics and analysis page jump data
CN103744591B (en) * 2013-12-25 2017-12-12 乐视网信息技术(北京)股份有限公司 A kind of switching method and device for showing the page
CN105302811B (en) * 2014-06-13 2020-01-10 腾讯科技(深圳)有限公司 Browser page skipping method and device
CN106021549B (en) * 2016-05-27 2020-04-07 青岛海信传媒网络技术有限公司 Web application program page control method and device and terminal equipment
CN106951148B (en) * 2017-05-02 2020-03-03 深圳乐信软件技术有限公司 Page switching method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104156232A (en) * 2014-07-18 2014-11-19 百度在线网络技术(北京)有限公司 Equipment and method for nonlinear page skip under linear page structure
CN107277242A (en) * 2017-06-14 2017-10-20 黄之 A kind of processing method of displaying information on screen, display methods and display system
CN107885767A (en) * 2017-09-26 2018-04-06 五八有限公司 A kind of page operation method and device

Also Published As

Publication number Publication date
CN108763541A (en) 2018-11-06

Similar Documents

Publication Publication Date Title
CN108763541B (en) Page display method and terminal
CN110851051B (en) Object sharing method and electronic equipment
CN109543099B (en) Content recommendation method and terminal equipment
CN110502163B (en) Terminal device control method and terminal device
CN108446058B (en) Mobile terminal operation method and mobile terminal
CN110062105B (en) Interface display method and terminal equipment
CN109828705B (en) Icon display method and terminal equipment
CN111142991A (en) Application function page display method and electronic equipment
CN109857494B (en) Message prompting method and terminal equipment
CN111142723B (en) Icon moving method and electronic equipment
CN110752981B (en) Information control method and electronic equipment
CN110099296B (en) Information display method and terminal equipment
CN109358931B (en) Interface display method and terminal
CN108491148B (en) Application sharing method and terminal
CN111030917B (en) Message display method and electronic equipment
CN110049187B (en) Display method and terminal equipment
CN110703972B (en) File control method and electronic equipment
CN111163224B (en) Voice message playing method and electronic equipment
CN108874906B (en) Information recommendation method and terminal
CN108804151B (en) Method and terminal for restarting application program
CN110244884B (en) Desktop icon management method and terminal equipment
CN110167006B (en) Method for controlling application program to use SIM card and terminal equipment
CN110012152B (en) Interface display method and terminal equipment
CN110012151B (en) Information display method and terminal equipment
CN109067975B (en) Contact person information management method and terminal equipment

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