WO2017107833A1 - Method and apparatus for switching page in browser label - Google Patents

Method and apparatus for switching page in browser label Download PDF

Info

Publication number
WO2017107833A1
WO2017107833A1 PCT/CN2016/109992 CN2016109992W WO2017107833A1 WO 2017107833 A1 WO2017107833 A1 WO 2017107833A1 CN 2016109992 W CN2016109992 W CN 2016109992W WO 2017107833 A1 WO2017107833 A1 WO 2017107833A1
Authority
WO
WIPO (PCT)
Prior art keywords
page
information
identifier information
switching
browser tag
Prior art date
Application number
PCT/CN2016/109992
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 WO2017107833A1 publication Critical patent/WO2017107833A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9562Bookmark management

Definitions

  • the present invention relates to the field of information technology, and in particular, to a page switching method and apparatus in a browser tag.
  • a page switching method in a browser tag comprising the steps of:
  • the identifier information of the current page is obtained from the preset page information list, where the identifier information of each page corresponding to the browser label is saved in the preset page information list, and each The page loading script corresponding to the identification information of the page;
  • the switched page is displayed.
  • a page switching device in a browser tag comprising:
  • a detecting unit configured to detect whether a page switching instruction corresponding to the browser tag is received, where the browser tag corresponds to multiple pages;
  • An obtaining unit configured to: obtain, according to the page switching instruction, the identifier information of the current page from the preset page information list, where the preset page information list stores each page corresponding to the browser label a page loading script corresponding to the identification information and the identification information of each page;
  • the obtaining unit is further configured to obtain, according to the identifier information of the current page, identifier information of the switched page and a page loading script corresponding to the identifier information;
  • a display unit configured to display the switched page according to the page loading script.
  • a computer program comprising computer readable code that, when executed on a computing device, causes the computing device to perform page switching within the browser tag described above method.
  • a computer readable medium storing the above computer program is provided.
  • the method and device for switching pages in a browser tag provided by the present invention firstly detect whether a page switching instruction corresponding to a browser tag is received, and the browser tag corresponds to multiple pages, and if the page switching instruction is received, Obtaining the identifier information of the current page from the preset page information list, and then acquiring the identifier information of the switched page and the page loading script corresponding to the identifier information according to the identifier information of the current page, and finally according to the page Load the script to display the page after the switch.
  • the paging change between the pages is usually performed by presetting a page loading script.
  • the present invention implements different pages. The switching between the pages can avoid the problem that the extension function of the page switching effect addition and the browsing position setting is limited, and the page switching efficiency can be improved.
  • FIG. 1 is a schematic flowchart diagram of a page switching method in a browser tag according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart diagram of another page switching method in a browser tag according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a page switching apparatus in a browser tag according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a page switching apparatus in another browser tag according to an embodiment of the present invention.
  • Figure 5 shows schematically a block diagram of a computing device for performing the method according to the invention
  • Fig. 6 schematically shows a storage unit for holding or carrying program code implementing the method according to the invention.
  • An embodiment of the present invention provides a user behavior analysis method based on behavior log information. As shown in FIG. 1 , the method includes:
  • the browser tag can correspond to multiple pages, and each browser tag is one. Display windows so that multiple pages can be switched within a single browser tab.
  • the page switching instruction may carry the identifier information of the page after the switching to indicate the page displayed after the switching, and the page switching instruction may be a backward switching goback function, a forward switching goforward function, etc., which is not limited in the embodiment of the present invention. .
  • the preset page information list stores the page load script corresponding to the identifier information of each page corresponding to the browser tag and the identifier information of each page.
  • the identifier information of the page is used to uniquely identify the location of the page in the preset page information list, and may be a page number, a page ID, and the like, which are not limited in the embodiment of the present invention.
  • the page loading script may specifically display the function webview for the webpage.
  • the preset page information list may be managed by the function WebviewTab, and the list may be specifically cached by the webview list mCachedPages and the cache of the page loading script corresponding to each page.
  • the preset page information list may also store a URL address corresponding to each page for identifying a URL address corresponding to the displayed page.
  • the number of pages switched forward or backward and the identification information of the current page may be specifically indicated according to the page switching instruction, and the identifier information of the page after the switching is obtained. For example, if the page switching instruction indicates that two pages are switched backward, the identification information of the second page after the identification information of the current page is obtained from the preset page information list.
  • switching between different page pages is realized by switching between page load scripts, thereby avoiding the problem that the extension function of the page switching effect addition and the browsing position setting is limited, and the page switching efficiency can be improved.
  • the method for page switching in a browser tag first detects whether to receive Go to the page switching instruction corresponding to the browser tag, the browser tag corresponds to multiple pages, and if the page switching instruction is received, the identification information of the current page is obtained from the preset page information list, and then according to the current page. And the identifier information of the page after the switch is obtained, and the page load script corresponding to the identifier information is obtained, and finally, the page after the switch is displayed according to the page load script.
  • the paging change between the pages is usually performed by presetting a page loading script.
  • the present invention implements different pages. The switching between the pages can avoid the problem that the extension function of the page switching effect addition and the browsing position setting is limited, and the page switching efficiency can be improved.
  • An embodiment of the present invention provides a page switching method in another browser tag. As shown in FIG. 2, the method includes:
  • the browser tag can correspond to multiple pages, and each browser tag is a display window, so that multiple pages can be switched in one browser tag.
  • the page switching instruction may carry the identification information of the page after the switching to indicate the page displayed after the switching.
  • the method further includes: configuring the identification information of the page for each page according to the display order of the multiple pages corresponding to the browser label, and configuring corresponding information for each page identification information.
  • the page loading script saves the page loading script corresponding to the identification information of each page corresponding to the browser tag and the identification information of each page in the preset page information list.
  • by configuring the identification information of the page for each page according to the display order of the plurality of pages corresponding to the browser tag it is ensured that the page after the switching is obtained more quickly when the page is switched. Information to further improve page switching efficiency.
  • the identifier information of the page is used to uniquely identify the location of the page in the preset page information list, and may be a page number, a page ID, and the like, which are not limited in the embodiment of the present invention.
  • the page load script may be a webpage display function webview, and the preset page information list may further store a URL address corresponding to each page for identifying a URL address corresponding to the displayed page.
  • the preset page information list stores the page load script corresponding to the identifier information of each page corresponding to the browser tag and the identifier information of each page.
  • the number of pages switched forward or backward and the identification information of the current page may be specifically indicated according to the page switching instruction, and the identifier information of the page after the switching is obtained. For example, if the page switching instruction indicates that two pages are switched backward, the identification information of the second page after the identification information of the current page is obtained from the preset page information list.
  • the step 203 may include: if the page switching instruction is to switch the goback function backward, obtaining the identification information of the previous page corresponding to the identification information of the current page from the preset page information list, and And the page loading script corresponding to the identifier information; or if the page switching instruction is a forward switching goforward function, obtaining an identifier of a next page corresponding to the identifier information of the current page from the preset page information list Information and a page load script corresponding to the identification information.
  • the step 204 may include: displaying the current page if there is no identification information of the previous page or identification information of the next page corresponding to the identification information of the current page. If the identification information of the previous page or the identification information of the next page corresponding to the identification information of the current page does not exist, the current page can be displayed to ensure that the page information can be obtained normally, and the display abnormality is avoided.
  • the prompt information may be output to prompt the user that the current page is the first page or the last page, to avoid unnecessary switching operations, and the prompt information may be text prompt information, audio prompt information, video prompt information, etc., the present invention The embodiment is not limited.
  • the page adding instruction may specifically perform operations such as opening an external link, opening the page, and opening the navigation screen link by the user, and are used to indicate that the page to be opened is added to the preset page information column.
  • the preset threshold can be set according to actual needs, and can be 10, 15, 20, and the like.
  • the page configuration identifier information corresponding to the instruction and the page loading script corresponding to the identifier information are added and saved.
  • the amount of data buffered can be normal, so that the cache can work normally, thereby ensuring the efficiency of page switching.
  • the preset threshold is greater than or equal to the preset threshold
  • the information of the first saved page in the preset page information list is deleted, and then the page configuration identifier information corresponding to the instruction is added to the page and The page load script corresponding to the identification information is saved and saved.
  • the information of the first saved page in the preset page information list is deleted, and then the page configuration identification information corresponding to the instruction and the page loading script corresponding to the identification information are added and saved in the page, and the cache is guaranteed.
  • the amount of data is normal, and the page information is updated.
  • the information in the preset page information list may be specifically deleted by calling the preset clear function clearAllHistory.
  • the preset clear function clearAllHistory.
  • the page switching method in another browser tag provided by the present invention first detects whether a page switching instruction corresponding to a browser tag is received, and the browser tag corresponds to multiple pages, and if the page switching instruction is received, Obtaining the identifier information of the current page from the preset page information list, and then acquiring the identifier information of the switched page and the page loading script corresponding to the identifier information according to the identifier information of the current page, and finally loading according to the page Script that displays the page after the switch.
  • the paging change between the pages is usually performed by presetting a page loading script.
  • the present invention implements different pages. The switching between the pages can avoid the problem that the extension function of the page switching effect addition and the browsing position setting is limited, and the page switching efficiency can be improved.
  • the embodiment of the present invention provides a page switching device in a browser tag.
  • the device includes: a detecting unit 31, an obtaining unit 32, and a display. Unit 33.
  • the detecting unit 31 is configured to detect whether a page switching instruction corresponding to the browser tag is received, where the browser tag corresponds to multiple pages;
  • the obtaining unit 32 is configured to obtain, according to the page switching instruction, the identifier information of the current page from the preset page information list, where the preset page information list stores each page corresponding to the browser label.
  • the page loading script corresponding to the identification information and the identification information of each page;
  • the obtaining unit 32 is further configured to obtain, according to the identifier information of the current page, identifier information of the switched page and a page loading script corresponding to the identifier information;
  • the display unit 33 is configured to display the switched page according to the page loading script.
  • the page switching device in the browser tag of the present invention first detects whether a page switching instruction corresponding to a browser tag is received, the browser tag corresponds to a plurality of pages, and if the page switching instruction is received, Obtaining the identifier information of the current page in the preset page information list, and then acquiring the identifier information of the switched page and the page loading script corresponding to the identifier information according to the identifier information of the current page, and finally loading the script according to the page , displays the page after switching.
  • the paging change between the pages is usually performed by presetting a page loading script.
  • the present invention implements different pages. The switching between the pages can avoid the problem that the extension function of the page switching effect addition and the browsing position setting is limited, and the page switching efficiency can be improved.
  • the embodiment of the present invention provides another page switching device in a browser tag.
  • the device includes: a detecting unit 41, an obtaining unit 42, Display unit 43.
  • the detecting unit 41 is configured to detect whether a page switching instruction corresponding to the browser tag is received, where the browser tag corresponds to multiple pages;
  • the obtaining unit 42 is configured to: obtain the identifier information of the current page from the preset page information list, if the page switching instruction is received, where the browsing is saved in the preset page information list a page loading script corresponding to the identification information of each page corresponding to the device label and the identification information of each page;
  • the obtaining unit 42 is further configured to obtain, according to the identifier information of the current page, identifier information of the page after the switching and a page loading script corresponding to the identifier information;
  • the display unit 43 is configured to display the switched page according to the page loading script.
  • the device further includes:
  • the configuration unit 44 is configured to configure, according to the display order of the multiple pages corresponding to the browser tag, the identification information of the page for each page, and configure corresponding page loading scripts for the identification information of each page;
  • the saving unit 45 is configured to save the page loading script corresponding to the identification information of each page corresponding to the browser tag and the identification information of each page in the preset page information list.
  • the obtaining unit 42 is specifically configured to: if the page switching instruction is to switch the goback function backward, obtain the previous page corresponding to the identifier information of the current page from the preset page information list. And the page loading script corresponding to the identifier information; or if the page switching instruction is a forward switching goforward function, obtaining, corresponding to the identifier information of the current page, from the preset page information list Identification information of a page and a page loading script corresponding to the identification information.
  • the display unit 43 is specifically configured to display the current page if there is no identification information of the previous page or identification information of the next page corresponding to the identification information of the current page.
  • the device further includes: a determining unit 46;
  • the determining unit 46 is configured to determine, when the page adding instruction is received, whether the number of pages corresponding to the browser tag is less than a preset threshold;
  • the configuration unit 44 is further configured to: if the preset threshold is smaller, add the page configuration identifier information corresponding to the page and the page load script corresponding to the identifier information to the page and save the file.
  • the device further includes: a deleting unit 47.
  • the deleting unit 47 is configured to: if the preset threshold is greater than or equal to, the preset page The information of the first saved page in the face information list is deleted;
  • the configuration unit 44 is configured to add, to the page, page configuration identifier information corresponding to the instruction and a page load script corresponding to the identifier information, and save the page load script.
  • the deleting unit 47 is further configured to delete the information in the preset page information list by calling the preset clear function clearAllHistory.
  • the page loading script is a webpage display function webview.
  • the page switching device in another browser tag provided by the present invention first detects whether a page switching instruction corresponding to a browser tag is received, the browser tag corresponds to multiple pages, and if the page switching instruction is received, Obtaining the identifier information of the current page from the preset page information list, and then acquiring the identifier information of the switched page and the page loading script corresponding to the identifier information according to the identifier information of the current page, and finally loading according to the page Script that displays the page after the switch.
  • the paging change between the pages is usually performed by presetting a page loading script.
  • the present invention implements different pages. The switching between the pages can avoid the problem that the extension function of the page switching effect addition and the browsing position setting is limited, and the page switching efficiency can be improved.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some of the page switching methods and apparatus in a browser tag in accordance with embodiments of the present invention. Or all features.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • Such a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals can be obtained from the Internet The download is available on the station, either on the carrier signal or in any other form.
  • Figure 5 illustrates a page switching computing device, such as an application server, within a browser tag that can implement the present invention.
  • the computing device conventionally includes a computer program product or computer readable medium in the form of a processor 510 in the form of a memory 520.
  • the memory 520 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM.
  • Memory 520 has a memory space 530 for program code 531 for performing any of the method steps described above.
  • storage space 530 for program code may include various program code 531 for implementing various steps in the above methods, respectively.
  • the program code can be read from or written to one or more computer program products.
  • These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such computer program products are typically portable or fixed storage units as described with reference to FIG.
  • the storage unit may have storage segments, storage spaces, and the like that are similarly arranged to memory 520 in the computing device of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit includes computer readable code 531 ', ie, code readable by a processor, such as 510, that when executed by a computing device causes the computing device to perform each of the methods described above step.
  • the embodiment of the invention discloses an A1, a page switching method in a browser tag, comprising:
  • the identifier information of the current page is obtained from the preset page information list, where the identifier information of each page corresponding to the browser label is saved in the preset page information list, and each The page loading script corresponding to the identification information of the page;
  • the switched page is displayed.
  • the page loading script corresponding to the identification information of each page corresponding to the browser tag and the identification information of each page is saved in the preset page information list.
  • the page switching method in the browser tag, as described in A2, the obtaining, according to the identifier information of the current page, the identifier information of the page after the switching and the page loading script corresponding to the identifier information include:
  • the page switching instruction is to switch the goback function backward
  • the identifier information of the previous page corresponding to the identifier information of the current page and the page loading corresponding to the identifier information are obtained from the preset page information list.
  • the page switching instruction is a forward switching goforward function, obtaining, from the preset page information list, identifier information of a next page corresponding to the identifier information of the current page and a page loading corresponding to the identifier information. script.
  • the page switching method in the browser tag of A3, wherein the displaying the switched page according to the page loading script comprises:
  • the current page is displayed.
  • the page switching method in the browser tag of A2, the method further includes:
  • the page configuration identifier information corresponding to the command and the page load script corresponding to the identifier information are added and saved.
  • the page switching method in the browser tag of A5, the method further includes:
  • the preset threshold is greater than or equal to, the information of the first saved page in the preset page information list is deleted;
  • the method for switching pages in a browser tag as described in A1, the method further includes:
  • the information in the preset page information list is deleted by calling the preset clear function clearAllHistory.
  • A8 The page switching method in a browser tag according to any one of A1-A7, wherein the page loading script is a webpage display function webview.
  • the embodiment of the invention further discloses a B9, a page switching device in a browser tag, comprising:
  • a detecting unit configured to detect whether a page switching instruction corresponding to the browser tag is received, where the browser tag corresponds to multiple pages;
  • An obtaining unit configured to: obtain, according to the page switching instruction, the identifier information of the current page from the preset page information list, where the preset page information list stores each page corresponding to the browser label a page loading script corresponding to the identification information and the identification information of each page;
  • the obtaining unit is further configured to obtain, according to the identifier information of the current page, identifier information of the switched page and a page loading script corresponding to the identifier information;
  • a display unit configured to display the switched page according to the page loading script.
  • a configuration unit configured to configure, according to a display order of the plurality of pages corresponding to the browser label, identifier information of the page for each page, and configure a corresponding page loading script for each page identification information
  • the saving unit is configured to save the page loading script corresponding to the identification information of each page corresponding to the browser tag and the identification information of each page in the preset page information list.
  • the acquiring unit is specifically configured to: if the page switching instruction is a backward switching goback function, obtain, from the preset page information list, identifier information of a previous page corresponding to the identifier information of the current page, and a page loading script corresponding to the identifier information; or
  • the page switching instruction is a forward switching goforward function, obtaining, from the preset page information list, identifier information of a next page corresponding to the identifier information of the current page and a page loading corresponding to the identifier information. script.
  • the display unit is specifically configured to display the current page if there is no identification information of the previous page or identification information of the next page corresponding to the identification information of the current page.
  • the page switching device in the browser tag according to B10 the device further includes: a determining unit;
  • the determining unit is configured to determine, when the page adding instruction is received, whether the number of pages corresponding to the browser tag is less than a preset threshold;
  • the configuration unit is further configured to: if the preset threshold is less than, add, to the page, the page configuration identifier information corresponding to the page and the page load script corresponding to the identifier information, and save the page load script.
  • the deleting unit is configured to: if the preset threshold is greater than or equal to, the preset page The information of the first saved page in the message list is deleted;
  • a configuration unit configured to add, to the page, page configuration identifier information corresponding to the instruction and a page loading script corresponding to the identifier information, and save the file.
  • the deleting unit is further configured to delete the information in the preset page information list by calling the preset clear function clearAllHistory.
  • the page switching device in the browser tag of any one of B9-B15, wherein the page loading script is a webpage display function webview.

Landscapes

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

Abstract

A method and apparatus for switching a page in a browser label, relating to the technical field of information. The method comprises: firstly detecting whether a page switching instruction corresponding to a browser label is received, the browser label corresponding to multiple pages (101); if the page switching instruction is received, obtaining identifier information of a current page from a preset page information list (102); then obtaining identifier information of a switched page and a page loading script corresponding to the identifier information according to the identifier information of the current page (103); and finally displaying the switched page according to the page loading script (104). By using the solution, the problem of limitation of extended functions, such as addition of a switching effect among pages and setting of a browsing position, can be avoided, and the page switching efficiency can be improved.

Description

浏览器标签内的页面切换方法及装置Page switching method and device in browser tag 技术领域Technical field
本发明涉及一种信息技术领域,尤其涉及一种浏览器标签内的页面切换方法及装置。The present invention relates to the field of information technology, and in particular, to a page switching method and apparatus in a browser tag.
背景技术Background technique
近些年来,随着信息技术的不断发展,互联网技术越来越成熟,通过浏览器浏览信息已经成为人们日常生活中的一部分,浏览器的普及率也越来越高。其中,浏览器支持的主要功能之一就是在一个浏览器标签内承载多个网页页面,并可以进行网页页面切换展示。In recent years, with the continuous development of information technology, Internet technology has become more and more mature. Browsing information through browsers has become a part of people's daily life, and the popularity of browsers is getting higher and higher. Among them, one of the main functions supported by the browser is to carry multiple webpage pages in one browser tag, and can perform webpage page switching display.
目前,在进行一个浏览器标签内的页面切换时,通常是通过预置一个页面加载脚本(webview)实现页面间的切换显示。然而通过一个页面加载脚本在进行页面切换显示时,由于需要不断更新显示内容实现页面切换,造成页面切换效率较低。并且由于不同页面同属一个页面加载脚本进行显示,造成页面间切换效果添加及浏览位置设置等的扩展功能较为受限。Currently, when performing page switching in a browser tag, it is usually implemented by presetting a page loading script (webview) to switch between pages. However, when a page loading script is used to perform page switching display, the page switching efficiency is low due to the need to continuously update the display content to achieve page switching. And because different pages belong to the same page loading script for display, the extension function of adding the switching effect between the pages and setting the browsing position is limited.
发明内容Summary of the invention
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决或减缓上述问题的一种浏览器标签内的页面切换方法和相应的一种浏览器标签内的页面切换装置。根据本发明一个方面,提供了一种浏览器标签内的页面切换方法,所述方法包括步骤:In view of the above problems, the present invention has been made in order to provide a page switching method within a browser tag that overcomes the above problems or at least partially solves or alleviates the above problems, and a corresponding page switching device in a browser tag. According to an aspect of the present invention, a page switching method in a browser tag is provided, the method comprising the steps of:
检测是否接收到浏览器标签对应的页面切换指令,所述浏览器标签对应多个页面;Detecting whether a page switching instruction corresponding to the browser tag is received, where the browser tag corresponds to multiple pages;
若接收到所述页面切换指令,则从预置页面信息列表中获取当前页面的标识信息,所述预置页面信息列表中保存有所述浏览器标签对应的每一个页面的标识信息和每一个页面的标识信息对应的页面加载脚本; And if the page switching instruction is received, the identifier information of the current page is obtained from the preset page information list, where the identifier information of each page corresponding to the browser label is saved in the preset page information list, and each The page loading script corresponding to the identification information of the page;
根据所述当前页面的标识信息,获取切换后的页面的标识信息和与所述标识信息对应的页面加载脚本;Obtaining, according to the identifier information of the current page, identifier information of the page after the switching and a page loading script corresponding to the identifier information;
根据所述页面加载脚本,显示切换后的页面。According to the page loading script, the switched page is displayed.
依据本发明另一个方面,提供了一种浏览器标签内的页面切换装置,所述装置包括:According to another aspect of the present invention, a page switching device in a browser tag is provided, the device comprising:
检测单元,用于检测是否接收到浏览器标签对应的页面切换指令,所述浏览器标签对应多个页面;a detecting unit, configured to detect whether a page switching instruction corresponding to the browser tag is received, where the browser tag corresponds to multiple pages;
获取单元,用于若接收到所述页面切换指令,则从预置页面信息列表中获取当前页面的标识信息,所述预置页面信息列表中保存有所述浏览器标签对应的每一个页面的标识信息和每一个页面的标识信息对应的页面加载脚本;An obtaining unit, configured to: obtain, according to the page switching instruction, the identifier information of the current page from the preset page information list, where the preset page information list stores each page corresponding to the browser label a page loading script corresponding to the identification information and the identification information of each page;
所述获取单元,还用于根据所述当前页面的标识信息,获取切换后的页面的标识信息和与所述标识信息对应的页面加载脚本;The obtaining unit is further configured to obtain, according to the identifier information of the current page, identifier information of the switched page and a page loading script corresponding to the identifier information;
显示单元,用于根据所述页面加载脚本,显示切换后的页面。a display unit, configured to display the switched page according to the page loading script.
根据本发明的又一个方面,提供了一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行上述的浏览器标签内的页面切换方法。According to still another aspect of the present invention, a computer program is provided, comprising computer readable code that, when executed on a computing device, causes the computing device to perform page switching within the browser tag described above method.
根据本发明的再一个方面,提供了一种计算机可读介质,其中存储上述的计算机程序。According to still another aspect of the present invention, a computer readable medium storing the above computer program is provided.
本发明的有益效果为:The beneficial effects of the invention are:
本发明提供的一种浏览器标签内的页面切换方法及装置,首先检测是否接收到浏览器标签对应的页面切换指令,所述浏览器标签对应多个页面,若接收到所述页面切换指令,则从预置页面信息列表中获取当前页面的标识信息,然后根据所述当前页面的标识信息,获取切换后的页面的标识信息和与所述标识信息对应的页面加载脚本,最后根据所述页面加载脚本,显示切换后的页面。与目前在进行一个浏览器标签内的页面切换时,通常是通过预置一个页面加载脚本实现页面间的切换显示相比,本发明是通过不同页面分别对应的页面加载脚本进行切换,实现不同页面之间的切换,可以避免页面间切换效果添加及浏览位置设置等的扩展功能较为受限的问题,并且可以提高页面切换效率。 The method and device for switching pages in a browser tag provided by the present invention firstly detect whether a page switching instruction corresponding to a browser tag is received, and the browser tag corresponds to multiple pages, and if the page switching instruction is received, Obtaining the identifier information of the current page from the preset page information list, and then acquiring the identifier information of the switched page and the page loading script corresponding to the identifier information according to the identifier information of the current page, and finally according to the page Load the script to display the page after the switch. Compared with the current page switching in a browser tag, the paging change between the pages is usually performed by presetting a page loading script. Compared with the page loading scripts corresponding to different pages, the present invention implements different pages. The switching between the pages can avoid the problem that the extension function of the page switching effect addition and the browsing position setting is limited, and the page switching efficiency can be improved.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the present invention, and the above-described and other objects, features and advantages of the present invention can be more clearly understood. Specific embodiments of the invention are set forth below.
附图说明DRAWINGS
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those skilled in the art from a The drawings are only for the purpose of illustrating the preferred embodiments and are not to be construed as limiting. Throughout the drawings, the same reference numerals are used to refer to the same parts. In the drawing:
图1示意性示出了本发明实施例提供的一种浏览器标签内的页面切换方法流程示意图;FIG. 1 is a schematic flowchart diagram of a page switching method in a browser tag according to an embodiment of the present invention;
图2示意性示出了本发明实施例提供的另一种浏览器标签内的页面切换方法流程示意图;FIG. 2 is a schematic flowchart diagram of another page switching method in a browser tag according to an embodiment of the present invention; FIG.
图3示意性示出了本发明实施例提供的一种浏览器标签内的页面切换装置结构示意图;FIG. 3 is a schematic structural diagram of a page switching apparatus in a browser tag according to an embodiment of the present invention; FIG.
图4示意性示出了本发明实施例提供的另一种浏览器标签内的页面切换装置结构示意图;FIG. 4 is a schematic structural diagram of a page switching apparatus in another browser tag according to an embodiment of the present invention; FIG.
图5示意性地示出了用于执行根据本发明的方法的计算设备的框图;以及Figure 5 shows schematically a block diagram of a computing device for performing the method according to the invention;
图6示意性地示出了用于保持或者携带实现根据本发明的方法的程序代码的存储单元。Fig. 6 schematically shows a storage unit for holding or carrying program code implementing the method according to the invention.
具体实施例Specific embodiment
下面结合附图和具体的实施方式对本发明作进一步的描述。The invention is further described below in conjunction with the drawings and specific embodiments.
本发明实施例提供了一种基于行为日志信息的用户行为分析方法,如图1所示,所示方法包括:An embodiment of the present invention provides a user behavior analysis method based on behavior log information. As shown in FIG. 1 , the method includes:
101、检测是否接收到浏览器标签对应的页面切换指令。101. Detect whether a page switching instruction corresponding to the browser tag is received.
其中,所述浏览器标签可以对应多个页面,每一个浏览器标签为一个 显示窗口,从而可以实现多个页面在一个浏览器标签内实现切换。所述页面切换指令可以携带有切换后的页面的标识信息,以指示切换后显示的页面,页面切换指令具体可以为向后切换goback函数、向前切换goforward函数等,本发明实施例不做限定。The browser tag can correspond to multiple pages, and each browser tag is one. Display windows so that multiple pages can be switched within a single browser tab. The page switching instruction may carry the identifier information of the page after the switching to indicate the page displayed after the switching, and the page switching instruction may be a backward switching goback function, a forward switching goforward function, etc., which is not limited in the embodiment of the present invention. .
102、若接收到所述页面切换指令,则从预置页面信息列表中获取当前页面的标识信息。102. If the page switching instruction is received, obtain the identifier information of the current page from the preset page information list.
其中,所述预置页面信息列表中保存有所述浏览器标签对应的每一个页面的标识信息和每一个页面的标识信息对应的页面加载脚本。所述页面的标识信息用于唯一标识该页面在预置页面信息列表中所在的位置,可以为页面序号、页面ID等,本发明实施例不做限定。页面加载脚本具体可以为网页显示函数webview,此时,预置页面信息列表可以通过函数WebviewTab进行管理,该列表具体可以由缓存有每一个页面的标识信息对应的页面加载脚本的webview列表mCachedPages和存有页面的标识信息以及webview标识信息的列表mpageHistoryStack组成,具体的形式可以如下所示:private ArrayList<IWebView>mCachedPages=null;private ArrayList<WebPageInfo>mpageHistoryStack=new ArrayList<WebPageInfo>()。所述预置页面信息列表中还可以保存有每一个页面对应的URL地址,用于标识所显示的页面对应的URL地址。The preset page information list stores the page load script corresponding to the identifier information of each page corresponding to the browser tag and the identifier information of each page. The identifier information of the page is used to uniquely identify the location of the page in the preset page information list, and may be a page number, a page ID, and the like, which are not limited in the embodiment of the present invention. The page loading script may specifically display the function webview for the webpage. At this time, the preset page information list may be managed by the function WebviewTab, and the list may be specifically cached by the webview list mCachedPages and the cache of the page loading script corresponding to each page. There is a page information and a list of webview identification information mpageHistoryStack, the specific form can be as follows: private ArrayList<IWebView>mCachedPages=null;private ArrayList<WebPageInfo>mpageHistoryStack=new ArrayList<WebPageInfo>(). The preset page information list may also store a URL address corresponding to each page for identifying a URL address corresponding to the displayed page.
103、根据所述当前页面的标识信息,获取切换后的页面的标识信息和与所述标识信息对应的页面加载脚本。103. Acquire, according to the identifier information of the current page, identifier information of the page after the switching and a page loading script corresponding to the identifier information.
对于本发明实施例,具体可以根据页面切换指令指示切换的向前或向后切换的页面个数和当前页面的标识信息,获取切换后的页面的标识信息。例如,页面切换指令指示向后切换两个页面,则从预置页面信息列表中获取当前页面的标识信息之后第二个页面的标识信息。For the embodiment of the present invention, the number of pages switched forward or backward and the identification information of the current page may be specifically indicated according to the page switching instruction, and the identifier information of the page after the switching is obtained. For example, if the page switching instruction indicates that two pages are switched backward, the identification information of the second page after the identification information of the current page is obtained from the preset page information list.
104、根据所述页面加载脚本,显示切换后的页面。104. Display the switched page according to the page loading script.
对于本发明实施例,通过页面加载脚本之间的切换实现不同页面间的切换显示,从而避免页面间切换效果添加及浏览位置设置等的扩展功能较为受限的问题,并且可以提高页面切换效率。For the embodiment of the present invention, switching between different page pages is realized by switching between page load scripts, thereby avoiding the problem that the extension function of the page switching effect addition and the browsing position setting is limited, and the page switching efficiency can be improved.
本发明提供的一种浏览器标签内的页面切换方法,首先检测是否接收 到浏览器标签对应的页面切换指令,所述浏览器标签对应多个页面,若接收到所述页面切换指令,则从预置页面信息列表中获取当前页面的标识信息,然后根据所述当前页面的标识信息,获取切换后的页面的标识信息和与所述标识信息对应的页面加载脚本,最后根据所述页面加载脚本,显示切换后的页面。与目前在进行一个浏览器标签内的页面切换时,通常是通过预置一个页面加载脚本实现页面间的切换显示相比,本发明是通过不同页面分别对应的页面加载脚本进行切换,实现不同页面之间的切换,可以避免页面间切换效果添加及浏览位置设置等的扩展功能较为受限的问题,并且可以提高页面切换效率。The method for page switching in a browser tag provided by the present invention first detects whether to receive Go to the page switching instruction corresponding to the browser tag, the browser tag corresponds to multiple pages, and if the page switching instruction is received, the identification information of the current page is obtained from the preset page information list, and then according to the current page. And the identifier information of the page after the switch is obtained, and the page load script corresponding to the identifier information is obtained, and finally, the page after the switch is displayed according to the page load script. Compared with the current page switching in a browser tag, the paging change between the pages is usually performed by presetting a page loading script. Compared with the page loading scripts corresponding to different pages, the present invention implements different pages. The switching between the pages can avoid the problem that the extension function of the page switching effect addition and the browsing position setting is limited, and the page switching efficiency can be improved.
本发明实施例提供了另一种浏览器标签内的页面切换方法,如图2所示,所示方法包括:An embodiment of the present invention provides a page switching method in another browser tag. As shown in FIG. 2, the method includes:
201、检测是否接收到浏览器标签对应的页面切换指令。201. Detect whether a page switching instruction corresponding to the browser tag is received.
其中,所述浏览器标签可以对应多个页面,每一个浏览器标签为一个显示窗口,从而可以实现多个页面在一个浏览器标签内实现切换。所述页面切换指令可以携带有切换后的页面的标识信息,以指示切换后显示的页面。The browser tag can correspond to multiple pages, and each browser tag is a display window, so that multiple pages can be switched in one browser tag. The page switching instruction may carry the identification information of the page after the switching to indicate the page displayed after the switching.
对于本发明实施例,步骤201之前还可以包括:根据所述浏览器标签对应的多个页面的显示顺序,为每一个页面配置页面的标识信息,并为每一个页面的标识信息分别配置对应的页面加载脚本,将所述浏览器标签对应的每一个页面的标识信息和每一个页面的标识信息对应的页面加载脚本保存在所述预置页面信息列表中。对于本发明实施例,通过根据所述浏览器标签对应的多个页面的显示顺序,为每一个页面配置页面的标识信息,可以保证进行页面切换时,更快的获取到切换后的页面的相关信息,从而进一步提高页面切换效率。For the embodiment of the present invention, before the step 201, the method further includes: configuring the identification information of the page for each page according to the display order of the multiple pages corresponding to the browser label, and configuring corresponding information for each page identification information. The page loading script saves the page loading script corresponding to the identification information of each page corresponding to the browser tag and the identification information of each page in the preset page information list. For the embodiment of the present invention, by configuring the identification information of the page for each page according to the display order of the plurality of pages corresponding to the browser tag, it is ensured that the page after the switching is obtained more quickly when the page is switched. Information to further improve page switching efficiency.
其中,所述页面的标识信息用于唯一标识该页面在预置页面信息列表中所在的位置,可以为页面序号、页面ID等,本发明实施例不做限定。页面加载脚本具体可以为网页显示函数webview,所述预置页面信息列表中还可以保存有每一个页面对应的URL地址,用于标识所显示的页面对应的URL地址。 The identifier information of the page is used to uniquely identify the location of the page in the preset page information list, and may be a page number, a page ID, and the like, which are not limited in the embodiment of the present invention. The page load script may be a webpage display function webview, and the preset page information list may further store a URL address corresponding to each page for identifying a URL address corresponding to the displayed page.
202、若接收到所述页面切换指令,则从预置页面信息列表中获取当前页面的标识信息。202. If the page switching instruction is received, obtain the identifier information of the current page from the preset page information list.
其中,所述预置页面信息列表中保存有所述浏览器标签对应的每一个页面的标识信息和每一个页面的标识信息对应的页面加载脚本。The preset page information list stores the page load script corresponding to the identifier information of each page corresponding to the browser tag and the identifier information of each page.
203、根据所述当前页面的标识信息,获取切换后的页面的标识信息和与所述标识信息对应的页面加载脚本。203. Acquire, according to the identifier information of the current page, identifier information of the page after the switching and a page loading script corresponding to the identifier information.
对于本发明实施例,具体可以根据页面切换指令指示切换的向前或向后切换的页面个数和当前页面的标识信息,获取切换后的页面的标识信息。例如,页面切换指令指示向后切换两个页面,则从预置页面信息列表中获取当前页面的标识信息之后第二个页面的标识信息。For the embodiment of the present invention, the number of pages switched forward or backward and the identification information of the current page may be specifically indicated according to the page switching instruction, and the identifier information of the page after the switching is obtained. For example, if the page switching instruction indicates that two pages are switched backward, the identification information of the second page after the identification information of the current page is obtained from the preset page information list.
具体地,步骤203可以包括:若所述页面切换指令为向后切换goback函数,则从所述预置页面信息列表中获取与所述当前页面的标识信息对应的上一个页面的标识信息和与所述标识信息对应的页面加载脚本;或者若所述页面切换指令为向前切换goforward函数,则从所述预置页面信息列表中获取与所述当前页面的标识信息对应的下一个页面的标识信息和与所述标识信息对应的页面加载脚本。Specifically, the step 203 may include: if the page switching instruction is to switch the goback function backward, obtaining the identification information of the previous page corresponding to the identification information of the current page from the preset page information list, and And the page loading script corresponding to the identifier information; or if the page switching instruction is a forward switching goforward function, obtaining an identifier of a next page corresponding to the identifier information of the current page from the preset page information list Information and a page load script corresponding to the identification information.
204、根据所述页面加载脚本,显示切换后的页面。204. Display the switched page according to the page loading script.
对于本发明实施例,步骤204具体可以包括:若不存在与所述当前页面的标识信息对应的上一个页面的标识信息或者下一个页面的标识信息,则显示当前页面。若不存在与所述当前页面的标识信息对应的上一个页面的标识信息或者下一个页面的标识信息,通过显示当前页面可以保证用户可以正常获取到页面信息,避免出现显示异常的情况。For the embodiment of the present invention, the step 204 may include: displaying the current page if there is no identification information of the previous page or identification information of the next page corresponding to the identification information of the current page. If the identification information of the previous page or the identification information of the next page corresponding to the identification information of the current page does not exist, the current page can be displayed to ensure that the page information can be obtained normally, and the display abnormality is avoided.
进一步地,还可以输出提示信息提示用户当前页面为首页或者为最后一页,以避免进行不必要的切换操作,所述提示信息可以为文本提示信息、音频提示信息、视频提示信息等,本发明实施例不做限定。Further, the prompt information may be output to prompt the user that the current page is the first page or the last page, to avoid unnecessary switching operations, and the prompt information may be text prompt information, audio prompt information, video prompt information, etc., the present invention The embodiment is not limited.
205、当接收到页面添加指令时,判断所述浏览器标签对应的页面数量是否小于预设阈值。205. When receiving the page adding instruction, determine whether the number of pages corresponding to the browser tag is less than a preset threshold.
其中,页面添加指令具体可以为用户进行的外链打开、页面内打开、导航屏链接打开等操作,用于指示将待打开的页面添加到预置页面信息列 表中,预设阈值可以根据实际需要进行设置,可以为10、15、20等。The page adding instruction may specifically perform operations such as opening an external link, opening the page, and opening the navigation screen link by the user, and are used to indicate that the page to be opened is added to the preset page information column. In the table, the preset threshold can be set according to actual needs, and can be 10, 15, 20, and the like.
206、若小于所述预设阈值,则为所述页面添加指令对应的页面配置标识信息和与所述标识信息对应的页面加载脚本并保存。206. If the preset threshold is less than, the page configuration identifier information corresponding to the instruction and the page loading script corresponding to the identifier information are added and saved.
对于本发明实施例,通过在确认保存的页面数量小于预设阈值的条件下,进行添加操作,可以保证缓存的数据量正常,以使得缓存可以正常工作,进而保证页面切换的效率。For the embodiment of the present invention, by performing the adding operation under the condition that the number of saved pages is less than the preset threshold, the amount of data buffered can be normal, so that the cache can work normally, thereby ensuring the efficiency of page switching.
进一步地,若大于或等于所述预设阈值,则将所述预置页面信息列表中第一个保存的页面的信息删除,然后为所述页面添加指令对应的页面配置标识信息和与所述标识信息对应的页面加载脚本并保存。通过将所述预置页面信息列表中第一个保存的页面的信息删除,然后为所述页面添加指令对应的页面配置标识信息和与所述标识信息对应的页面加载脚本并保存,在保证缓存的数据量正常条件下,实现了进行页面信息的更新。Further, if the preset threshold is greater than or equal to the preset threshold, the information of the first saved page in the preset page information list is deleted, and then the page configuration identifier information corresponding to the instruction is added to the page and The page load script corresponding to the identification information is saved and saved. The information of the first saved page in the preset page information list is deleted, and then the page configuration identification information corresponding to the instruction and the page loading script corresponding to the identification information are added and saved in the page, and the cache is guaranteed. The amount of data is normal, and the page information is updated.
对于本发明实施例,具体可以通过调用预置清空函数clearAllHistory将预置页面信息列表中的信息删除。通过提供预置清空函数,可以方便进行预置页面信息列表中的信息更新,保证预置页面信息列表中的信息更新效率。For the embodiment of the present invention, the information in the preset page information list may be specifically deleted by calling the preset clear function clearAllHistory. By providing a preset clear function, it is convenient to update the information in the preset page information list, and to ensure the information update efficiency in the preset page information list.
本发明提供的另一种浏览器标签内的页面切换方法,首先检测是否接收到浏览器标签对应的页面切换指令,所述浏览器标签对应多个页面,若接收到所述页面切换指令,则从预置页面信息列表中获取当前页面的标识信息,然后根据所述当前页面的标识信息,获取切换后的页面的标识信息和与所述标识信息对应的页面加载脚本,最后根据所述页面加载脚本,显示切换后的页面。与目前在进行一个浏览器标签内的页面切换时,通常是通过预置一个页面加载脚本实现页面间的切换显示相比,本发明是通过不同页面分别对应的页面加载脚本进行切换,实现不同页面之间的切换,可以避免页面间切换效果添加及浏览位置设置等的扩展功能较为受限的问题,并且可以提高页面切换效率。The page switching method in another browser tag provided by the present invention first detects whether a page switching instruction corresponding to a browser tag is received, and the browser tag corresponds to multiple pages, and if the page switching instruction is received, Obtaining the identifier information of the current page from the preset page information list, and then acquiring the identifier information of the switched page and the page loading script corresponding to the identifier information according to the identifier information of the current page, and finally loading according to the page Script that displays the page after the switch. Compared with the current page switching in a browser tag, the paging change between the pages is usually performed by presetting a page loading script. Compared with the page loading scripts corresponding to different pages, the present invention implements different pages. The switching between the pages can avoid the problem that the extension function of the page switching effect addition and the browsing position setting is limited, and the page switching efficiency can be improved.
进一步地,作为图1所述方法的具体实现,本发明实施例提供了一种浏览器标签内的页面切换装置,如图3所示,所述装置包括:检测单元31、获取单元32、显示单元33。 Further, as a specific implementation of the method in FIG. 1, the embodiment of the present invention provides a page switching device in a browser tag. As shown in FIG. 3, the device includes: a detecting unit 31, an obtaining unit 32, and a display. Unit 33.
检测单元31,用于检测是否接收到浏览器标签对应的页面切换指令,所述浏览器标签对应多个页面;The detecting unit 31 is configured to detect whether a page switching instruction corresponding to the browser tag is received, where the browser tag corresponds to multiple pages;
获取单元32,用于若接收到所述页面切换指令,则从预置页面信息列表中获取当前页面的标识信息,所述预置页面信息列表中保存有所述浏览器标签对应的每一个页面的标识信息和每一个页面的标识信息对应的页面加载脚本;The obtaining unit 32 is configured to obtain, according to the page switching instruction, the identifier information of the current page from the preset page information list, where the preset page information list stores each page corresponding to the browser label. The page loading script corresponding to the identification information and the identification information of each page;
所述获取单元32,还用于根据所述当前页面的标识信息,获取切换后的页面的标识信息和与所述标识信息对应的页面加载脚本;The obtaining unit 32 is further configured to obtain, according to the identifier information of the current page, identifier information of the switched page and a page loading script corresponding to the identifier information;
显示单元33,用于根据所述页面加载脚本,显示切换后的页面。The display unit 33 is configured to display the switched page according to the page loading script.
需要说明的是,本发明实施例提供的一种浏览器标签内的页面切换装置所涉及各功能单元的其他相应描述,可以参考图1中的对应描述,在此不再赘述。It should be noted that other corresponding descriptions of the functional units involved in the page switching apparatus in the browser tag provided by the embodiment of the present invention may be referred to the corresponding description in FIG. 1 and will not be further described herein.
本发明提供的一种浏览器标签内的页面切换装置,首先检测是否接收到浏览器标签对应的页面切换指令,所述浏览器标签对应多个页面,若接收到所述页面切换指令,则从预置页面信息列表中获取当前页面的标识信息,然后根据所述当前页面的标识信息,获取切换后的页面的标识信息和与所述标识信息对应的页面加载脚本,最后根据所述页面加载脚本,显示切换后的页面。与目前在进行一个浏览器标签内的页面切换时,通常是通过预置一个页面加载脚本实现页面间的切换显示相比,本发明是通过不同页面分别对应的页面加载脚本进行切换,实现不同页面之间的切换,可以避免页面间切换效果添加及浏览位置设置等的扩展功能较为受限的问题,并且可以提高页面切换效率。The page switching device in the browser tag of the present invention first detects whether a page switching instruction corresponding to a browser tag is received, the browser tag corresponds to a plurality of pages, and if the page switching instruction is received, Obtaining the identifier information of the current page in the preset page information list, and then acquiring the identifier information of the switched page and the page loading script corresponding to the identifier information according to the identifier information of the current page, and finally loading the script according to the page , displays the page after switching. Compared with the current page switching in a browser tag, the paging change between the pages is usually performed by presetting a page loading script. Compared with the page loading scripts corresponding to different pages, the present invention implements different pages. The switching between the pages can avoid the problem that the extension function of the page switching effect addition and the browsing position setting is limited, and the page switching efficiency can be improved.
进一步地,作为图2所述方法的具体实现,本发明实施例提供了另一种浏览器标签内的页面切换装置,如图4所示,所述装置包括:检测单元41、获取单元42、显示单元43。Further, as a specific implementation of the method in FIG. 2, the embodiment of the present invention provides another page switching device in a browser tag. As shown in FIG. 4, the device includes: a detecting unit 41, an obtaining unit 42, Display unit 43.
检测单元41,用于检测是否接收到浏览器标签对应的页面切换指令,所述浏览器标签对应多个页面;The detecting unit 41 is configured to detect whether a page switching instruction corresponding to the browser tag is received, where the browser tag corresponds to multiple pages;
获取单元42,用于若接收到所述页面切换指令,则从预置页面信息列表中获取当前页面的标识信息,所述预置页面信息列表中保存有所述浏览 器标签对应的每一个页面的标识信息和每一个页面的标识信息对应的页面加载脚本;The obtaining unit 42 is configured to: obtain the identifier information of the current page from the preset page information list, if the page switching instruction is received, where the browsing is saved in the preset page information list a page loading script corresponding to the identification information of each page corresponding to the device label and the identification information of each page;
所述获取单元42,还用于根据所述当前页面的标识信息,获取切换后的页面的标识信息和与所述标识信息对应的页面加载脚本;The obtaining unit 42 is further configured to obtain, according to the identifier information of the current page, identifier information of the page after the switching and a page loading script corresponding to the identifier information;
显示单元43,用于根据所述页面加载脚本,显示切换后的页面。The display unit 43 is configured to display the switched page according to the page loading script.
进一步地,所述装置还包括:Further, the device further includes:
配置单元44,用于根据所述浏览器标签对应的多个页面的显示顺序,为每一个页面配置页面的标识信息,并为每一个页面的标识信息分别配置对应的页面加载脚本;The configuration unit 44 is configured to configure, according to the display order of the multiple pages corresponding to the browser tag, the identification information of the page for each page, and configure corresponding page loading scripts for the identification information of each page;
保存单元45,用于将所述浏览器标签对应的每一个页面的标识信息和每一个页面的标识信息对应的页面加载脚本保存在所述预置页面信息列表中。The saving unit 45 is configured to save the page loading script corresponding to the identification information of each page corresponding to the browser tag and the identification information of each page in the preset page information list.
进一步地,所述获取单元42,具体用于若所述页面切换指令为向后切换goback函数,则从所述预置页面信息列表中获取与所述当前页面的标识信息对应的上一个页面的标识信息和与所述标识信息对应的页面加载脚本;或者若所述页面切换指令为向前切换goforward函数,则从所述预置页面信息列表中获取与所述当前页面的标识信息对应的下一个页面的标识信息和与所述标识信息对应的页面加载脚本。Further, the obtaining unit 42 is specifically configured to: if the page switching instruction is to switch the goback function backward, obtain the previous page corresponding to the identifier information of the current page from the preset page information list. And the page loading script corresponding to the identifier information; or if the page switching instruction is a forward switching goforward function, obtaining, corresponding to the identifier information of the current page, from the preset page information list Identification information of a page and a page loading script corresponding to the identification information.
进一步地,所述显示单元43,具体用于若不存在与所述当前页面的标识信息对应的上一个页面的标识信息或者下一个页面的标识信息,则显示当前页面。Further, the display unit 43 is specifically configured to display the current page if there is no identification information of the previous page or identification information of the next page corresponding to the identification information of the current page.
进一步地,所述装置还包括:判断单元46;Further, the device further includes: a determining unit 46;
所述判断单元46,用于当接收到页面添加指令时,判断所述浏览器标签对应的页面数量是否小于预设阈值;The determining unit 46 is configured to determine, when the page adding instruction is received, whether the number of pages corresponding to the browser tag is less than a preset threshold;
所述配置单元44,还用于若小于所述预设阈值,则为所述页面添加指令对应的页面配置标识信息和与所述标识信息对应的页面加载脚本并保存。The configuration unit 44 is further configured to: if the preset threshold is smaller, add the page configuration identifier information corresponding to the page and the page load script corresponding to the identifier information to the page and save the file.
进一步地,所述装置还包括:删除单元47。Further, the device further includes: a deleting unit 47.
所述删除单元47,用于若大于或等于所述预设阈值,则将所述预置页 面信息列表中第一个保存的页面的信息删除;The deleting unit 47 is configured to: if the preset threshold is greater than or equal to, the preset page The information of the first saved page in the face information list is deleted;
配置单元44,用于为所述页面添加指令对应的页面配置标识信息和与所述标识信息对应的页面加载脚本并保存。The configuration unit 44 is configured to add, to the page, page configuration identifier information corresponding to the instruction and a page load script corresponding to the identifier information, and save the page load script.
进一步地,所述删除单元47,还用于通过调用预置清空函数clearAllHistory将预置页面信息列表中的信息删除。Further, the deleting unit 47 is further configured to delete the information in the preset page information list by calling the preset clear function clearAllHistory.
对于本发明实施例,所述页面加载脚本为网页显示函数webview。For the embodiment of the present invention, the page loading script is a webpage display function webview.
需要说明的是,本发明实施例提供的一种浏览器标签内的页面切换装置所涉及各功能单元的其他相应描述,可以参考图2中的对应描述,在此不再赘述。It should be noted that other corresponding descriptions of the functional units involved in the page switching apparatus in the browser tag provided by the embodiment of the present invention may be referred to the corresponding description in FIG. 2, and details are not described herein again.
本发明提供的另一种浏览器标签内的页面切换装置,首先检测是否接收到浏览器标签对应的页面切换指令,所述浏览器标签对应多个页面,若接收到所述页面切换指令,则从预置页面信息列表中获取当前页面的标识信息,然后根据所述当前页面的标识信息,获取切换后的页面的标识信息和与所述标识信息对应的页面加载脚本,最后根据所述页面加载脚本,显示切换后的页面。与目前在进行一个浏览器标签内的页面切换时,通常是通过预置一个页面加载脚本实现页面间的切换显示相比,本发明是通过不同页面分别对应的页面加载脚本进行切换,实现不同页面之间的切换,可以避免页面间切换效果添加及浏览位置设置等的扩展功能较为受限的问题,并且可以提高页面切换效率。The page switching device in another browser tag provided by the present invention first detects whether a page switching instruction corresponding to a browser tag is received, the browser tag corresponds to multiple pages, and if the page switching instruction is received, Obtaining the identifier information of the current page from the preset page information list, and then acquiring the identifier information of the switched page and the page loading script corresponding to the identifier information according to the identifier information of the current page, and finally loading according to the page Script that displays the page after the switch. Compared with the current page switching in a browser tag, the paging change between the pages is usually performed by presetting a page loading script. Compared with the page loading scripts corresponding to different pages, the present invention implements different pages. The switching between the pages can avoid the problem that the extension function of the page switching effect addition and the browsing position setting is limited, and the page switching efficiency can be improved.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the details that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的浏览器标签内的页面切换方法及装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网 站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or digital signal processor (DSP) may be used in practice to implement some of the page switching methods and apparatus in a browser tag in accordance with embodiments of the present invention. Or all features. The invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein. Such a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals can be obtained from the Internet The download is available on the station, either on the carrier signal or in any other form.
例如,图5出了可以实现根据本发明的浏览器标签内的页面切换计算设备,例如应用服务器。该计算设备传统上包括处理器510以存储器520形式的计算机程序产品或者计算机可读介质。存储器520可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器520具有用于执行上述方法中的任何方法步骤的程序代码531的存储空间530。例如,用于程序代码的存储空间530可以包括分别用于实现上面的方法中的各种步骤的各个程序代码531。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图6述的便携式或者固定存储单元。该存储单元可以具有与图5的计算设备中的存储器520类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括计算机可读代码531’,即可以由例如诸如510之类的处理器读取的代码,这些代码当由计算设备运行时,导致该计算设备执行上面所描述的方法中的各个步骤。For example, Figure 5 illustrates a page switching computing device, such as an application server, within a browser tag that can implement the present invention. The computing device conventionally includes a computer program product or computer readable medium in the form of a processor 510 in the form of a memory 520. The memory 520 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM. Memory 520 has a memory space 530 for program code 531 for performing any of the method steps described above. For example, storage space 530 for program code may include various program code 531 for implementing various steps in the above methods, respectively. The program code can be read from or written to one or more computer program products. These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such computer program products are typically portable or fixed storage units as described with reference to FIG. The storage unit may have storage segments, storage spaces, and the like that are similarly arranged to memory 520 in the computing device of FIG. The program code can be compressed, for example, in an appropriate form. Typically, the storage unit includes computer readable code 531 ', ie, code readable by a processor, such as 510, that when executed by a computing device causes the computing device to perform each of the methods described above step.
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本发明的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。&quot;an embodiment,&quot; or &quot;an embodiment,&quot; or &quot;an embodiment,&quot; In addition, it is noted that the phrase "in one embodiment" is not necessarily referring to the same embodiment.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下被实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that the embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of the description.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装 置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It is to be noted that the above-described embodiments are illustrative of the invention and are not intended to be limiting, and that the invention may be devised without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as a limitation. The word "comprising" does not exclude the presence of the elements or steps that are not recited in the claims. The word "a" or "an" The invention can be implemented by means of hardware comprising several distinct elements and by means of a suitably programmed computer. In the unit claims enumerating several devices, these are Several of the settings can be embodied by the same hardware item. The use of the words first, second, and third does not indicate any order. These words can be interpreted as names.
此外,还应当注意,本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本发明的主题而选择的。因此,在不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。对于本发明的范围,对本发明所做的公开是说明性的,而非限制性的,本发明的范围由所附权利要求书限定。In addition, it should be noted that the language used in the specification has been selected for the purpose of readability and teaching, and is not intended to be construed or limited. Therefore, many modifications and changes will be apparent to those skilled in the art without departing from the scope of the invention. The disclosure of the present invention is intended to be illustrative, and not restrictive, and the scope of the invention is defined by the appended claims.
本发明实施例公开了A1、一种浏览器标签内的页面切换方法,包括:The embodiment of the invention discloses an A1, a page switching method in a browser tag, comprising:
检测是否接收到浏览器标签对应的页面切换指令,所述浏览器标签对应多个页面;Detecting whether a page switching instruction corresponding to the browser tag is received, where the browser tag corresponds to multiple pages;
若接收到所述页面切换指令,则从预置页面信息列表中获取当前页面的标识信息,所述预置页面信息列表中保存有所述浏览器标签对应的每一个页面的标识信息和每一个页面的标识信息对应的页面加载脚本;And if the page switching instruction is received, the identifier information of the current page is obtained from the preset page information list, where the identifier information of each page corresponding to the browser label is saved in the preset page information list, and each The page loading script corresponding to the identification information of the page;
根据所述当前页面的标识信息,获取切换后的页面的标识信息和与所述标识信息对应的页面加载脚本;Obtaining, according to the identifier information of the current page, identifier information of the page after the switching and a page loading script corresponding to the identifier information;
根据所述页面加载脚本,显示切换后的页面。According to the page loading script, the switched page is displayed.
A2、如A1所述的浏览器标签内的页面切换方法,所述检测是否接收到浏览器标签对应的页面切换指令之前,所述方法还包括步骤:A2. The page switching method in the browser tag of A1, before the detecting whether the page switching instruction corresponding to the browser tag is received, the method further includes the steps of:
根据所述浏览器标签对应的多个页面的显示顺序,为每一个页面配置页面的标识信息,并为每一个页面的标识信息分别配置对应的页面加载脚本;Configuring, according to the display order of the multiple pages corresponding to the browser tag, the identification information of the page for each page, and configuring corresponding page loading scripts for the identification information of each page;
将所述浏览器标签对应的每一个页面的标识信息和每一个页面的标识信息对应的页面加载脚本保存在所述预置页面信息列表中。The page loading script corresponding to the identification information of each page corresponding to the browser tag and the identification information of each page is saved in the preset page information list.
A3、如A2所述的浏览器标签内的页面切换方法,所述根据所述当前页面的标识信息,获取切换后的页面的标识信息和与所述标识信息对应的页面加载脚本包括:A3. The page switching method in the browser tag, as described in A2, the obtaining, according to the identifier information of the current page, the identifier information of the page after the switching and the page loading script corresponding to the identifier information include:
若所述页面切换指令为向后切换goback函数,则从所述预置页面信息列表中获取与所述当前页面的标识信息对应的上一个页面的标识信息和与所述标识信息对应的页面加载脚本; If the page switching instruction is to switch the goback function backward, the identifier information of the previous page corresponding to the identifier information of the current page and the page loading corresponding to the identifier information are obtained from the preset page information list. Script
若所述页面切换指令为向前切换goforward函数,则从所述预置页面信息列表中获取与所述当前页面的标识信息对应的下一个页面的标识信息和与所述标识信息对应的页面加载脚本。And if the page switching instruction is a forward switching goforward function, obtaining, from the preset page information list, identifier information of a next page corresponding to the identifier information of the current page and a page loading corresponding to the identifier information. script.
A4、如A3所述的浏览器标签内的页面切换方法,所述根据所述页面加载脚本,显示切换后的页面包括:A4. The page switching method in the browser tag of A3, wherein the displaying the switched page according to the page loading script comprises:
若不存在与所述当前页面的标识信息对应的上一个页面的标识信息或者下一个页面的标识信息,则显示当前页面。If there is no identification information of the previous page or identification information of the next page corresponding to the identification information of the current page, the current page is displayed.
A5、如A2所述的浏览器标签内的页面切换方法,所述方法还包括:A5. The page switching method in the browser tag of A2, the method further includes:
当接收到页面添加指令时,判断所述浏览器标签对应的页面数量是否小于预设阈值;When the page adding instruction is received, determining whether the number of pages corresponding to the browser tag is less than a preset threshold;
若小于所述预设阈值,则为所述页面添加指令对应的页面配置标识信息和与所述标识信息对应的页面加载脚本并保存。If the threshold is smaller than the preset threshold, the page configuration identifier information corresponding to the command and the page load script corresponding to the identifier information are added and saved.
A6、如A5所述的浏览器标签内的页面切换方法,所述方法还包括:A6. The page switching method in the browser tag of A5, the method further includes:
若大于或等于所述预设阈值,则将所述预置页面信息列表中第一个保存的页面的信息删除;If the preset threshold is greater than or equal to, the information of the first saved page in the preset page information list is deleted;
为所述页面添加指令对应的页面配置标识信息和与所述标识信息对应的页面加载脚本并保存。Adding page configuration identification information corresponding to the instruction and the page loading script corresponding to the identification information to the page and saving.
A7、如A1所述的浏览器标签内的页面切换方法,所述方法还包括:A7. The method for switching pages in a browser tag as described in A1, the method further includes:
通过调用预置清空函数clearAllHistory将预置页面信息列表中的信息删除。The information in the preset page information list is deleted by calling the preset clear function clearAllHistory.
A8、如A1-A7任一项所述的浏览器标签内的页面切换方法,所述页面加载脚本为网页显示函数webview。A8. The page switching method in a browser tag according to any one of A1-A7, wherein the page loading script is a webpage display function webview.
本发明实施例还公开了B9、一种浏览器标签内的页面切换装置,包括:The embodiment of the invention further discloses a B9, a page switching device in a browser tag, comprising:
检测单元,用于检测是否接收到浏览器标签对应的页面切换指令,所述浏览器标签对应多个页面;a detecting unit, configured to detect whether a page switching instruction corresponding to the browser tag is received, where the browser tag corresponds to multiple pages;
获取单元,用于若接收到所述页面切换指令,则从预置页面信息列表中获取当前页面的标识信息,所述预置页面信息列表中保存有所述浏览器标签对应的每一个页面的标识信息和每一个页面的标识信息对应的页面加载脚本; An obtaining unit, configured to: obtain, according to the page switching instruction, the identifier information of the current page from the preset page information list, where the preset page information list stores each page corresponding to the browser label a page loading script corresponding to the identification information and the identification information of each page;
所述获取单元,还用于根据所述当前页面的标识信息,获取切换后的页面的标识信息和与所述标识信息对应的页面加载脚本;The obtaining unit is further configured to obtain, according to the identifier information of the current page, identifier information of the switched page and a page loading script corresponding to the identifier information;
显示单元,用于根据所述页面加载脚本,显示切换后的页面。a display unit, configured to display the switched page according to the page loading script.
B10、如B9所述的浏览器标签内的页面切换装置,所述装置还包括:B10. The page switching device in the browser tag of B9, wherein the device further comprises:
配置单元,用于根据所述浏览器标签对应的多个页面的显示顺序,为每一个页面配置页面的标识信息,并为每一个页面的标识信息分别配置对应的页面加载脚本;a configuration unit, configured to configure, according to a display order of the plurality of pages corresponding to the browser label, identifier information of the page for each page, and configure a corresponding page loading script for each page identification information;
保存单元,用于将所述浏览器标签对应的每一个页面的标识信息和每一个页面的标识信息对应的页面加载脚本保存在所述预置页面信息列表中。The saving unit is configured to save the page loading script corresponding to the identification information of each page corresponding to the browser tag and the identification information of each page in the preset page information list.
B11如B10所述的浏览器标签内的页面切换装置,B11, the page switching device in the browser tag as described in B10,
所述获取单元,具体用于若所述页面切换指令为向后切换goback函数,则从所述预置页面信息列表中获取与所述当前页面的标识信息对应的上一个页面的标识信息和与所述标识信息对应的页面加载脚本;或者The acquiring unit is specifically configured to: if the page switching instruction is a backward switching goback function, obtain, from the preset page information list, identifier information of a previous page corresponding to the identifier information of the current page, and a page loading script corresponding to the identifier information; or
若所述页面切换指令为向前切换goforward函数,则从所述预置页面信息列表中获取与所述当前页面的标识信息对应的下一个页面的标识信息和与所述标识信息对应的页面加载脚本。And if the page switching instruction is a forward switching goforward function, obtaining, from the preset page information list, identifier information of a next page corresponding to the identifier information of the current page and a page loading corresponding to the identifier information. script.
B12、如B11所述的浏览器标签内的页面切换装置,B12. The page switching device in the browser tag as described in B11,
所述显示单元,具体用于若不存在与所述当前页面的标识信息对应的上一个页面的标识信息或者下一个页面的标识信息,则显示当前页面。The display unit is specifically configured to display the current page if there is no identification information of the previous page or identification information of the next page corresponding to the identification information of the current page.
B13、如B10所述的浏览器标签内的页面切换装置,所述装置还包括:判断单元;B13. The page switching device in the browser tag according to B10, the device further includes: a determining unit;
所述判断单元,用于当接收到页面添加指令时,判断所述浏览器标签对应的页面数量是否小于预设阈值;The determining unit is configured to determine, when the page adding instruction is received, whether the number of pages corresponding to the browser tag is less than a preset threshold;
所述配置单元,还用于若小于所述预设阈值,则为所述页面添加指令对应的页面配置标识信息和与所述标识信息对应的页面加载脚本并保存。The configuration unit is further configured to: if the preset threshold is less than, add, to the page, the page configuration identifier information corresponding to the page and the page load script corresponding to the identifier information, and save the page load script.
B14、如B13所述的浏览器标签内的页面切换装置,所述装置还包括:删除单元;B14. The page switching device in the browser tag of B13, the device further comprising: a deleting unit;
所述删除单元,用于若大于或等于所述预设阈值,则将所述预置页面 信息列表中第一个保存的页面的信息删除;The deleting unit is configured to: if the preset threshold is greater than or equal to, the preset page The information of the first saved page in the message list is deleted;
配置单元,用于为所述页面添加指令对应的页面配置标识信息和与所述标识信息对应的页面加载脚本并保存。And a configuration unit, configured to add, to the page, page configuration identifier information corresponding to the instruction and a page loading script corresponding to the identifier information, and save the file.
B15、如B14所述的浏览器标签内的页面切换装置,B15. The page switching device in the browser tag as described in B14,
所述删除单元,还用于通过调用预置清空函数clearAllHistory将预置页面信息列表中的信息删除。The deleting unit is further configured to delete the information in the preset page information list by calling the preset clear function clearAllHistory.
B16、如B9-B15任一项所述的浏览器标签内的页面切换装置,所述页面加载脚本为网页显示函数webview。 The page switching device in the browser tag of any one of B9-B15, wherein the page loading script is a webpage display function webview.

Claims (12)

  1. 一种浏览器标签内的页面切换方法,包括步骤:A page switching method in a browser tag, including the steps:
    检测是否接收到浏览器标签对应的页面切换指令,所述浏览器标签对应多个页面;Detecting whether a page switching instruction corresponding to the browser tag is received, where the browser tag corresponds to multiple pages;
    若接收到所述页面切换指令,则从预置页面信息列表中获取当前页面的标识信息,所述预置页面信息列表中保存有所述浏览器标签对应的每一个页面的标识信息和每一个页面的标识信息对应的页面加载脚本;And if the page switching instruction is received, the identifier information of the current page is obtained from the preset page information list, where the identifier information of each page corresponding to the browser label is saved in the preset page information list, and each The page loading script corresponding to the identification information of the page;
    根据所述当前页面的标识信息,获取切换后的页面的标识信息和与所述标识信息对应的页面加载脚本;Obtaining, according to the identifier information of the current page, identifier information of the page after the switching and a page loading script corresponding to the identifier information;
    根据所述页面加载脚本,显示切换后的页面。According to the page loading script, the switched page is displayed.
  2. 根据权利要求1所述的浏览器标签内的页面切换方法,所述检测是否接收到浏览器标签对应的页面切换指令之前,所述方法还包括步骤:The page switching method in the browser tag according to claim 1, before the detecting whether the page switching instruction corresponding to the browser tag is received, the method further comprises the steps of:
    根据所述浏览器标签对应的多个页面的显示顺序,为每一个页面配置页面的标识信息,并为每一个页面的标识信息分别配置对应的页面加载脚本;Configuring, according to the display order of the multiple pages corresponding to the browser tag, the identification information of the page for each page, and configuring corresponding page loading scripts for the identification information of each page;
    将所述浏览器标签对应的每一个页面的标识信息和每一个页面的标识信息对应的页面加载脚本保存在所述预置页面信息列表中。The page loading script corresponding to the identification information of each page corresponding to the browser tag and the identification information of each page is saved in the preset page information list.
  3. 根据权利要求2所述的浏览器标签内的页面切换方法,所述根据所述当前页面的标识信息,获取切换后的页面的标识信息和与所述标识信息对应的页面加载脚本包括:The page switching method in the browser tag according to claim 2, wherein the obtaining, according to the identification information of the current page, the identifier information of the page after the switching and the page loading script corresponding to the identifier information comprises:
    若所述页面切换指令为向后切换goback函数,则从所述预置页面信息列表中获取与所述当前页面的标识信息对应的上一个页面的标识信息和与所述标识信息对应的页面加载脚本;If the page switching instruction is to switch the goback function backward, the identifier information of the previous page corresponding to the identifier information of the current page and the page loading corresponding to the identifier information are obtained from the preset page information list. script;
    若所述页面切换指令为向前切换goforward函数,则从所述预置页面信息列表中获取与所述当前页面的标识信息对应的下一个页面的标识信息和与所述标识信息对应的页面加载脚本。And if the page switching instruction is a forward switching goforward function, obtaining, from the preset page information list, identifier information of a next page corresponding to the identifier information of the current page and a page loading corresponding to the identifier information. script.
  4. 根据权利要求3所述的浏览器标签内的页面切换方法,所述根据所述页面加载脚本,显示切换后的页面包括:The page switching method in the browser tag according to claim 3, wherein the displaying the switched page according to the page loading script comprises:
    若不存在与所述当前页面的标识信息对应的上一个页面的标识信息或 者下一个页面的标识信息,则显示当前页面。If there is no identification information of the previous page corresponding to the identification information of the current page or The identification information of the next page displays the current page.
  5. 根据权利要求2所述的浏览器标签内的页面切换方法,,所述方法还包括步骤:The method for switching pages in a browser tag according to claim 2, wherein the method further comprises the steps of:
    当接收到页面添加指令时,判断所述浏览器标签对应的页面数量是否小于预设阈值;When the page adding instruction is received, determining whether the number of pages corresponding to the browser tag is less than a preset threshold;
    若小于所述预设阈值,则为所述页面添加指令对应的页面配置标识信息和与所述标识信息对应的页面加载脚本并保存。If the threshold is smaller than the preset threshold, the page configuration identifier information corresponding to the command and the page load script corresponding to the identifier information are added and saved.
  6. 一种浏览器标签内的页面切换装置,包括:A page switching device in a browser tag, comprising:
    检测单元,用于检测是否接收到浏览器标签对应的页面切换指令,所述浏览器标签对应多个页面;a detecting unit, configured to detect whether a page switching instruction corresponding to the browser tag is received, where the browser tag corresponds to multiple pages;
    获取单元,用于若接收到所述页面切换指令,则从预置页面信息列表中获取当前页面的标识信息,所述预置页面信息列表中保存有所述浏览器标签对应的每一个页面的标识信息和每一个页面的标识信息对应的页面加载脚本;An obtaining unit, configured to: obtain, according to the page switching instruction, the identifier information of the current page from the preset page information list, where the preset page information list stores each page corresponding to the browser label a page loading script corresponding to the identification information and the identification information of each page;
    所述获取单元,还用于根据所述当前页面的标识信息,获取切换后的页面的标识信息和与所述标识信息对应的页面加载脚本;The obtaining unit is further configured to obtain, according to the identifier information of the current page, identifier information of the switched page and a page loading script corresponding to the identifier information;
    显示单元,用于根据所述页面加载脚本,显示切换后的页面。a display unit, configured to display the switched page according to the page loading script.
  7. 根据权利要求6所述的浏览器标签内的页面切换装置,所述装置还包括:The page switching device in the browser tag of claim 6, the device further comprising:
    配置单元,用于根据所述浏览器标签对应的多个页面的显示顺序,为每一个页面配置页面的标识信息,并为每一个页面的标识信息分别配置对应的页面加载脚本;a configuration unit, configured to configure, according to a display order of the plurality of pages corresponding to the browser label, identifier information of the page for each page, and configure a corresponding page loading script for each page identification information;
    保存单元,用于将所述浏览器标签对应的每一个页面的标识信息和每一个页面的标识信息对应的页面加载脚本保存在所述预置页面信息列表中。The saving unit is configured to save the page loading script corresponding to the identification information of each page corresponding to the browser tag and the identification information of each page in the preset page information list.
  8. 根据权利要求7所述的浏览器标签内的页面切换装置,A page switching device in a browser tag according to claim 7,
    所述获取单元,具体用于若所述页面切换指令为向后切换goback函数,则从所述预置页面信息列表中获取与所述当前页面的标识信息对应的上一个页面的标识信息和与所述标识信息对应的页面加载脚本;或者 The acquiring unit is specifically configured to: if the page switching instruction is a backward switching goback function, obtain, from the preset page information list, identifier information of a previous page corresponding to the identifier information of the current page, and a page loading script corresponding to the identifier information; or
    若所述页面切换指令为向前切换goforward函数,则从所述预置页面信息列表中获取与所述当前页面的标识信息对应的下一个页面的标识信息和与所述标识信息对应的页面加载脚本。And if the page switching instruction is a forward switching goforward function, obtaining, from the preset page information list, identifier information of a next page corresponding to the identifier information of the current page and a page loading corresponding to the identifier information. script.
  9. 根据权利要求8所述的浏览器标签内的页面切换装置,The page switching device in the browser tag according to claim 8,
    所述显示单元,具体用于若不存在与所述当前页面的标识信息对应的上一个页面的标识信息或者下一个页面的标识信息,则显示当前页面。The display unit is specifically configured to display the current page if there is no identification information of the previous page or identification information of the next page corresponding to the identification information of the current page.
  10. 根据权利要求7所述的浏览器标签内的页面切换装置,所述装置还包括:判断单元;The page switching device in the browser tag of claim 7, the device further comprising: a determining unit;
    所述判断单元,用于当接收到页面添加指令时,判断所述浏览器标签对应的页面数量是否小于预设阈值;The determining unit is configured to determine, when the page adding instruction is received, whether the number of pages corresponding to the browser tag is less than a preset threshold;
    所述配置单元,还用于若小于所述预设阈值,则为所述页面添加指令对应的页面配置标识信息和与所述标识信息对应的页面加载脚本并保存。The configuration unit is further configured to: if the preset threshold is less than, add, to the page, the page configuration identifier information corresponding to the page and the page load script corresponding to the identifier information, and save the page load script.
  11. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据权利要求1-5的任一个所述的浏览器标签内的页面切换方法。A computer program comprising computer readable code, when said computer readable code is run on a computing device, causing said computing device to perform page switching within a browser tag according to any of claims 1-5 method.
  12. 一种计算机可读介质,其中存储了如权利要求11所述的计算机程序。 A computer readable medium storing the computer program of claim 11.
PCT/CN2016/109992 2015-12-21 2016-12-15 Method and apparatus for switching page in browser label WO2017107833A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510968017.0A CN105528439B (en) 2015-12-21 2015-12-21 Page switching method and device in browser label
CN201510968017.0 2015-12-21

Publications (1)

Publication Number Publication Date
WO2017107833A1 true WO2017107833A1 (en) 2017-06-29

Family

ID=55770662

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/109992 WO2017107833A1 (en) 2015-12-21 2016-12-15 Method and apparatus for switching page in browser label

Country Status (2)

Country Link
CN (1) CN105528439B (en)
WO (1) WO2017107833A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110119490A (en) * 2019-04-18 2019-08-13 深圳壹账通智能科技有限公司 Web browser method, device, computer equipment and storage medium

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105528439B (en) * 2015-12-21 2019-03-05 北京奇虎科技有限公司 Page switching method and device in browser label
CN106227887A (en) * 2016-08-12 2016-12-14 汪念鸿 A kind of method returning the former page in browser new page
CN106227461B (en) * 2016-09-06 2020-01-14 广东欧珀移动通信有限公司 Window switching method and device
CN106503193A (en) * 2016-11-02 2017-03-15 网宿科技股份有限公司 Recover the method for the page and its device in browser
CN109903126B (en) * 2019-02-01 2021-07-30 北京字节跳动网络技术有限公司 Processing method and device for comment list in comment area and related equipment thereof
CN110069188B (en) * 2019-03-08 2021-01-29 维沃移动通信有限公司 Identification display method and terminal equipment
CN110427232B (en) * 2019-06-18 2023-04-07 平安科技(深圳)有限公司 Page management method and device, computer equipment and storage medium
CN112527475A (en) * 2019-09-19 2021-03-19 北京国双科技有限公司 Front-end system switching method and device
CN112162677B (en) * 2020-09-11 2022-04-22 北京浪潮数据技术有限公司 Menu page label positioning method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033935A (en) * 2010-12-20 2011-04-27 深圳市五巨科技有限公司 Preloading method, preloading device and preloading system of mobile terminal browser
CN102855318A (en) * 2012-08-31 2013-01-02 北京搜狗信息服务有限公司 Method and system for preloading of webpages
US20130145318A1 (en) * 2011-12-06 2013-06-06 Canon Kabushiki Kaisha Information processing apparatus, information processing method, and storage medium
CN103455632A (en) * 2013-09-22 2013-12-18 金蝶软件(中国)有限公司 Method and client for display web pages
CN103488411A (en) * 2012-06-13 2014-01-01 腾讯科技(深圳)有限公司 Method and device for switching pages
CN105426538A (en) * 2015-12-21 2016-03-23 北京奇虎科技有限公司 Page switching method and device
CN105528439A (en) * 2015-12-21 2016-04-27 北京奇虎科技有限公司 Switching method and device for page in browser label

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158766A (en) * 2007-09-04 2011-08-17 中兴通讯股份有限公司 Implementation method of page turning of network television embedded browser and system
KR101689745B1 (en) * 2010-09-06 2016-12-27 삼성전자주식회사 Web browsing system and method for rendering dynamic resource URI of script
CN102902805B (en) * 2012-10-15 2017-06-27 东软集团股份有限公司 A kind of page access method and apparatus

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102033935A (en) * 2010-12-20 2011-04-27 深圳市五巨科技有限公司 Preloading method, preloading device and preloading system of mobile terminal browser
US20130145318A1 (en) * 2011-12-06 2013-06-06 Canon Kabushiki Kaisha Information processing apparatus, information processing method, and storage medium
CN103488411A (en) * 2012-06-13 2014-01-01 腾讯科技(深圳)有限公司 Method and device for switching pages
CN102855318A (en) * 2012-08-31 2013-01-02 北京搜狗信息服务有限公司 Method and system for preloading of webpages
CN103455632A (en) * 2013-09-22 2013-12-18 金蝶软件(中国)有限公司 Method and client for display web pages
CN105426538A (en) * 2015-12-21 2016-03-23 北京奇虎科技有限公司 Page switching method and device
CN105528439A (en) * 2015-12-21 2016-04-27 北京奇虎科技有限公司 Switching method and device for page in browser label

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110119490A (en) * 2019-04-18 2019-08-13 深圳壹账通智能科技有限公司 Web browser method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN105528439A (en) 2016-04-27
CN105528439B (en) 2019-03-05

Similar Documents

Publication Publication Date Title
WO2017107833A1 (en) Method and apparatus for switching page in browser label
WO2017107834A1 (en) Page switching method and apparatus, computer program, and readable medium
US9984047B2 (en) Application page quick access
US9916390B2 (en) Managing web browser cache for offline browsing
WO2019157894A1 (en) Application page display method and apparatus, storage medium and electronic device
US20150261834A1 (en) Method and apparatus for providing search result
US20160202943A1 (en) Electronic device and method of processing information in electronic device
WO2016107325A1 (en) Page resource loading method and device based on mobile terminal
US20150222512A1 (en) Event pages for web applications and extensions
WO2017000613A1 (en) Method and device for generating indication information in search result page
US20170139813A1 (en) Method and device for checking influence of deleting cache file, and mobile terminal
CN106649543A (en) Reading progress recording method and device and terminal
US20150269129A1 (en) Method for adding bookmarks and browser
WO2016015531A1 (en) Information processing method and apparatus
CN104866416A (en) Method and device for performance analysis of application program
WO2017107679A1 (en) Historical information display method and apparatus
KR102471739B1 (en) Apparatus and method for managing of history information in a electronic device
CN110806822A (en) Electronic book interaction method, computing device and computer storage medium
US20120084630A1 (en) Generating Behavior Information For a Link
US20150199329A1 (en) Text display method and apparatus of electronic device
WO2017107844A1 (en) Method and apparatus for adjusting display information, computer program, and readable medium
WO2017107887A1 (en) Method and apparatus for switching group picture on mobile terminal
US20180183752A1 (en) Method and system for providing additional information relating to primary information
WO2017076027A1 (en) Wallpaper processing method and apparatus
EP3043252A1 (en) Method and electronic device for displaying electronic document

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: 16877644

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: 16877644

Country of ref document: EP

Kind code of ref document: A1