WO2016146056A1 - Page switching method and device - Google Patents

Page switching method and device Download PDF

Info

Publication number
WO2016146056A1
WO2016146056A1 PCT/CN2016/076375 CN2016076375W WO2016146056A1 WO 2016146056 A1 WO2016146056 A1 WO 2016146056A1 CN 2016076375 W CN2016076375 W CN 2016076375W WO 2016146056 A1 WO2016146056 A1 WO 2016146056A1
Authority
WO
WIPO (PCT)
Prior art keywords
page
stack
switching
content
currently displayed
Prior art date
Application number
PCT/CN2016/076375
Other languages
French (fr)
Chinese (zh)
Inventor
任俊彦
Original Assignee
阿里巴巴集团控股有限公司
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 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2016146056A1 publication Critical patent/WO2016146056A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Definitions

  • the present application relates to the field of computer technologies, and in particular, to a page switching method and apparatus.
  • the App In general, after the App launches, it will display a main page. According to the user's operation on the page, the App will also display multiple independent pages. Since an application running in an operating system (eg, Android, or Apple operating system) displays each page, the displayed page is displayed full screen, so that the currently displayed page will completely cover the previous or previous few have been displayed. Page. In the actual application scenario, if the user needs to switch pages, the user needs to continuously click the return button, and the terminal will roll back according to the order in which the pages are opened, until finally returning to the target page desired by the user, and the user can stop clicking the return button. It can be seen that the prior art has low efficiency for page switching.
  • an operating system eg, Android, or Apple operating system
  • the embodiment of the present application provides a page switching method and device, which are used to improve page switching efficiency.
  • a first receiving module configured to receive a switching instruction, where the switching instruction carries a page identifier of the covered page
  • An adjustment module configured to adjust a position of the page content corresponding to the page identifier in the stack, so that the page content is located at a top of the stack of the stack;
  • the first display module is configured to display the page content of the top of the stack.
  • the embodiment of the present invention provides a page switching method and device, where the method receives a switching instruction, where the switching instruction carries a page identifier of the covered page, and adjusts a position of the page content corresponding to the page identifier in the stack, so that the page content is Located at the top of the stack, showing the contents of the page at the top of the stack.
  • the page content corresponding to the page identifier carried in the switching instruction is adjusted from the other storage area of the stack to the top of the stack, and the page content of the top of the stack is directly displayed, that is, directly displayed for the user.
  • the page being overwritten can effectively improve the switching efficiency of the page.
  • Figure 1 is a schematic diagram showing the sequence of each page displayed by the mail application
  • Figure 2 is a schematic diagram of the storage structure of the main page, the page content of the mail 1 and the page content of the mail 2 in the stack;
  • FIG. 3 is a schematic flowchart of a page switching method according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a storage structure of a page content 1, a page content 2, and a page content 3 in a stack according to an embodiment of the present application;
  • FIG. 5 is a schematic diagram of a stack structure obtained by adjusting page content in the stack shown in FIG. 4 according to an embodiment of the present application;
  • FIG. 6 is a schematic diagram of a current page with navigation information according to an embodiment of the present application.
  • FIG. 7 is a second schematic diagram of a current page with navigation information according to an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a page switching apparatus according to an embodiment of the present disclosure.
  • One of the purposes of the present application is to provide a solution that can quickly switch pages, and can be applied to various application scenarios that open multiple pages and need to switch between multiple pages.
  • the mail application displays the main page, the page of the mail 1 and the page of the mail 2 according to the operation of the user, and the order of the mail application to display each page is as shown in FIG.
  • the currently displayed page is a mail.
  • the page of 2 the page of the main page and the mail 1 are covered by the page of the mail 2.
  • the mail application needs to switch from the page of the currently displayed mail 2 to the main page to display the main page.
  • whether two pages are adjacent refers to whether there are direct coverage or covered relationships between the two pages.
  • the page of the mail 2 covers the page of the mail 1 and the page of the mail 1 covers the main page, and there is no direct coverage or coverage relationship between the page of the mail 2 and the main page. Therefore, the mail 2 is not adjacent to the main page.
  • the page of the mail 1 is directly covered by the page of the mail 2, and the page of the mail 1 directly covers the main page.
  • the page of the mail 1 has a direct coverage or a covered relationship with the page of the mail 2 and the main page, therefore, the mail 1
  • the pages are adjacent to the page of the mail 2 and the main page.
  • each current display page content is pushed onto a stack, and the page contents in the stack are stored in order from the bottom of the stack to the top of the stack in the order in which the pages are displayed, each time the page content in the stack needs to be obtained.
  • the button on the previous page (for example, the back button) until the app rolls back to the target page and stops clicking the button, that is, it cannot be directly switched from the current page to the target page that is not adjacent to the current page, which results in
  • the problem of low page switching efficiency is low, and the user's operation convenience is also low.
  • the main page shown in FIG. 1, the page content of the mail 1 and the page content of the mail 2 are stored in the stack as shown in FIG. 2.
  • the page content of the first displayed main page is located.
  • the page content of the last displayed mail 2 is located at the top of the stack.
  • the user Because the currently displayed page is not the main page, the user also needs to click the button on the current page again, and the mail app presses the page content of the mail 1 from the top of the stack according to the instruction corresponding to the button. At this time, the main page The content of the page is at the top of the stack, and the mail app obtains the content of the page of the main page and displays it. It can be seen that the user performs the operation of clicking the button more than once on the current page, and the page is switched from the page of the mail 2 to the main page, so that the switching efficiency of the page is lower, and the user's operation convenience is also low.
  • FIG. 3 is a page switching method according to an embodiment of the present disclosure, which specifically includes the following steps:
  • the switching instruction in the embodiment of the present application carries the page identifier of the covered page, where the switching instruction is used to indicate an operating system in the terminal or an application that displays the page, and switches an existing covered page in the App to the current page. It is shown that the page identifier of the covered page is carried in the switching instruction.
  • the covered page may include one or more of the following types of pages:
  • the first type of page the page opened before the currently displayed page (ie, the current page), that is, the historical time t1 closest to the time t0 at which the current page is opened, the historical time t1 is the time at which other pages are opened, and the covered page (the first)
  • a type of page is not limited to the page level of the current page, that is, the page to be overwritten may be the previous page of the current page, or may be the same level page of the current page.
  • the second type of page the upper level page of the currently displayed page.
  • the page of the mail 3 covers the page of the mail 2
  • the page of the mail 2 covers the page of the mail 1
  • the page of the mail 1 covers the main page
  • the page of the mail 1 to 3 is the same level page.
  • the main page is the upper page of the page of the mail 1 to 3
  • the covered page may be the main page (the second type of page).
  • the third type of page other sibling pages of the currently displayed page.
  • the covered page may be the page of the mail page 2 of the same level of the mail 3 or the page of the mail 1 , and the type of the covered page is the third type of page.
  • the fourth type of page a page that belongs to the same application as the currently displayed page.
  • the fifth type of page a page that does not belong to the same application as the currently displayed page.
  • the covered page may be the same as the current page (the page of the mail 3). Apply the page of Mail 2, this type of page is covered as the fourth type of page.
  • the overwritten page may also be a page of the main page or the mail 1 that does not belong to the same application as the current page (the page of the mail 3), and the type of the covered page is the fifth type of page.
  • the same-level page refers to multiple pages obtained by the user in multiple different operations on the upper-level page, and each peer-level page has only a direct logical relationship with the previous-level page, but between the peer-level pages. There is no direct logical relationship.
  • the switching instruction described in the embodiment of the present application may be a voice switching instruction input by the user in real time in the terminal (for example, “Please switch to an covered page”), or may be a text switching instruction input by the user on the page displayed by the terminal. .
  • the switching instruction described in the embodiment of the present application may be a switching instruction corresponding to each covered page preset by the terminal, and the user may input the switching instruction by means of a physical button or a soft button (ie, a virtual button).
  • the App or the operating system may receive a voice switching instruction input by the user, a text switching instruction, or the like, or may receive the switching instruction by the user by means of a physical button or a soft button.
  • the operating system may include but is not limited to: Android Operating System (Android OS), Apple Operating System (iOS), cloud operating system, etc.
  • each page displayed in the App is a User Interface (UI) unit having a logical relationship with each other, also referred to as a logical UI unit, different operating systems, and representations of logical UI units.
  • UI User Interface
  • the logical UI unit in the Android OS represented by the Activity
  • iOS represented by the scene
  • the logical UI unit can be represented by an Activity or multiple (at least two) activities in the Android OS.
  • the logical UI unit can be represented by one or more scenes in iOS.
  • the page content described in the embodiment of the present application is a page content including one or more Activity/scene.
  • S302 Adjust the position of the page content corresponding to the page identifier in the stack, so that the page content is located at the top of the stack.
  • the embodiment of the present application uses a switching instruction to indicate an App switching page as an example.
  • the method before adjusting the position of the page content corresponding to the page identifier in the stack, the method further includes: storing the page content of the current page, and establishing a page identifier of the current page, the page content, and the preset storage area where the page content is located. Addresses (hereinafter referred to as storage addresses) correspond to each other, so that the App adjusts the position of the page content corresponding to the page identifier in the stack according to the correspondence between the page identifier, the page content, and the storage address.
  • storage addresses correspond to each other, so that the App adjusts the position of the page content corresponding to the page identifier in the stack according to the correspondence between the page identifier, the page content, and the storage address.
  • the page content of the current page is pushed onto the stack (preset storage area), and the corresponding relationship between the page identifier of the current page, the page content, and the storage address in the stack is established.
  • the first-displayed page content refers to the page content of a certain page displayed on the screen for the first time after the App is launched. That is to say, the content of the page displayed for the first time is the content of the page that has not been overwritten by the App after it is launched.
  • the content of the displayed page is not the content of the page displayed for the first time.
  • the user starts an app installed in the mobile phone (terminal), and operates in the main page (the first page) of the app, displays the second page, and then operates the third page in the main page of the app again.
  • the second page and the third page are lower level (ie, different levels) pages of the main page, and the second page and the third page are sibling pages.
  • the App can monitor the current page.
  • the page identifiers of each page are set as follows: P1, P2, and P3, and the pages are sequentially
  • the page content 1, the page content 2, and the page content 3 are pushed into the storage area where the storage addresses are D1, D2, and D3, and the page content is stored.
  • the stack structure of page content 2 and page content 3 is as shown in FIG. 4, where D1 corresponds to the stack bottom of the stack, D3 corresponds to the stack top of the stack, and D2 corresponds to the storage area between the top of the stack and the bottom of the stack (hereinafter referred to as the stack). ).
  • the correspondence between the page identifier, the page content, and the storage address of the page is established, as shown in Table 1.
  • the page content at the top of the stack is the page content of the current page
  • the page content at the bottom of the stack and the stack is the page content of the covered page.
  • the page content 3 is located at the top of the stack. It can be seen that the page content of the current page is the page content 3, the page content of the currently covered page is the page content 1 and the page content 2, and the page content 2 covers the page content 1.
  • the switching instruction may be acquired.
  • the page identifier is identified by the page identifier of the covered page, and then the position of the page content corresponding to the page identifier in the stack (ie, the storage address) is adjusted, so that the page content corresponding to the page identifier is located at the top of the stack.
  • Adjusting the position of the page content of the covered page corresponding to the page identifier in the stack ie, the storage address
  • the page content corresponding to the page identifier is located on the top of the stack, specifically, according to the pre-established page identifier, page content,
  • Corresponding relationship between the storage addresses determining a storage address corresponding to the page identifier carried in the switching instruction, and pushing the page content in the stack one by one in a manner of last in, first out, until the storage address corresponding to the page identifier is pressed out and stored
  • the contents of the page are pushed into the stack one by one, and the page content corresponding to the page identifier carried in the switching instruction is pushed onto the stack, so that the page content corresponding to the page identifier carried in the switching instruction is located.
  • the top of the stack is ie, the storage address
  • the page identifier carried in the received switching instruction is P1
  • the lookup table 1 shows that the page content 1 corresponding to the page identifier P1 is stored in the storage address D1. As can be seen from Table 4, the page content 1 is located at the bottom of the stack. When the position of the page content 1 corresponding to the page identifier P1 in the stack is adjusted, the page content 3, the page content 2, and the page content 1 are sequentially pushed out from the stack shown in FIG. 4, and then the page contents are sequentially arranged in a certain order. Push the stack again, where the last page of the page content is pushed onto the stack, and the stack structure is as Figure 5 shows. Since the last page content 1 is pushed onto the stack, the page content 1 is located at the top of the stack of the stack shown in FIG.
  • page content 1 is located at the top of the stack, and the App can directly obtain the page content 1 adjusted to the top of the stack, and display the page.
  • page content 1 corresponds to the current page
  • page content 2 and page content 3 correspond to the covered page.
  • the above page switching method is described by taking the switching between different levels of pages as an example.
  • the page switching described in the embodiment of the present application can also be switched between the same level pages. For example, if the page content 2 is overwritten by the page content 1 and the page content 1 is overwritten by the page content 3, if you want to switch from the currently displayed page content 3 to the page content 2 corresponding to the same level page, only need to carry it.
  • the switching instruction of the page identifier 2 the position of the page content 2 corresponding to the page identifier 2 in the stack is adjusted, so that the page content 2 is located at the top of the stack, and the page content 2 of the top of the stack is directly displayed.
  • the application can directly switch from the current page to the same level or different level of the covered page that is not adjacent to the current page, without first displaying the covered page adjacent to the current page, thereby effectively improving the switching of the page. effectiveness.
  • the App or the operating system after receiving the switching instruction, the App or the operating system adjusts the position of the page content corresponding to the page identifier in the stack according to the page identifier carried in the switching instruction, so that the content of the page is on the stack.
  • the other page contents in the stack are located at the bottom of the stack or in the stack.
  • the page content at the top of the adjusted stack is directly obtained, and the content of the page is displayed on the page, which is visible.
  • the App or the operating system directly displays the covered page for the user, thereby effectively improving the switching efficiency of the page.
  • the App or the operating system can receive the user input by using a physical button or a soft button.
  • the switching command compares the physical button, and the soft button is a virtual icon button displayed on the display screen, which is intuitive and convenient for the user to operate.
  • the user triggers the terminal to send a switching instruction by clicking a soft button.
  • the soft button may be navigation information displayed in the page, and the navigation information is provided with one or more switching options, and each switching option corresponds to an covered page, and the user may trigger by clicking a switching option.
  • the terminal sends a switching instruction.
  • the method further includes: displaying navigation information in the currently displayed page, where one or more switching options are set in the navigation information.
  • the navigation information may be an independent navigation window or a navigation bar including navigation information.
  • the covered page is the page corresponding to the page content 2 and the page content 1
  • the navigation window is displayed in the currently displayed page.
  • a navigation button corresponding to the page content 2 and the page content 1 is provided in the navigation window.
  • the icon of the switching button may be an icon for indicating the order in which the pages are displayed.
  • the icon of the switching button may be a circular or square button with numbers or letters, for example, corresponding to the page content 2 and the page content 1 respectively.
  • the icon of the toggle button can be 2, 1 on the square button as shown in FIG. 6.
  • the icon of the switching option is the identifier of the covered page corresponding to the switching option, and the identifier of the covered page may be a number. , letters, or thumbnails of pages, etc.
  • a navigation button corresponding to the page content 2 and the page content 1 is respectively disposed in the navigation window, and the icon of the first switching button from the left in the navigation window is the thumbnail of the page content 1 .
  • the icon of the second switching button is a thumbnail of the page content 2, and the user can determine which page content the switching button corresponds to according to the thumbnail displayed on the switching button, and switch to the corresponding page accurately.
  • the navigation information can be automatically displayed when each page is displayed, so that the user can switch the page according to the navigation information when needed.
  • the user may be inconvenienced.
  • the page switching method provided by the embodiment of the present application further includes:
  • the App only displays the navigation when receiving the navigation information display instruction Information to avoid inconvenience to the user.
  • the method may further include:
  • the navigation information is hidden (eg, the navigation window is hidden).
  • the navigation information is a floating information that does not occupy a full screen.
  • the navigation window is a floating window that does not occupy a full screen.
  • the navigation window does not affect the user to browse the full-screen page content on the one hand, and the user can also flexibly move the position of the navigation window according to actual needs, so that the navigation window can be effectively prevented from obscuring the page content that the user wants to obtain.
  • the user when receiving the navigation window display instruction, the user may receive a navigation window display instruction input by the physical button, and the physical button may be a button or multiple buttons, which may be specifically set in the application.
  • the button can also be some existing function buttons on the terminal.
  • the physical button When the physical button is an existing function button on the terminal, the physical button may be a combination of at least two of the existing function buttons such as a power button, a volume button, and a brightness button.
  • the user simultaneously presses the power button and
  • the volume button When the volume button is pressed, the App can receive the navigation information display instruction input by the user through the power button and the volume button.
  • the navigation information display instruction input by the user through the soft key may be specifically received.
  • the soft keys displayed on the page may be buttons with regular graphics, such as a circular button, a square button, etc., as shown in FIG. 7, the soft button is a circular button.
  • the soft button may display the soft button in the currently displayed page when more than one page is displayed by the App. Further, when the page displayed by the App is closed until only one is left, the soft button is hidden.
  • the softkey can be displayed near the edge of the page.
  • the soft button can be a floating button, so that the user can flexibly move the button as needed, thereby effectively preventing the identifier button from obscuring the page content that the user wants to obtain.
  • the embodiment of the present application further provides a page switching apparatus, as shown in FIG. 8 .
  • FIG. 8 is a page switching apparatus according to an embodiment of the present disclosure, which specifically includes:
  • the first receiving module 81 is configured to receive a switching instruction, where the switching instruction carries a page identifier of the covered page;
  • the adjusting module 82 is configured to adjust a position of the page content corresponding to the page identifier in the stack, so that the page The page content corresponding to the face identifier is located at the top of the stack;
  • the first display module 83 is configured to display the page content of the top of the stack.
  • the device further includes:
  • the monitoring module 84 is configured to monitor the currently displayed page and push the page content of each page displayed for the first time onto the stack.
  • the device further includes:
  • a second display module 85 configured to display navigation information in a currently displayed page, where the navigation information is provided with one or more switching options, and each switching option corresponds to one covered page;
  • the first receiving module is specifically configured to receive a switching instruction input by the user through the switching option.
  • the navigation information is a navigation window
  • the navigation window is a floating window that does not occupy a full screen.
  • the device further includes:
  • the second receiving module 86 is configured to receive a navigation information display instruction input by the user through a physical button before displaying the navigation information in the currently displayed page;
  • the device further includes: a third display module 87, configured to receive a navigation information display instruction input by the user through the virtual key displayed in the page before displaying the navigation information in the currently displayed page.
  • a third display module 87 configured to receive a navigation information display instruction input by the user through the virtual key displayed in the page before displaying the navigation information in the currently displayed page.
  • the device further includes:
  • the hiding module 88 is configured to hide the navigation information after displaying the page corresponding to the page identifier.
  • the icon of the switching option is an identifier of the covered page corresponding to the switching option.
  • the covered page includes one or more of the following:
  • the method and device for switching a page provided by the embodiment of the present application, after receiving the switching instruction, the method App or the operating system adjusts the position of the page content corresponding to the page identifier in the stack according to the page identifier carried in the switching instruction.
  • the page content corresponding to the page identifier is located at the top of the stack of the stack, and the other page content in the stack is located at the bottom of the stack or the stack.
  • the page content at the top of the adjusted stack is directly obtained.
  • the content of the page is displayed on the page. It can be seen that the user does not need to perform any operation before displaying the content of the page after receiving the switching instruction, and the App or the operating system directly displays the covered page for the user, which is convenient and fast, thereby effectively improving the page. Switching efficiency.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory.
  • RAM random access memory
  • ROM read only memory
  • Memory is an example of a computer readable medium.
  • Computer readable media including both permanent and non-permanent, removable and non-removable media can be by any method or Technology to achieve information storage.
  • the information can be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device.
  • computer readable media does not include temporary storage of computer readable media, such as modulated data signals and carrier waves.
  • embodiments of the present application can be provided as a method, system, or computer program product.
  • the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment in combination of software and hardware.
  • the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A page switching method and device, which are used for improving the page switching efficiency. The method comprises: receiving a switching instruction, the switching instruction carrying a page identifier of a covered page (S301); adjusting the location of a page content corresponding to the page identifier in a stack, so that the page content corresponding to the page identifier is located at the stack top of the stack (S302); and displaying the page content at the stack top (S303). In this way, so long as a switching instruction is received, a page content corresponding to a page identifier carried in the switching instruction is adjusted to the stack top from other storage region of a stack, and the page content at the stack top is directly displayed, that is, a covered page is directly displayed to a user. Therefore, the page switching efficiency can be effectively improved.

Description

一种页面切换方法及装置Page switching method and device
本申请要求2015年03月19日递交的申请号为201510121421.4、发明名称为“一种页面切换方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 20151012142, filed on Mar.
技术领域Technical field
本申请涉及计算机技术领域,尤其涉及一种页面切换方法及装置。The present application relates to the field of computer technologies, and in particular, to a page switching method and apparatus.
背景技术Background technique
随着移动通信技术的飞速发展,各种移动终端的不断涌现,可安装在移动终端上的应用(Application,App)也越来越多,用户可以通过App展示的页面进行相应的操作以获取资源。With the rapid development of mobile communication technologies and the emergence of various mobile terminals, more and more applications (Applications, App) can be installed on mobile terminals. Users can perform corresponding operations through the pages displayed by the App to obtain resources. .
一般的,App启动之后会展示一个主页面,根据用户在页面上的操作,App还会先后展示多个相互独立的页面。由于运行在操作***(如,安卓、或苹果操作***)中的App在展示每一个页面时,展示的页面为全屏展示,这样,当前展示的页面就会完全覆盖前一个或前几个已经展示的页面。在实际应用场景中,用户如果需要切换页面,需要不断点击返回按键,终端会根据各页面的打开顺序依次回退,直至最终返回到用户期望的目标页面,用户可以停止点击返回按键。可见,现有技术对页面切换的效率很低。In general, after the App launches, it will display a main page. According to the user's operation on the page, the App will also display multiple independent pages. Since an application running in an operating system (eg, Android, or Apple operating system) displays each page, the displayed page is displayed full screen, so that the currently displayed page will completely cover the previous or previous few have been displayed. Page. In the actual application scenario, if the user needs to switch pages, the user needs to continuously click the return button, and the terminal will roll back according to the order in which the pages are opened, until finally returning to the target page desired by the user, and the user can stop clicking the return button. It can be seen that the prior art has low efficiency for page switching.
发明内容Summary of the invention
本申请实施例提供一种页面切换方法及装置,用以提高页面的切换效率。The embodiment of the present application provides a page switching method and device, which are used to improve page switching efficiency.
本申请实施例提供的一种页面切换方法,包括:A page switching method provided by an embodiment of the present application includes:
接收切换指令,所述切换指令中携带有被覆盖页面的页面标识;Receiving a switching instruction, where the switching instruction carries a page identifier of the covered page;
调整所述页面标识对应的页面内容在堆栈中的位置,使得所述页面内容位于所述堆栈的栈顶;Adjusting a position of the page content corresponding to the page identifier in the stack such that the page content is located at a top of the stack of the stack;
展示所述栈顶的页面内容。Show the page content of the top of the stack.
本申请实施例提供的一种页面切换装置,包括:A page switching apparatus provided by an embodiment of the present application includes:
第一接收模块,用于接收切换指令,所述切换指令中携带有被覆盖页面的页面标识;a first receiving module, configured to receive a switching instruction, where the switching instruction carries a page identifier of the covered page;
调整模块,用于调整所述页面标识对应的页面内容在堆栈中的位置,使得所述页面内容位于所述堆栈的栈顶;An adjustment module, configured to adjust a position of the page content corresponding to the page identifier in the stack, so that the page content is located at a top of the stack of the stack;
第一展示模块,用于展示所述栈顶的页面内容。 The first display module is configured to display the page content of the top of the stack.
本申请实施例提供一种页面切换方法及装置,该方法接收切换指令,该切换指令中携带有被覆盖页面的页面标识,调整该页面标识对应的页面内容在堆栈中的位置,使得该页面内容位于堆栈的栈顶,展示该栈顶的页面内容。这样,只要接收到切换指令时,就将该切换指令中携带的页面标识对应的页面内容,由堆栈的其他存储区域调整到栈顶,并直接展示该栈顶的页面内容,即直接为用户展示被覆盖的页面,从而可有效提高页面的切换效率。The embodiment of the present invention provides a page switching method and device, where the method receives a switching instruction, where the switching instruction carries a page identifier of the covered page, and adjusts a position of the page content corresponding to the page identifier in the stack, so that the page content is Located at the top of the stack, showing the contents of the page at the top of the stack. In this way, as long as the switching instruction is received, the page content corresponding to the page identifier carried in the switching instruction is adjusted from the other storage area of the stack to the top of the stack, and the page content of the top of the stack is directly displayed, that is, directly displayed for the user. The page being overwritten can effectively improve the switching efficiency of the page.
附图说明DRAWINGS
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the present application, and are intended to be a part of this application. In the drawing:
图1为邮件App展示各页面的先后顺序示意图;Figure 1 is a schematic diagram showing the sequence of each page displayed by the mail application;
图2为主页面、邮件1的页面内容和邮件2的页面内容在堆栈中的存储结构示意图;Figure 2 is a schematic diagram of the storage structure of the main page, the page content of the mail 1 and the page content of the mail 2 in the stack;
图3为本申请实施例提供的页面切换方法流程示意图;FIG. 3 is a schematic flowchart of a page switching method according to an embodiment of the present application;
图4为本申请实施例提供的页面内容1、页面内容2和页面内容3在堆栈中的存储结构示意图;4 is a schematic diagram of a storage structure of a page content 1, a page content 2, and a page content 3 in a stack according to an embodiment of the present application;
图5为本申请实施例提供的调整图4所示的堆栈中的页面内容得到的堆栈结构示意图;FIG. 5 is a schematic diagram of a stack structure obtained by adjusting page content in the stack shown in FIG. 4 according to an embodiment of the present application; FIG.
图6为本申请实施例提供的具有导航信息的当前页面示意图之一;FIG. 6 is a schematic diagram of a current page with navigation information according to an embodiment of the present application;
图7为本申请实施例提供的具有导航信息的当前页面示意图之二;FIG. 7 is a second schematic diagram of a current page with navigation information according to an embodiment of the present application;
图8为本申请实施例提供的页面切换装置结构示意图。FIG. 8 is a schematic structural diagram of a page switching apparatus according to an embodiment of the present disclosure.
具体实施方式detailed description
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请具体实施例及相应的附图对本申请技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions of the present application will be clearly and completely described in the following with reference to the specific embodiments of the present application and the corresponding drawings. It is apparent that the described embodiments are only a part of the embodiments of the present application, and not all of them. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
本申请的目的之一是提供一种能够快捷切换页面的方案,可以应用于各种打开多个页面、且需要在多个页面之间切换的应用场景。例如,假设用户在手机(移动终端)中启动邮件App,且邮件App根据用户的操作先后展示主页面、邮件1的页面和邮件2的页面,邮件App展示各页面的先后顺序如图1所示,在图1中,当前展示的页面为邮件 2的页面,主页面和邮件1的页面被邮件2的页面覆盖。当用户需要邮件App再次展示主页面(该主页面与邮件2的页面不相邻)以进行相关操作时,邮件App需要从当前展示的邮件2的页面切换到主页面,展示该主页面。One of the purposes of the present application is to provide a solution that can quickly switch pages, and can be applied to various application scenarios that open multiple pages and need to switch between multiple pages. For example, suppose the user starts the mail application in the mobile phone (mobile terminal), and the mail application displays the main page, the page of the mail 1 and the page of the mail 2 according to the operation of the user, and the order of the mail application to display each page is as shown in FIG. In Figure 1, the currently displayed page is a mail. The page of 2, the page of the main page and the mail 1 are covered by the page of the mail 2. When the user needs the mail application to display the main page again (the main page is not adjacent to the page of the mail 2) for related operations, the mail application needs to switch from the page of the currently displayed mail 2 to the main page to display the main page.
需要说明的是,两个页面是否相邻是指两个页面是否存在直接的覆盖或被覆盖的关系。比如,邮件2的页面覆盖邮件1的页面,邮件1的页面覆盖主页面,则邮件2的页面与主页面之间没有直接的覆盖或被覆盖关系,因此,邮件2与主页面不相邻,但是邮件1的页面直接被邮件2的页面覆盖,且邮件1的页面直接覆盖主页面,显然,邮件1的页面与邮件2的页面和主页面存在直接的覆盖或被覆盖关系,因此,邮件1的页面分别与邮件2的页面和主页面相邻。It should be noted that whether two pages are adjacent refers to whether there are direct coverage or covered relationships between the two pages. For example, the page of the mail 2 covers the page of the mail 1 and the page of the mail 1 covers the main page, and there is no direct coverage or coverage relationship between the page of the mail 2 and the main page. Therefore, the mail 2 is not adjacent to the main page. However, the page of the mail 1 is directly covered by the page of the mail 2, and the page of the mail 1 directly covers the main page. Obviously, the page of the mail 1 has a direct coverage or a covered relationship with the page of the mail 2 and the main page, therefore, the mail 1 The pages are adjacent to the page of the mail 2 and the main page.
可见,上述的主页面与邮件2的页面不相邻,是指主页面与邮件2的页面不存在直接的覆盖或被覆盖的关系。It can be seen that the above main page is not adjacent to the page of the mail 2, which means that the main page does not directly cover or be covered by the page of the mail 2.
如果按照现有技术,每一个当前展示页面内容都会压入一个堆栈,堆栈中的页面内容按照页面展示的先后顺序从栈底到栈顶按次序存储,每次需要获取堆栈中的页面内容时,只能获取栈顶存储的页面内容,而不能跳过栈顶获取堆栈的其他存储区域存储的页面内容,这样,如果需要App展示被覆盖的页面时,就需要用户在当前页面上点击回退到前一页的按钮(例如,退回按钮),直到App回退到目标页面时停止点击按钮,也就是说,无法直接从当前页面切换至与该当前页面不相邻的目标页面,这就会导致页面的切换效率较低的问题,同时用户的操作便利性也较低。According to the prior art, each current display page content is pushed onto a stack, and the page contents in the stack are stored in order from the bottom of the stack to the top of the stack in the order in which the pages are displayed, each time the page content in the stack needs to be obtained. You can only get the page content stored on the top of the stack, but you can't skip the top of the stack to get the page content stored in other storage areas of the stack. In this way, if the App needs to display the covered page, the user needs to click back on the current page. The button on the previous page (for example, the back button) until the app rolls back to the target page and stops clicking the button, that is, it cannot be directly switched from the current page to the target page that is not adjacent to the current page, which results in The problem of low page switching efficiency is low, and the user's operation convenience is also low.
上例中,图1所示的主页面、邮件1的页面内容和邮件2的页面内容在堆栈中的存储方式如图2所示,在图2中,最先展示的主页面的页面内容位于栈底,最后展示的邮件2的页面内容位于栈顶,当用户需要邮件App再次展示主页面时,点击当前页面上用于指示邮件App回退到前一页的按钮,邮件App根据该按钮对应的指令,将邮件2的页面内容从栈顶压出,此时,邮件1的页面内容位于栈顶,邮件App获取邮件1的页面内容并展示。由于,当前展示的页面不是主页面,用户还需要再次点击当前页面上的所述按钮,邮件App根据该按钮对应的指令,将邮件1的页面内容从栈顶压出,此时,主页面的页面内容位于栈顶,邮件App获取主页面的页面内容并展示。可见,用户在当前页面上做超过一次的点击按钮的操作,页面才从邮件2的页面切换到主页面,这样,页面的切换效率就较低,同时用户的操作便利性也较低。In the above example, the main page shown in FIG. 1, the page content of the mail 1 and the page content of the mail 2 are stored in the stack as shown in FIG. 2. In FIG. 2, the page content of the first displayed main page is located. At the bottom of the stack, the page content of the last displayed mail 2 is located at the top of the stack. When the user needs the mail application to display the main page again, click the button on the current page for instructing the mail application to fall back to the previous page, and the mail App corresponds to the button according to the button. The instruction presses the page content of the mail 2 from the top of the stack. At this time, the page content of the mail 1 is located at the top of the stack, and the mail application obtains the content of the page of the mail 1 and displays it. Because the currently displayed page is not the main page, the user also needs to click the button on the current page again, and the mail app presses the page content of the mail 1 from the top of the stack according to the instruction corresponding to the button. At this time, the main page The content of the page is at the top of the stack, and the mail app obtains the content of the page of the main page and displays it. It can be seen that the user performs the operation of clicking the button more than once on the current page, and the page is switched from the page of the mail 2 to the main page, so that the switching efficiency of the page is lower, and the user's operation convenience is also low.
图3为本申请实施例提供的页面切换方法,具体包括以下步骤:FIG. 3 is a page switching method according to an embodiment of the present disclosure, which specifically includes the following steps:
S301:接收切换指令。 S301: Receive a switching instruction.
本申请实施例所述的切换指令中携带有被覆盖页面的页面标识,该切换指令用于指示终端中的操作***或展示页面的App,将该App中当前某个被覆盖页面切换至当前页面展示,被覆盖页面的页面标识携带在该切换指令中。The switching instruction in the embodiment of the present application carries the page identifier of the covered page, where the switching instruction is used to indicate an operating system in the terminal or an application that displays the page, and switches an existing covered page in the App to the current page. It is shown that the page identifier of the covered page is carried in the switching instruction.
在本申请实施例中,所述的被覆盖页面,可包括如下类型的页面中的一个或多个:In the embodiment of the present application, the covered page may include one or more of the following types of pages:
第一类页面:当前展示的页面(即当前页面)之前打开的页面,即距离打开当前页面的时刻t0最近的历史时刻t1,该历史时刻t1为打开其他页面的时刻,被覆盖的页面(第一类页面)与当前页面的页面级别关系不限,即该被覆盖的页面可以是当前页面的上一级页面,也可以是当前页面的同级页面。The first type of page: the page opened before the currently displayed page (ie, the current page), that is, the historical time t1 closest to the time t0 at which the current page is opened, the historical time t1 is the time at which other pages are opened, and the covered page (the first) A type of page) is not limited to the page level of the current page, that is, the page to be overwritten may be the previous page of the current page, or may be the same level page of the current page.
第二类页面:当前展示的页面的上级页面。The second type of page: the upper level page of the currently displayed page.
例如,若当前页面为邮件3的页面,邮件3的页面覆盖邮件2的页面,邮件2的页面覆盖邮件1的页面,邮件1的页面覆盖主页面,由于邮件1~3的页面为同级页面,主页面为邮件1~3的页面的上一级页面,则该被覆盖的页面可以是主页面(第二类页面)。For example, if the current page is the page of the mail 3, the page of the mail 3 covers the page of the mail 2, the page of the mail 2 covers the page of the mail 1, the page of the mail 1 covers the main page, and the page of the mail 1 to 3 is the same level page. The main page is the upper page of the page of the mail 1 to 3, and the covered page may be the main page (the second type of page).
第三类页面:当前展示的页面的其他同级页面。The third type of page: other sibling pages of the currently displayed page.
具体的,在上例中,被覆盖的页面可以是邮件3的同级页面邮件2的页面或邮件1的页面,这类型被覆盖页面为第三类页面。Specifically, in the above example, the covered page may be the page of the mail page 2 of the same level of the mail 3 or the page of the mail 1 , and the type of the covered page is the third type of page.
第四类页面:与当前展示的页面属于同一应用的页面。The fourth type of page: a page that belongs to the same application as the currently displayed page.
第五类页面:与当前展示的页面不属于同一应用的页面。The fifth type of page: a page that does not belong to the same application as the currently displayed page.
上例中,若主页面和邮件1的页面为邮件App1提供的页面,邮件2和邮件3为邮件App2提供的页面,则被覆盖的页面可以是与当前页面(邮件3的页面)属于同一个应用的邮件2的页面,这类型被覆盖的页面为第四类页面。被覆盖页面还可以是与当前页面(邮件3的页面)不属于同一个应用的主页面或邮件1的页面,这类型被覆盖页面为第五类页面。In the above example, if the page of the main page and the mail 1 is the page provided by the mail App1, and the mail 2 and the mail 3 are the pages provided by the mail App2, the covered page may be the same as the current page (the page of the mail 3). Apply the page of Mail 2, this type of page is covered as the fourth type of page. The overwritten page may also be a page of the main page or the mail 1 that does not belong to the same application as the current page (the page of the mail 3), and the type of the covered page is the fifth type of page.
所述的同级页面是指用户在上一级页面上的多次不同的操作得到的多个页面,各同级页面仅与上一级页面具有直接的逻辑关系,但是各同级页面之间没有直接的逻辑关系。The same-level page refers to multiple pages obtained by the user in multiple different operations on the upper-level page, and each peer-level page has only a direct logical relationship with the previous-level page, but between the peer-level pages. There is no direct logical relationship.
本申请实施例所述的切换指令可以是用户在终端中实时输入的语音切换指令(如,“请切换至某被覆盖页面”),也可以是用户在终端展示的页面上输入的文字切换指令。本申请实施例所述的切换指令可以是终端预设的与每一个被覆盖页面对应的切换指令,用户可通过物理按键或软按键(即虚拟按键)的方式输入该切换指令。The switching instruction described in the embodiment of the present application may be a voice switching instruction input by the user in real time in the terminal (for example, “Please switch to an covered page”), or may be a text switching instruction input by the user on the page displayed by the terminal. . The switching instruction described in the embodiment of the present application may be a switching instruction corresponding to each covered page preset by the terminal, and the user may input the switching instruction by means of a physical button or a soft button (ie, a virtual button).
则App或操作***可接收用户输入的语音切换指令、文字切换指令等、或可接收用户通过物理按键或软按键的方式输入该切换指令。所述的操作***可包括但不限于:安 卓操作***(Android Operating System,Android OS)、苹果操作***(iphone Operating System,iOS)、云操作***等。The App or the operating system may receive a voice switching instruction input by the user, a text switching instruction, or the like, or may receive the switching instruction by the user by means of a physical button or a soft button. The operating system may include but is not limited to: Android Operating System (Android OS), Apple Operating System (iOS), cloud operating system, etc.
在本申请实施例中,App中展示的每一个页面为相互之间具有逻辑关系的用户界面(User Interface,UI)单元,也称为逻辑UI单元,不同的操作***,逻辑UI单元的表现形式不同,例如,逻辑UI单元在Android OS中,由Activity表示,在iOS中,由scene表示,而不是对话框之类的交互控件。逻辑UI单元在Android OS中,可由一个Activity或多个(至少两个)Activity表示,同理,逻辑UI单元在iOS中可由一个或多个scene表示。In the embodiment of the present application, each page displayed in the App is a User Interface (UI) unit having a logical relationship with each other, also referred to as a logical UI unit, different operating systems, and representations of logical UI units. Different, for example, the logical UI unit in the Android OS, represented by the Activity, in iOS, represented by the scene, rather than interactive controls such as dialog boxes. The logical UI unit can be represented by an Activity or multiple (at least two) activities in the Android OS. Similarly, the logical UI unit can be represented by one or more scenes in iOS.
则本申请实施例所述的页面内容为包括一个或多个Activity/scene的页面内容。The page content described in the embodiment of the present application is a page content including one or more Activity/scene.
S302:调整页面标识对应的页面内容在堆栈中的位置,使得该页面内容位于堆栈的栈顶。S302: Adjust the position of the page content corresponding to the page identifier in the stack, so that the page content is located at the top of the stack.
本申请实施例以切换指令用于指示App切换页面为例说明。The embodiment of the present application uses a switching instruction to indicate an App switching page as an example.
在申请实施例中,调整页面标识对应的页面内容在堆栈中的位置之前,还包括:存储当前页面的页面内容,且建立当前页面的页面标识、页面内容、页面内容所在的预设存储区域的地址(以下称为存储地址)相互之间的对应关系,以便于App根据页面标识、页面内容、存储地址的对应关系,来调整页面标识对应的页面内容在堆栈中的位置。In the application embodiment, before adjusting the position of the page content corresponding to the page identifier in the stack, the method further includes: storing the page content of the current page, and establishing a page identifier of the current page, the page content, and the preset storage area where the page content is located. Addresses (hereinafter referred to as storage addresses) correspond to each other, so that the App adjusts the position of the page content corresponding to the page identifier in the stack according to the correspondence between the page identifier, the page content, and the storage address.
具体的,当App监控到当前页面之后,将当前页面的页面内容压入堆栈(预设存储区域),建立该当前页面的页面标识、页面内容、在堆栈中的存储地址的对应关系。为了避免同一个页面内容重复存储,仅将首次展示的页面的页面内容压入堆栈,其中,该首次展示的页面内容是指所述的App启动后,首次展示在屏幕上的某页面的页面内容,也就是说,该首次展示的页面内容为该App启动之后当前还未被覆盖过的页面内容。当该页面内容被其他页面覆盖后又展示时,则该又展示的页面内容不属于首次展示的页面内容。Specifically, after the App monitors the current page, the page content of the current page is pushed onto the stack (preset storage area), and the corresponding relationship between the page identifier of the current page, the page content, and the storage address in the stack is established. In order to avoid repeated storage of the same page content, only the page content of the first-displayed page is pushed onto the stack, wherein the first-displayed page content refers to the page content of a certain page displayed on the screen for the first time after the App is launched. That is to say, the content of the page displayed for the first time is the content of the page that has not been overwritten by the App after it is launched. When the content of the page is overwritten by other pages, the content of the displayed page is not the content of the page displayed for the first time.
例如,假设用户启动手机(终端)中安装的某个App,且在该App的主页面(第一个页面)中操作,显示第二页面,然后再次在App的主页面中操作展示第三页面,其中,第二页面和第三页面分别是主页面的下级(即不同级)页面,第二页面和第三页面为同级页面。For example, suppose the user starts an app installed in the mobile phone (terminal), and operates in the main page (the first page) of the app, displays the second page, and then operates the third page in the main page of the app again. The second page and the third page are lower level (ie, different levels) pages of the main page, and the second page and the third page are sibling pages.
则该App可监控当前页面,当先后监控到第一个页面、第二个页面和第三个页面为当前页面时,建立各页面的页面标识依次为:P1、P2和P3,依次将各页面的页面内容1、页面内容2和页面内容3压入存储地址为D1、D2和D3的存储区域,存储有页面内容1、 页面内容2和页面内容3的堆栈结构如图4所示,其中,D1对应堆栈的栈底,D3对应堆栈的栈顶,D2对应栈顶和栈底之间的存储区域(以下称为栈中)。进一步的,针对每一个页面,建立该页面的页面标识、页面内容、存储地址之间的对应关系,如表1所示。The App can monitor the current page. When the first page, the second page, and the third page are respectively monitored as the current page, the page identifiers of each page are set as follows: P1, P2, and P3, and the pages are sequentially The page content 1, the page content 2, and the page content 3 are pushed into the storage area where the storage addresses are D1, D2, and D3, and the page content is stored. The stack structure of page content 2 and page content 3 is as shown in FIG. 4, where D1 corresponds to the stack bottom of the stack, D3 corresponds to the stack top of the stack, and D2 corresponds to the storage area between the top of the stack and the bottom of the stack (hereinafter referred to as the stack). ). Further, for each page, the correspondence between the page identifier, the page content, and the storage address of the page is established, as shown in Table 1.
页面标识Page identifier 页面内容Page content 存储地址Storage address
P1P1 页面内容1Page content 1 D1D1
P2P2 页面内容2Page content 2 D2D2
P3P3 页面内容3Page content 3 D3D3
表1Table 1
在本申请实施例中,位于栈顶的页面内容为当前页面的页面内容,位于栈底和栈中的页面内容为被覆盖页面的页面内容。由图4可知,页面内容3位于栈顶,可知,当前页面的页面内容为页面内容3,当前被覆盖页面的页面内容为页面内容1和页面内容2,且页面内容2覆盖页面内容1。In the embodiment of the present application, the page content at the top of the stack is the page content of the current page, and the page content at the bottom of the stack and the stack is the page content of the covered page. As can be seen from FIG. 4, the page content 3 is located at the top of the stack. It can be seen that the page content of the current page is the page content 3, the page content of the currently covered page is the page content 1 and the page content 2, and the page content 2 covers the page content 1.
在本申请实施例中,存储当前页面的页面内容,且建立当前页面的页面标识、页面内容、存储地址之间的对应关系后,若通过步骤S301接收到切换指令时,可以获取该切换指令中的页面标识,该页面标识为被覆盖页面的页面标识,然后调整该页面标识对应的页面内容在堆栈中的位置(即存储地址),使得该页面标识对应的页面内容位于堆栈的栈顶。In the embodiment of the present application, after the page content of the current page is stored, and the correspondence between the page identifier, the page content, and the storage address of the current page is established, if the switching instruction is received through step S301, the switching instruction may be acquired. The page identifier is identified by the page identifier of the covered page, and then the position of the page content corresponding to the page identifier in the stack (ie, the storage address) is adjusted, so that the page content corresponding to the page identifier is located at the top of the stack.
调整该页面标识对应的被覆盖页面的页面内容在堆栈中的位置(即存储地址),使得该页面标识对应的页面内容位于堆栈的栈顶,具体的,根据预先建立的页面标识、页面内容、存储地址之间的对应关系,确定切换指令中携带的页面标识对应的存储地址,将堆栈中的页面内容按照后进先出的方式逐一压出,直到压出所述页面标识对应的存储地址存储的页面内容为止;然后将压出的各页面内容再次逐一压入堆栈,其中,切换指令中携带的页面标识对应的页面内容最后一个压入堆栈,使得切换指令中携带的页面标识对应的页面内容位于栈顶。Adjusting the position of the page content of the covered page corresponding to the page identifier in the stack (ie, the storage address), so that the page content corresponding to the page identifier is located on the top of the stack, specifically, according to the pre-established page identifier, page content, Corresponding relationship between the storage addresses, determining a storage address corresponding to the page identifier carried in the switching instruction, and pushing the page content in the stack one by one in a manner of last in, first out, until the storage address corresponding to the page identifier is pressed out and stored The contents of the page are pushed into the stack one by one, and the page content corresponding to the page identifier carried in the switching instruction is pushed onto the stack, so that the page content corresponding to the page identifier carried in the switching instruction is located. The top of the stack.
沿用上例,假设接收到的切换指令中携带的页面标识为P1,则可确定需要从当前展示的页面内容3直接切换到被覆盖上一级的页面的页面内容1。According to the above example, if the page identifier carried in the received switching instruction is P1, it can be determined that the page content 3 of the currently displayed page content 3 needs to be directly switched to the page content 1 of the page that is overwritten.
查找表1可知,页面标识P1对应的页面内容1存储于存储地址D1中,由表4可知,页面内容1位于堆栈的栈底。在调整页面标识P1对应的页面内容1在堆栈中的位置时,将页面内容3、页面内容2和页面内容1依次从图4所示的堆栈中压出,然后,按照一定顺序将各页面内容再次压入堆栈,其中,页面内容1最后一个压入堆栈,堆栈结构如 图5所示。由于页面内容1最后一个压入堆栈,因此,该页面内容1位于图5所示的堆栈的栈顶。需要说明的是,在本申请实施例中,除页面内容1之外的其他各页面内容压入堆栈的先后顺序不限,在图5所示的堆栈结构中,页面内容3和页面内容2是按照页面内容3、页面内容2的先后顺序依次压入堆栈的。The lookup table 1 shows that the page content 1 corresponding to the page identifier P1 is stored in the storage address D1. As can be seen from Table 4, the page content 1 is located at the bottom of the stack. When the position of the page content 1 corresponding to the page identifier P1 in the stack is adjusted, the page content 3, the page content 2, and the page content 1 are sequentially pushed out from the stack shown in FIG. 4, and then the page contents are sequentially arranged in a certain order. Push the stack again, where the last page of the page content is pushed onto the stack, and the stack structure is as Figure 5 shows. Since the last page content 1 is pushed onto the stack, the page content 1 is located at the top of the stack of the stack shown in FIG. It should be noted that, in the embodiment of the present application, the order of the contents of each page except the page content 1 is pushed into the stack. In the stack structure shown in FIG. 5, the page content 3 and the page content 2 are Press the stack in the order of page content 3 and page content 2.
S303:展示栈顶的页面内容。S303: Display the content of the page at the top of the stack.
继续沿用上例,将页面内容3、页面内容2、页面内容1先后压入堆栈之后,页面内容1位于堆栈的栈顶,App可直接获取位置调整为栈顶的页面内容1,并展示该页面内容1,此时,页面内容1对应当前页面,页面内容2和页面内容3对应被覆盖页面。Continuing with the above example, after page content 3, page content 2, and page content 1 are successively pushed onto the stack, the page content 1 is located at the top of the stack, and the App can directly obtain the page content 1 adjusted to the top of the stack, and display the page. Content 1, at this time, page content 1 corresponds to the current page, and page content 2 and page content 3 correspond to the covered page.
上述页面切换方法是以不同级页面之间切换为例说明的,本申请实施例所述的页面切换,还可以在同级页面之间切换。比如,假设页面内容2被页面内容1覆盖,页面内容1被页面内容3覆盖,则如果想要从当前展示的页面内容3切换至同级页面对应的页面内容2时,只需要在接收到携带页面标识2的切换指令后,调整页面标识2对应的页面内容2在堆栈中的位置,使得该页面内容2位于堆栈的栈顶,且直接展示栈顶的页面内容2。The above page switching method is described by taking the switching between different levels of pages as an example. The page switching described in the embodiment of the present application can also be switched between the same level pages. For example, if the page content 2 is overwritten by the page content 1 and the page content 1 is overwritten by the page content 3, if you want to switch from the currently displayed page content 3 to the page content 2 corresponding to the same level page, only need to carry it. After the switching instruction of the page identifier 2, the position of the page content 2 corresponding to the page identifier 2 in the stack is adjusted, so that the page content 2 is located at the top of the stack, and the page content 2 of the top of the stack is directly displayed.
可见本申请可直接从当前页面切换至与该当前页面不相邻的同级或不同级被覆盖页面,而不需先展示与该当前页面相邻的被覆盖页面,从而可有效提高页面的切换效率。It can be seen that the application can directly switch from the current page to the same level or different level of the covered page that is not adjacent to the current page, without first displaying the covered page adjacent to the current page, thereby effectively improving the switching of the page. effectiveness.
在本申请实施例中,由于当前页面的页面内容1已经展示过(即页面内容1已经位于堆栈中),因此,App监控到当前页面时,没必要再次将该页面的页面内容1压入堆栈。In the embodiment of the present application, since the page content 1 of the current page has been displayed (ie, the page content 1 is already in the stack), when the App monitors the current page, it is not necessary to press the page content 1 of the page into the stack again. .
上述图3所示的方法中,App或操作***在接收到切换指令后,根据切换指令中携带的页面标识,调整该页面标识对应的页面内容在堆栈中的位置,使得该页面内容位于堆栈的栈顶,堆栈中的其他页面内容位于栈底或栈中,在需要展示页面标识对应的页面时,直接获取位于调整后的堆栈的栈顶的页面内容,将页面内容展示在页面上,可见,在接收到切换指令后展示页面内容之前,不需要用户进行任何操作,App或操作***直接为用户展示被覆盖页面,从而可有效提高页面的切换效率。In the method shown in FIG. 3, after receiving the switching instruction, the App or the operating system adjusts the position of the page content corresponding to the page identifier in the stack according to the page identifier carried in the switching instruction, so that the content of the page is on the stack. At the top of the stack, the other page contents in the stack are located at the bottom of the stack or in the stack. When the page corresponding to the page identifier needs to be displayed, the page content at the top of the adjusted stack is directly obtained, and the content of the page is displayed on the page, which is visible. Before the page content is displayed after receiving the switching instruction, the user does not need to perform any operation, and the App or the operating system directly displays the covered page for the user, thereby effectively improving the switching efficiency of the page.
此外,若当前展示被覆盖页面时,由于其他页面的页面内容仍然在堆栈中而不是被压出堆栈,因此,其他页面处于被覆盖状态而不是被关闭,这样,当需要再次展示已经展示过的页面时,直接从堆栈中获取页面内容并展示,而不需要再次获取页面内容来展示,从而可进一步有效提高页面的切换效率。In addition, if the current presentation is overwritten, since the page content of other pages is still on the stack instead of being pushed out of the stack, other pages are overwritten instead of being closed, so that when it is necessary to re-display the already displayed When the page is obtained, the page content is directly obtained from the stack and displayed, and the page content is not required to be displayed again, thereby further improving the switching efficiency of the page.
在本申请实施例中,App或操作***可接收用户通过物理按键或软按键的方式输入 的切换指令,相比较物理按键,软按键是显示在显示屏上的虚拟图标按键,用户操作时,直观且方便。In the embodiment of the present application, the App or the operating system can receive the user input by using a physical button or a soft button. The switching command compares the physical button, and the soft button is a virtual icon button displayed on the display screen, which is intuitive and convenient for the user to operate.
因此,在本申请实施例中,优选的,用户通过点击软按键来触发终端发送切换指令。Therefore, in the embodiment of the present application, preferably, the user triggers the terminal to send a switching instruction by clicking a soft button.
具体的,所述软按键可以是展示在页面中的导航信息,该导航信息中设置有一个或多个切换选项,每一个切换选项与一个被覆盖页面相对应,用户可通过点击切换选项来触发终端发送切换指令。Specifically, the soft button may be navigation information displayed in the page, and the navigation information is provided with one or more switching options, and each switching option corresponds to an covered page, and the user may trigger by clicking a switching option. The terminal sends a switching instruction.
则在本申请实施例中,所述方法还包括:在当前展示的页面中展示导航信息,其中,该导航信息中设置有一个或多个切换选项。In the embodiment of the present application, the method further includes: displaying navigation information in the currently displayed page, where one or more switching options are set in the navigation information.
本申请实施例所述的多个切换选项,即至少两个切换选项。The multiple switching options described in the embodiments of the present application, that is, at least two switching options.
可选的,所述的导航信息可以是一个独立的导航窗口,也可以是包括导航信息的导航条。Optionally, the navigation information may be an independent navigation window or a navigation bar including navigation information.
如图6所示,假设当前展示图4所示的堆栈中的页面内容3对应的页面,则被覆盖页面为页面内容2和页面内容1对应的页面,在当前展示的页面中展示导航窗口,导航窗口中设置有与页面内容2和页面内容1分别对应的切换按钮。As shown in FIG. 6 , assuming that the page corresponding to the page content 3 in the stack shown in FIG. 4 is currently displayed, the covered page is the page corresponding to the page content 2 and the page content 1 , and the navigation window is displayed in the currently displayed page. A navigation button corresponding to the page content 2 and the page content 1 is provided in the navigation window.
该切换按钮的图标可以为用于表示页面展示先后顺序的图标,如,切换按钮的图标可以是带有数字或字母的圆形或方形按钮,例如,与页面内容2和页面内容1分别对应的切换按钮的图标可以为如图6所示的方形按钮上的2、1。The icon of the switching button may be an icon for indicating the order in which the pages are displayed. For example, the icon of the switching button may be a circular or square button with numbers or letters, for example, corresponding to the page content 2 and the page content 1 respectively. The icon of the toggle button can be 2, 1 on the square button as shown in FIG. 6.
为了进一步让用户直观的知晓切换选项对应的页面内容,提高用户切换页面的准确性,优选的,切换选项的图标为该切换选项对应的被覆盖页面的标识,该被覆盖页面的标识可以是数字、字母,或者是页面的缩略图等标识。In order to further enable the user to intuitively know the page content corresponding to the switching option and improve the accuracy of the user switching the page, preferably, the icon of the switching option is the identifier of the covered page corresponding to the switching option, and the identifier of the covered page may be a number. , letters, or thumbnails of pages, etc.
如图7所示,在上例中,导航窗口中设置有与页面内容2和页面内容1分别对应的切换按钮,导航窗口中左起第一个切换按钮的图标为页面内容1的缩略图,第二个切换按钮的图标为页面内容2的缩略图,用户可根据切换按钮上展示的缩略图,就可以确定该切换按钮对应哪一个页面内容,并准确切换到对应的页面。As shown in FIG. 7 , in the above example, a navigation button corresponding to the page content 2 and the page content 1 is respectively disposed in the navigation window, and the icon of the first switching button from the left in the navigation window is the thumbnail of the page content 1 . The icon of the second switching button is a thumbnail of the page content 2, and the user can determine which page content the switching button corresponds to according to the thumbnail displayed on the switching button, and switch to the corresponding page accurately.
在本申请实施例中,可以在展示每一个页面时,可自动展示导航信息,方便用户在需要时根据导航信息切换页面。但是,为了避免用户在不需要切换页面时,导航信息可能会遮挡页面内容,可能会给用户造成不便。In the embodiment of the present application, the navigation information can be automatically displayed when each page is displayed, so that the user can switch the page according to the navigation information when needed. However, in order to prevent the user from blocking the page content when the user does not need to switch pages, the user may be inconvenienced.
则在本申请实施例中,在当前展示的页面中展示导航信息之前,本申请实施例提供的页面切换方法还包括:In the embodiment of the present application, before the navigation information is displayed in the currently displayed page, the page switching method provided by the embodiment of the present application further includes:
接收导航信息展示指令,则App只有在接收到该导航信息展示指令时,才展示导航 信息,从而避免给用户造成不便。Receiving the navigation information display instruction, the App only displays the navigation when receiving the navigation information display instruction Information to avoid inconvenience to the user.
在本申请实施例中,为了避免用户在不需要切换页面时,展示在当前页面上的导航信息(如,导航窗口)可能会遮挡页面内容给用户造成不便,所述方法还包括:In the embodiment of the present application, in order to prevent the navigation information (such as the navigation window) displayed on the current page from being occluded by the user to the user, the method may further include:
在展示页面标识对应的页面之后,隐藏所述导航信息(如,隐藏导航窗口)。After the corresponding page of the display page identifier is displayed, the navigation information is hidden (eg, the navigation window is hidden).
可选的,该导航信息为一个不占据全屏的浮动信息,当导航信息为导航窗口时,所述导航窗口为一个不占据全屏的浮动窗口。这样,导航窗口一方面不影响用户浏览全屏的页面内容,另一方面用户还可以根据实际需要灵活移动该导航窗口的位置,这样,可有效避免该导航窗口遮挡用户想要获取的页面内容。Optionally, the navigation information is a floating information that does not occupy a full screen. When the navigation information is a navigation window, the navigation window is a floating window that does not occupy a full screen. In this way, the navigation window does not affect the user to browse the full-screen page content on the one hand, and the user can also flexibly move the position of the navigation window according to actual needs, so that the navigation window can be effectively prevented from obscuring the page content that the user wants to obtain.
在本申请实施例中,接收导航窗口展示指令时,具体可接收用户通过物理按键输入的导航窗口展示指令,该物理按键可以是一个按键,也可以是多个按键,可以是本申请专门设置的按键,也可以是终端上的一些已有功能按键,用户在按下终端上的物理按键时,向App输入导航窗口展示指令。In the embodiment of the present application, when receiving the navigation window display instruction, the user may receive a navigation window display instruction input by the physical button, and the physical button may be a button or multiple buttons, which may be specifically set in the application. The button can also be some existing function buttons on the terminal. When the user presses the physical button on the terminal, the user inputs a navigation window display instruction to the App.
当物理按键是终端上的一些已有功能按键时,该物理按键可以是电源按键、音量按键、亮度按键等已有功能按键中的至少两个按键的组合,比如,用户同时按下电源按键和音量按键时,App可接收到用户通过电源按键和音量按键输入的导航信息展示指令。When the physical button is an existing function button on the terminal, the physical button may be a combination of at least two of the existing function buttons such as a power button, a volume button, and a brightness button. For example, the user simultaneously presses the power button and When the volume button is pressed, the App can receive the navigation information display instruction input by the user through the power button and the volume button.
在本申请实施例中,接收导航信息展示指令时,具体还可接收用户通过软按键输入的导航信息展示指令。In the embodiment of the present application, when receiving the navigation information display instruction, the navigation information display instruction input by the user through the soft key may be specifically received.
在本申请实施例中,页面上展示的软按键可以是具有规则图形的按钮,比如,圆形按钮、方形按钮等,如图7所示,软按键为一个圆形按钮。In the embodiment of the present application, the soft keys displayed on the page may be buttons with regular graphics, such as a circular button, a square button, etc., as shown in FIG. 7, the soft button is a circular button.
所述软按键可以在App展示的各页面超过一个时,在当前展示的页面中展示该软按键,进一步的,在App展示的各页面关闭到仅剩下一个时,隐藏该软按键。可选的,该软按键可靠近页面的边缘显示。The soft button may display the soft button in the currently displayed page when more than one page is displayed by the App. Further, when the page displayed by the App is closed until only one is left, the soft button is hidden. Optionally, the softkey can be displayed near the edge of the page.
优选的,该软按键可以是一个浮动按钮,这样,用户可以根据需要灵活移动该按钮,从而可有效避免该标识符按钮遮挡用户想要获取的页面内容。Preferably, the soft button can be a floating button, so that the user can flexibly move the button as needed, thereby effectively preventing the identifier button from obscuring the page content that the user wants to obtain.
以上为本申请实施例提供的页面切换方法,基于同样的思路,本申请实施例还提供了一种页面切换装置,如图8所示。The above is the page switching method provided by the embodiment of the present application. Based on the same idea, the embodiment of the present application further provides a page switching apparatus, as shown in FIG. 8 .
图8为本申请实施例提供的页面切换装置,具体包括:FIG. 8 is a page switching apparatus according to an embodiment of the present disclosure, which specifically includes:
第一接收模块81,用于接收切换指令,所述切换指令中携带有被覆盖页面的页面标识;The first receiving module 81 is configured to receive a switching instruction, where the switching instruction carries a page identifier of the covered page;
调整模块82,用于调整所述页面标识对应的页面内容在堆栈中的位置,使得所述页 面标识对应的页面内容位于堆栈的栈顶;The adjusting module 82 is configured to adjust a position of the page content corresponding to the page identifier in the stack, so that the page The page content corresponding to the face identifier is located at the top of the stack;
第一展示模块83,用于展示所述栈顶的页面内容。The first display module 83 is configured to display the page content of the top of the stack.
可选的,所述装置还包括:Optionally, the device further includes:
监控模块84,用于监控当前展示的页面,将首次展示的各页面的页面内容压入堆栈。The monitoring module 84 is configured to monitor the currently displayed page and push the page content of each page displayed for the first time onto the stack.
可选的,所述装置还包括:Optionally, the device further includes:
第二展示模块85,用于在当前展示的页面中展示导航信息,其中,所述导航信息中设置有一个或多个切换选项,每个切换选项对应一个被覆盖页面;a second display module 85, configured to display navigation information in a currently displayed page, where the navigation information is provided with one or more switching options, and each switching option corresponds to one covered page;
所述第一接收模块具体用于,接收用户通过所述切换选项输入的切换指令。The first receiving module is specifically configured to receive a switching instruction input by the user through the switching option.
可选的,所述导航信息为导航窗口,所述导航窗口为不占据全屏的浮动窗口。Optionally, the navigation information is a navigation window, and the navigation window is a floating window that does not occupy a full screen.
可选的,所述装置还包括:Optionally, the device further includes:
第二接收模块86,用于在当前展示的页面中展示导航信息之前,接收用户通过物理按键输入的导航信息展示指令;The second receiving module 86 is configured to receive a navigation information display instruction input by the user through a physical button before displaying the navigation information in the currently displayed page;
所述装置还包括:第三展示模块87,用于在当前展示的页面中展示导航信息之前,接收用户通过页面中展示的虚拟按键输入的导航信息展示指令。The device further includes: a third display module 87, configured to receive a navigation information display instruction input by the user through the virtual key displayed in the page before displaying the navigation information in the currently displayed page.
可选的,所述装置还包括:Optionally, the device further includes:
隐藏模块88,用于在展示所述页面标识对应的页面之后,隐藏所述导航信息。The hiding module 88 is configured to hide the navigation information after displaying the page corresponding to the page identifier.
可选的,所述切换选项的图标为该切换选项对应的被覆盖的页面的标识。Optionally, the icon of the switching option is an identifier of the covered page corresponding to the switching option.
可选的,所述被覆盖页面,包括如下中的一个或多个:Optionally, the covered page includes one or more of the following:
当前展示的页面之前打开的页面;The page that was previously opened before the currently displayed page;
当前展示的页面的上级页面;The upper level page of the currently displayed page;
当前展示的页面的其他同级页面;Other sibling pages of the currently displayed page;
与当前展示的页面属于同一应用的页面;a page that belongs to the same application as the currently displayed page;
与当前展示的页面不属于同一应用的页面。A page that does not belong to the same app as the currently displayed page.
本申请实施例提供的一种页面切换方法及装置,该方法App或操作***在接收到切换指令后,根据切换指令中携带的页面标识,调整该页面标识对应的页面内容在堆栈中的位置,使得该页面标识对应的页面内容位于堆栈的栈顶,堆栈中的其他页面内容位于栈底或栈中,在需要展示页面标识对应的页面时,直接获取位于调整后的堆栈的栈顶的页面内容,将页面内容展示在页面上,可见,在接收到切换指令后展示页面内容之前,不需要用户进行任何操作,App或操作***直接为用户展示被覆盖的页面,方便快捷,从而可有效提高页面的切换效率。 The method and device for switching a page provided by the embodiment of the present application, after receiving the switching instruction, the method App or the operating system adjusts the position of the page content corresponding to the page identifier in the stack according to the page identifier carried in the switching instruction. The page content corresponding to the page identifier is located at the top of the stack of the stack, and the other page content in the stack is located at the bottom of the stack or the stack. When the page corresponding to the page identifier needs to be displayed, the page content at the top of the adjusted stack is directly obtained. The content of the page is displayed on the page. It can be seen that the user does not need to perform any operation before displaying the content of the page after receiving the switching instruction, and the App or the operating system directly displays the covered page for the user, which is convenient and fast, thereby effectively improving the page. Switching efficiency.
此外,若当前展示被覆盖的页面时,由于其他页面的页面内容仍然在堆栈中而不是被压出堆栈,因此,其他页面处于被覆盖状态而不是被关闭,这样,当需要再次展示已经展示过的页面时,直接从堆栈中获取页面内容并展示,而不是从网络侧获取页面内容来展示,从而可进一步有效提高页面的切换效率。In addition, if the page being overwritten is currently being displayed, since the page content of other pages is still on the stack instead of being pushed out of the stack, other pages are overwritten instead of being closed, so that when it is necessary to display again, it has already been displayed. When the page is directly obtained from the stack and displayed, instead of obtaining the page content from the network side for display, the page switching efficiency can be further effectively improved.
本领域内的技术人员应明白,本发明的实施例可提供为方法、***、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(***)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。The memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory. Memory is an example of a computer readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或 技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer readable media including both permanent and non-permanent, removable and non-removable media can be by any method or Technology to achieve information storage. The information can be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary storage of computer readable media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It is also to be understood that the terms "comprises" or "comprising" or "comprising" or any other variations are intended to encompass a non-exclusive inclusion, such that a process, method, article, Other elements not explicitly listed, or elements that are inherent to such a process, method, commodity, or equipment. An element defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device including the element.
本领域技术人员应明白,本申请的实施例可提供为方法、***或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present application can be provided as a method, system, or computer program product. Thus, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment in combination of software and hardware. Moreover, the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。 The above description is only an embodiment of the present application and is not intended to limit the application. Various changes and modifications can be made to the present application by those skilled in the art. Any modifications, equivalents, improvements, etc. made within the spirit and scope of the present application are intended to be included within the scope of the appended claims.

Claims (16)

  1. 一种页面切换方法,其特征在于,包括:A page switching method, comprising:
    接收切换指令,所述切换指令中携带有被覆盖页面的页面标识;Receiving a switching instruction, where the switching instruction carries a page identifier of the covered page;
    调整所述页面标识对应的页面内容在堆栈中的位置,使得所述页面内容位于所述堆栈的栈顶;Adjusting a position of the page content corresponding to the page identifier in the stack such that the page content is located at a top of the stack of the stack;
    展示所述栈顶的页面内容。Show the page content of the top of the stack.
  2. 如权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 wherein the method further comprises:
    监控当前展示的页面,将首次展示的各页面的页面内容压入堆栈。Monitor the currently displayed page and push the page content of each page displayed for the first time onto the stack.
  3. 如权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 wherein the method further comprises:
    在当前展示的页面中展示导航信息,其中,所述导航信息中设置有一个或多个切换选项,每个切换选项对应一个被覆盖页面;Displaying navigation information in the currently displayed page, wherein one or more switching options are set in the navigation information, and each switching option corresponds to one covered page;
    接收切换指令,具体包括:Receiving a switching instruction, specifically including:
    接收用户通过所述切换选项输入的切换指令。A switching instruction input by the user through the switching option is received.
  4. 如权利要求3所述的方法,其特征在于,所述导航信息为导航窗口,所述导航窗口为不占据全屏的浮动窗口。The method of claim 3, wherein the navigation information is a navigation window, and the navigation window is a floating window that does not occupy a full screen.
  5. 如权利要求3所述的方法,其特征在于,在当前展示的页面中展示导航信息之前,所述方法还包括:The method of claim 3, wherein before the displaying the navigation information in the currently displayed page, the method further comprises:
    接收用户通过物理按键输入的导航信息展示指令;或者Receiving a navigation information display instruction input by a user through a physical button; or
    接收用户通过页面中展示的虚拟按键输入的导航信息展示指令。The navigation information display instruction input by the user through the virtual key displayed on the page is received.
  6. 如权利要求3所述的方法,其特征在于,展示所述栈顶的页面内容之后,所述方法还包括:The method of claim 3, wherein after the page content of the top of the stack is displayed, the method further comprises:
    隐藏所述导航信息。Hide the navigation information.
  7. 如权利要求3所述的方法,其特征在于,所述切换选项的图标为该切换选项对应的被覆盖页面的标识。The method of claim 3, wherein the icon of the switching option is an identifier of the covered page corresponding to the switching option.
  8. 如权利要求1所述的方法,其特征在于,所述被覆盖页面,包括如下中的一个或多个:The method of claim 1 wherein said covered page comprises one or more of the following:
    当前展示的页面之前打开的页面;The page that was previously opened before the currently displayed page;
    当前展示的页面的上级页面;The upper level page of the currently displayed page;
    当前展示的页面的其他同级页面;Other sibling pages of the currently displayed page;
    与当前展示的页面属于同一应用的页面; a page that belongs to the same application as the currently displayed page;
    与当前展示的页面不属于同一应用的页面。A page that does not belong to the same app as the currently displayed page.
  9. 一种页面切换装置,其特征在于,包括:A page switching device, comprising:
    第一接收模块,用于接收切换指令,所述切换指令中携带有被覆盖页面的页面标识;a first receiving module, configured to receive a switching instruction, where the switching instruction carries a page identifier of the covered page;
    调整模块,用于调整所述页面标识对应的页面内容在堆栈中的位置,使得所述页面内容位于所述堆栈的栈顶;An adjustment module, configured to adjust a position of the page content corresponding to the page identifier in the stack, so that the page content is located at a top of the stack of the stack;
    第一展示模块,用于展示所述栈顶的页面内容。The first display module is configured to display the page content of the top of the stack.
  10. 如权利要求9所述的装置,其特征在于,所述装置还包括:The device of claim 9 wherein said device further comprises:
    监控模块,用于监控当前展示的页面,将首次展示的各页面的页面内容压入堆栈。The monitoring module is used to monitor the currently displayed page and push the page content of each page displayed for the first time onto the stack.
  11. 如权利要求9所述的装置,其特征在于,所述装置还包括:The device of claim 9 wherein said device further comprises:
    第二展示模块,用于在当前展示的页面中展示导航信息,其中,所述导航信息中设置有一个或多个切换选项,每个切换选项对应一个被覆盖页面;a second display module, configured to display navigation information in a currently displayed page, where one or more switching options are set in the navigation information, and each switching option corresponds to one covered page;
    所述第一接收模块具体用于,接收用户通过所述切换选项输入的切换指令。The first receiving module is specifically configured to receive a switching instruction input by the user through the switching option.
  12. 如权利要求11所述的装置,其特征在于,所述导航信息为导航窗口,所述导航窗口为不占据全屏的浮动窗口。The device according to claim 11, wherein the navigation information is a navigation window, and the navigation window is a floating window that does not occupy a full screen.
  13. 如权利要求11所述的装置,其特征在于,所述装置还包括:The device of claim 11 wherein said device further comprises:
    第二接收模块,用于在当前展示的页面中展示导航信息之前,接收用户通过物理按键输入的导航信息展示指令;a second receiving module, configured to receive a navigation information display instruction input by the user through a physical button before displaying the navigation information in the currently displayed page;
    所述装置还包括:第三展示模块,用于在当前展示的页面中展示导航信息之前,接收用户通过页面中展示的虚拟按键输入的导航信息展示指令。The device further includes: a third display module, configured to receive a navigation information display instruction input by the user through the virtual key displayed in the page before displaying the navigation information in the currently displayed page.
  14. 如权利要求11所述的装置,其特征在于,所述装置还包括:The device of claim 11 wherein said device further comprises:
    隐藏模块,用于在展示所述栈顶的页面内容之后,隐藏所述导航信息。a hiding module, configured to hide the navigation information after displaying the page content of the top of the stack.
  15. 如权利要求11所述的装置,其特征在于,所述切换选项的图标为该切换选项对应的被覆盖页面的标识。The device according to claim 11, wherein the icon of the switching option is an identifier of the covered page corresponding to the switching option.
  16. 如权利要求9所述的装置,其特征在于,所述被覆盖页面,包括如下中的一个或多个:The apparatus of claim 9, wherein the covered page comprises one or more of the following:
    当前展示的页面之前打开的页面;The page that was previously opened before the currently displayed page;
    当前展示的页面的上级页面;The upper level page of the currently displayed page;
    当前展示的页面的其他同级页面;Other sibling pages of the currently displayed page;
    与当前展示的页面属于同一应用的页面;a page that belongs to the same application as the currently displayed page;
    与当前展示的页面不属于同一应用的页面。 A page that does not belong to the same app as the currently displayed page.
PCT/CN2016/076375 2015-03-19 2016-03-15 Page switching method and device WO2016146056A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510121421.4A CN106033372A (en) 2015-03-19 2015-03-19 Page switching method and apparatus
CN201510121421.4 2015-03-19

Publications (1)

Publication Number Publication Date
WO2016146056A1 true WO2016146056A1 (en) 2016-09-22

Family

ID=56918385

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/076375 WO2016146056A1 (en) 2015-03-19 2016-03-15 Page switching method and device

Country Status (2)

Country Link
CN (1) CN106033372A (en)
WO (1) WO2016146056A1 (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108958855A (en) * 2017-05-26 2018-12-07 阿里巴巴集团控股有限公司 The method, apparatus and system of page jump
CN110263273A (en) * 2019-05-21 2019-09-20 深圳壹账通智能科技有限公司 Page backing method and relevant apparatus
CN112363783A (en) * 2020-10-26 2021-02-12 广州视源电子科技股份有限公司 Window switching method, device, medium and interactive panel
CN112799754A (en) * 2021-01-19 2021-05-14 网易(杭州)网络有限公司 Information processing method, information processing device, storage medium and computer equipment
CN113127130A (en) * 2021-05-08 2021-07-16 广州酷狗计算机科技有限公司 Page jump method, device and storage medium
CN113268682A (en) * 2021-06-25 2021-08-17 腾讯科技(深圳)有限公司 Page content display method, device and equipment based on navigation bar and storage medium
CN113687892A (en) * 2021-07-30 2021-11-23 阿里巴巴新加坡控股有限公司 Page processing method and device and computer program product
CN113703760A (en) * 2020-05-22 2021-11-26 北京沃东天骏信息技术有限公司 Page jump control method and device
CN114579201A (en) * 2022-03-01 2022-06-03 支付宝(杭州)信息技术有限公司 Execution method, device and equipment of window assembly
CN115033824A (en) * 2022-06-17 2022-09-09 中国平安人寿保险股份有限公司 Page jump method, system, device and medium based on Vue frame
CN115098002A (en) * 2022-06-13 2022-09-23 济南瑞源智能城市开发有限公司 Front-end display method, equipment and medium of tunnel cloud management and control platform

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108008884A (en) * 2016-10-28 2018-05-08 北京嘀嘀无限科技发展有限公司 The method for information display and device of application interface
CN108241633A (en) * 2016-12-23 2018-07-03 百度在线网络技术(北京)有限公司 It is switched fast the method and apparatus of webpage
CN106802803B (en) 2017-01-06 2020-06-05 腾讯科技(深圳)有限公司 Application data processing method and device
CN106959806B (en) * 2017-03-22 2020-08-04 武汉斗鱼网络科技有限公司 Page identity obtaining method and device
CN107885767A (en) * 2017-09-26 2018-04-06 五八有限公司 A kind of page operation method and device
CN108108207B (en) * 2017-12-13 2021-09-07 北京奇虎科技有限公司 Advertisement display method and device
CN108881214B (en) * 2018-04-18 2021-02-09 李世伟 Multifunctional integrated interaction method and device and electronic equipment
CN108833980B (en) * 2018-05-24 2021-04-27 烽火通信科技股份有限公司 IPTV page generation and reproduction method based on multi-window realization
CN108920247B (en) * 2018-07-20 2022-04-29 腾讯科技(深圳)有限公司 Page switching processing method, device and terminal, storage medium and program product
CN111240538A (en) * 2018-11-29 2020-06-05 深圳市优必选科技有限公司 Navigation bar control method and terminal equipment
CN109684569B (en) * 2018-12-19 2022-05-31 贵阳朗玛信息技术股份有限公司 Interface control method and device
CN111666118A (en) * 2019-03-06 2020-09-15 网易(杭州)网络有限公司 Information processing method and device, electronic equipment and storage medium
CN110413368B (en) * 2019-08-07 2023-07-18 上海视云网络科技有限公司 Page switching method and device, electronic equipment and machine-readable storage medium
CN112948032B (en) * 2019-12-11 2024-04-02 腾讯科技(深圳)有限公司 Function switching method, device, computer readable storage medium and computer equipment
CN111432268B (en) * 2020-04-29 2022-02-15 深圳市酷开网络科技股份有限公司 Display method of terminal control page, display terminal and readable storage medium
CN112130729B (en) * 2020-11-03 2023-03-10 深圳市九九互动科技有限公司 Page processing method and device, computer equipment and storage medium
CN112799765B (en) * 2021-01-30 2022-10-11 交通银行股份有限公司 Intelligent skip method and equipment based on page coding and storage medium
CN115525367A (en) * 2021-06-26 2022-12-27 华为技术有限公司 Method for quickly returning to interface and electronic equipment
CN113867873A (en) * 2021-09-30 2021-12-31 网易(杭州)网络有限公司 Page display method and device, computer equipment and storage medium
CN114756315A (en) * 2022-03-23 2022-07-15 阿波罗智联(北京)科技有限公司 Conversation page switching method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101795317A (en) * 2009-12-30 2010-08-04 上海宝点信息技术有限公司 Universal page return method suitable for mobile device information browsing
CN103105994A (en) * 2011-11-11 2013-05-15 希姆通信息技术(上海)有限公司 Mobile terminal and return method of mobile terminal page
CN104423785A (en) * 2013-09-05 2015-03-18 腾讯科技(深圳)有限公司 View switching method and terminal
CN104881212A (en) * 2015-06-26 2015-09-02 深圳市富途网络科技有限公司 Fast display interface switching method and system for mobile electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102541851B (en) * 2010-12-10 2014-05-14 金蝶软件(中国)有限公司 Page modularity generation method and page modularity generation system
KR101356368B1 (en) * 2012-02-24 2014-01-29 주식회사 팬택 Application switching apparatus and method
CN103853729B (en) * 2012-11-29 2019-03-26 腾讯科技(深圳)有限公司 Page loading method and its system
US9066222B2 (en) * 2013-02-20 2015-06-23 Boku, Inc. Mobile billing operator server programmed for user acquisition within a repeat payment computer system
CN104008114B (en) * 2013-02-27 2019-04-26 腾讯科技(深圳)有限公司 A kind of method for page jump and device of WAP browser

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101795317A (en) * 2009-12-30 2010-08-04 上海宝点信息技术有限公司 Universal page return method suitable for mobile device information browsing
CN103105994A (en) * 2011-11-11 2013-05-15 希姆通信息技术(上海)有限公司 Mobile terminal and return method of mobile terminal page
CN104423785A (en) * 2013-09-05 2015-03-18 腾讯科技(深圳)有限公司 View switching method and terminal
CN104881212A (en) * 2015-06-26 2015-09-02 深圳市富途网络科技有限公司 Fast display interface switching method and system for mobile electronic equipment

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108958855A (en) * 2017-05-26 2018-12-07 阿里巴巴集团控股有限公司 The method, apparatus and system of page jump
CN110263273A (en) * 2019-05-21 2019-09-20 深圳壹账通智能科技有限公司 Page backing method and relevant apparatus
CN113703760A (en) * 2020-05-22 2021-11-26 北京沃东天骏信息技术有限公司 Page jump control method and device
CN112363783A (en) * 2020-10-26 2021-02-12 广州视源电子科技股份有限公司 Window switching method, device, medium and interactive panel
CN112799754A (en) * 2021-01-19 2021-05-14 网易(杭州)网络有限公司 Information processing method, information processing device, storage medium and computer equipment
CN113127130A (en) * 2021-05-08 2021-07-16 广州酷狗计算机科技有限公司 Page jump method, device and storage medium
CN113127130B (en) * 2021-05-08 2024-05-14 广州酷狗计算机科技有限公司 Page jump method, device and storage medium
CN113268682B (en) * 2021-06-25 2023-09-01 腾讯科技(深圳)有限公司 Page content display method, device and equipment based on navigation bar and storage medium
CN113268682A (en) * 2021-06-25 2021-08-17 腾讯科技(深圳)有限公司 Page content display method, device and equipment based on navigation bar and storage medium
CN113687892A (en) * 2021-07-30 2021-11-23 阿里巴巴新加坡控股有限公司 Page processing method and device and computer program product
CN113687892B (en) * 2021-07-30 2024-05-03 阿里巴巴创新公司 Page processing method, device and computer program product
CN114579201A (en) * 2022-03-01 2022-06-03 支付宝(杭州)信息技术有限公司 Execution method, device and equipment of window assembly
CN114579201B (en) * 2022-03-01 2024-05-31 支付宝(杭州)信息技术有限公司 Execution method, device and equipment of window component
CN115098002B (en) * 2022-06-13 2023-10-27 济南瑞源智能城市开发有限公司 Front-end display method, equipment and medium of tunnel cloud management and control platform
CN115098002A (en) * 2022-06-13 2022-09-23 济南瑞源智能城市开发有限公司 Front-end display method, equipment and medium of tunnel cloud management and control platform
CN115033824A (en) * 2022-06-17 2022-09-09 中国平安人寿保险股份有限公司 Page jump method, system, device and medium based on Vue frame

Also Published As

Publication number Publication date
CN106033372A (en) 2016-10-19

Similar Documents

Publication Publication Date Title
WO2016146056A1 (en) Page switching method and device
US11782581B2 (en) Display control method and device, electronic device and storage medium
KR102076892B1 (en) Method and apparatus for managing background application
US20160085404A1 (en) Mobile Application Configuration
WO2017032005A1 (en) Operation menu display method and terminal
US20190212829A1 (en) Communication method and device
WO2015103993A1 (en) Chat window presentation control method and system
CN105335041A (en) Method and apparatus for providing application icon
US9519310B2 (en) Display method and terminal for changing displayed content based on the device orientation
CN107291347B (en) Information display method and device
US11455075B2 (en) Display method when application is exited and terminal
WO2016101816A1 (en) Method and device for information display in instant messaging
CN110321189B (en) Method and equipment for presenting hosted program in hosted program
WO2019011141A1 (en) Startup and configuration method, apparatus and device, medium, and operating system
CN110413179B (en) Method and equipment for presenting session message
WO2015172562A1 (en) Shortcut operation method and apparatus for touch-screen digital terminal
CN106293317B (en) Method and device for hiding message record and electronic equipment
US20200089512A1 (en) Method and Apparatus for Invoking Input Method, Server, and Terminal
CN113157162B (en) Method, apparatus, medium and program product for revoking session messages
WO2016115753A1 (en) Multi-system operation method, device, and terminal
US11010042B2 (en) Display of different versions of user interface element
US9015629B2 (en) Content management systems and methods
US11545118B2 (en) Display of out-of-window status indicators in a virtual shelf of a diagram window
CN114416269A (en) Interface display method and display device
CN114518821A (en) Application icon management method and device and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16764236

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16764236

Country of ref document: EP

Kind code of ref document: A1