WO2017219524A1 - Page saving method and electronic device - Google Patents

Page saving method and electronic device Download PDF

Info

Publication number
WO2017219524A1
WO2017219524A1 PCT/CN2016/099908 CN2016099908W WO2017219524A1 WO 2017219524 A1 WO2017219524 A1 WO 2017219524A1 CN 2016099908 W CN2016099908 W CN 2016099908W WO 2017219524 A1 WO2017219524 A1 WO 2017219524A1
Authority
WO
WIPO (PCT)
Prior art keywords
page
background
saved
attribute
electronic device
Prior art date
Application number
PCT/CN2016/099908
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 WO2017219524A1 publication Critical patent/WO2017219524A1/en

Links

Images

Classifications

    • 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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/986Document structures and storage, e.g. HTML extensions

Definitions

  • the embodiments of the present invention relate to the field of electronic technologies, and in particular, to a method for saving a page and an electronic device.
  • the inventor of the present invention finds that the above technology has at least the following technical problem: since the electronic device caches all background pages in the browser when using the browser, the browser Too many cached data, resulting in a large memory footprint of the electronic device.
  • the embodiment of the invention provides a method for saving a page and an electronic device, which are used to solve the technical problem that the cache data of the browser is too large in the prior art, resulting in a large memory occupation of the electronic device, and the cache data of the browser is reduced. Reduce the technical effect of the electronic device memory footprint.
  • An embodiment of the present invention provides a method for saving a page, including:
  • Obtaining a page attribute of a background page of the browser wherein the background page is at least one page opened before the current display page is opened, the page attribute is used to represent the usage of the background page or the background page includes a link Number of
  • An embodiment of the present invention provides an electronic device for saving a page, including:
  • Obtaining a page attribute of a background page of the browser wherein the background page is at least one page opened before the current display page is opened, the page attribute is used to represent the usage of the background page or the background page includes a link Number of
  • An embodiment of the present invention provides an electronic device, including:
  • a memory for storing instructions
  • processor coupled to the memory for executing the instructions to perform the following steps when the instructions are executed:
  • Obtaining a page attribute of a background page of the browser wherein the background page is at least one page opened before the current display page is opened, and the page attribute is used to represent usage information of the background page or included in the background page
  • the number of links
  • Embodiments of the present invention provide a non-transitory storage medium for storing a computer program, the computer program including instructions for executing the foregoing page saving method.
  • Embodiments of the present invention provide a computer program, where the computer program includes instructions for executing the foregoing page saving method.
  • the method for saving a page and the electronic device obtaineds the page attribute of the plurality of background pages opened by the browser, and saves the page whose page attribute meets the preset condition from the background page as the saved page, thereby reducing the The number of pages saved, which reduces the browser's cached data and reduces the memory footprint of the electronic device.
  • FIG. 1 is a flowchart of a method for saving a page according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic structural diagram of an electronic device for saving a page according to Embodiment 2 of the present invention
  • FIG. 3 is a schematic diagram of an electronic device 300 according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for saving a page according to an embodiment of the present invention, where the method includes:
  • S101 Obtain a page attribute of a background page of the browser, where the background page is at least one page that is opened before the current display page is opened, and the page attribute is used to represent the usage of the background page or the background page. Contains the number of links;
  • a page loading method provided by an embodiment of the present invention can be applied to an electronic device installed with a browser, such as a smart phone, a smart watch or a tablet computer, or another electronic device capable of running a browser. Therefore, we will not give examples one by one.
  • the page opened before the current display page is opened is the background page of the browser.
  • the background page is saved, but For some background pages, the user does not browse again, but the cache of these pages is still stored in the electronic device, which occupies a large amount of memory of the electronic device, which affects the performance of the electronic device, and the processing speed of the electronic device is too slow. The user's experience is poor.
  • the electronic device detects whether there is an open background page before the current display page, and if so, obtains the page attribute of the background page, and determines the page attribute. Whether the default condition is met, if it is met, the background page is determined to be saved as a saved page.
  • the page properties include usage information for the background page and the number of links included in the background page.
  • the usage information includes a loading time of the background page or a loading frequency of the background page.
  • the usage information of the background page includes a loading time of the background page, Or the loading frequency of the background page.
  • the loading time of the background page is the time from the start of the loading of the background page to the completion of the loading.
  • the loading time of the page can be calculated, and the page attribute of the background page is saved in the electronic device.
  • the loading frequency is the number of times the background page is loaded in unit time.
  • the following method can be used to obtain the loading frequency of the background page:
  • the first embodiment the number of times the background page is clicked by all users in a unit time can be counted.
  • the second implementation manner different users load pages differently according to their own usage habits.
  • some website users need to use the relevant account and password when logging in, so in this embodiment, the loading frequency of the same account loading the page can be obtained, that is, the loading frequency of the same user for the page is determined by the user. usage habit.
  • the loading frequency of the background page can be determined according to the user's usage habits, and if the loading frequency is large, the background page can be saved. This can more accurately determine the save page from the background page, and further improve the user's experience.
  • the page attribute further includes a page type of the background page, a loading interval of the background page, and the like, and may be appropriately set according to actual needs, and the present invention is not limited thereto.
  • S102 Determine, from the background page, a page whose page attribute meets a preset condition is a save page;
  • the electronic device may determine the saved page from the background page according to the attribute information, and save the saved page.
  • the saved page is determined in the following manners:
  • the save page may be determined from the background page according to the loading frequency of the page.
  • the electronic device can count the loading frequency of the background page. If the loading frequency of the background page is greater than the preset frequency, it indicates that the user frequently loads the background page, and the background page can be saved, when the user loads the background page again. You can directly call the saved background page. Reduce the load time of the background page. If the loading frequency of the background page is less than the preset frequency, it indicates that the user does not load the background page frequently, so the background page does not need to be saved. When the user loads the background page again, the network side can be reloaded, which can be reduced.
  • the electronic device's memory usage when the electronic device uses the browser improves the performance of the electronic device.
  • the preset loading frequency is loaded once per minute as an example.
  • the loading frequency of page A and page B is obtained. If the loading frequency of the A page is 0.5 times per minute and the loading frequency of the B page is 2 times per minute, it can be determined that the loading frequency of the B page is greater than the preset loading frequency, and then the B page can be saved as a saved page. .
  • the second type the page attribute includes the number of the links included in the background page, and the page that determines that the page attribute meets the preset condition from the background page is a saved page, including:
  • Determining, from the background page, that the number of links in the background page that are greater than a preset number is the saved page.
  • the background page can include a link, so that when the user clicks on the link included in the background page, the user can load the page corresponding to the link through the link, for example, after the user retrieves the "A" through the search engine, the browser A link containing the search result of N (N is greater than or equal to zero) "A" is displayed, and the user loads the page corresponding to the first link by clicking the first link on the page, and after browsing the first link After the page, the background page of the link containing the search results of N "A" will be returned again, and the next search result will be loaded. If the number of links included in the background page is more, the frequency with which the user loads the background page is more.
  • whether the background page is determined to be a saved page may be determined according to the number of links included in the background page. If the number of links included in the background page is greater than the preset number, the frequency at which the user loads the background page again is large, and the background page is determined to be saved as a saved page.
  • the preset number is 10 as an example. If the background page of the browser is detected as page A and page B, the electronic device further detects the number of links included in page A and page B. If page A contains 30 links, page B contains If the number of links is five, it can be determined that the number of links included in the page A is greater than the preset number of 10. The frequency at which the user loads the page A is relatively large, and the page A is determined to be a saved page for saving.
  • the electronic device may also count the loading frequency of the user on the background page, and determine the page that the user is interested in according to the loading frequency. If the number of links of the user interested in the link included in the background page is greater than the preset. Number, the background page is determined to be saved page save. The save page can be determined more accurately from the background page by the method of the embodiment of the present invention.
  • whether the background page is saved may be determined according to the loading time of the background page.
  • the loading time is the time required for the user to start loading the background page to the background page to complete the loading.
  • the loading of the background page can be determined according to the time difference between the start time of the user starting to load the background page and the end time of the background page loading completion. time. If the loading time of the background page is long, it indicates that the page of the background page has a large degree of complexity, and the number of links included in the background page is large, and the user may load the background page multiple times. Therefore, it can be determined from the background page that the page whose loading time is greater than the preset time is saved for the saved page.
  • the preset time is 2s as an example.
  • the loading time of page A and page B is obtained, if the loading time of page A and page B are 3s and 1s, respectively. Then, it is determined that the loading time of the page A is greater than the preset loading time by 2 s, and the page A is determined to be the saved page, and the page A is saved.
  • the loading interval is a time difference between the user loading the background page and the same background page that was loaded the previous time.
  • the electronic device calculates the loading interval of the background page to determine the loading interval of each background page. If the loading interval of the background page is less than the preset interval, the user frequently loads the background page. In this case, the device may The background page is saved as a save page, so that when the user loads the background page again, the saved background page can be directly loaded.
  • the preset interval is 1 min as an example.
  • the electronic device When it is detected that the background page of the browser includes the page A and the page B, the electronic device further obtains the loading interval of the page A and the page B. If the loading interval of the page A is 0.5 min and the loading interval of the page B is 2 min, then It can be determined that the loading interval included in the page A is less than the preset interval of 1 min, the frequency at which the user loads the page A is large, and the page A is determined to be the saved page for saving.
  • the fifth type when the page attribute includes a page type, the determining the page from the background page The page whose surface attribute meets the preset condition is the saved page, including:
  • the background page can be classified into a search engine class page, a URL navigation page, a news reading page, and a game page.
  • the search engine page and the URL navigation page the user often uses such a page.
  • the included link is loaded to the corresponding page, and for the page such as the news reading class or the game class, the user does not load again after loading, so in the embodiment of the present invention, the save page can be determined according to the page type of the background page.
  • the search engine class, the URL navigation class, and the like are set to a preset type. If the page type of the background page is a preset type, the background page is determined to be a saved page for saving.
  • the preset type includes a search engine page type and a URL navigation page type as an example.
  • the electronic device detects that the background page of the browser includes "'A' search page", "B game home page”, "news reading page”, and "C website navigation page", it is determined that the page type of the background page is search
  • the engine class, the game class, the news reading class, and the URL navigation class determine that the page type of "'A' search page” and "C site navigation page” is a preset type, and "'A' search page” and The "C URL Navigation Page” is determined to save the saved page.
  • the preset type may be set according to the needs of the user, and the present invention is not limited thereto.
  • the sixth type when the page attribute includes a page type and a loading time, the determining, by the background page, that the page attribute meets the preset condition, the saving page comprises:
  • the saved page may be determined according to the page type and the loading interval of the background page. After the background page whose page type is the preset type is determined, the loading interval of the background page is obtained. If the loading interval is greater than the preset interval, the background page does not need to be saved. If the loading interval of the background page is less than the preset interval, The background page is determined to be saved as a save page.
  • the background page includes at least two of the number of links, and the like, and the combination determination may be performed according to actual needs, and the present invention is not limited thereto.
  • the saved page after the saved page is determined, the saved page can be saved, so that when the user loads the saved page again, the saved background page can be read, and the background page can be quickly loaded.
  • saving the saved page includes:
  • the external storage device has a backup function, so that the user can store the data backed up by the electronic device to the external storage device, reduce the memory occupation of the electronic device, and connect the external storage devices of different storage spaces according to the needs of the user.
  • the saved page needs to be saved.
  • the electronic device detects whether the external storage device is connected, and if so, the saved page is saved. It is stored in the external storage device, so that the saved page can be saved in the memory of the electronic device, which reduces the occupation of the electronic device when the electronic device uses the browser, and improves the performance of the electronic device.
  • the external storage device may be an SD card (Secure Digital Memory Card), a USB flash drive (Universal Serial Bus Flash Drive), or a mobile hard disk, which may be implemented according to actual needs.
  • SD card Secure Digital Memory Card
  • USB flash drive Universal Serial Bus Flash Drive
  • mobile hard disk which may be implemented according to actual needs.
  • Reasonable setting the invention is not limited thereto.
  • the present invention further provides an electronic device for saving a page, including:
  • the obtaining unit 201 is configured to obtain a page attribute of a background page of the browser, where the background page is at least one page that is opened before the current display page is opened, and the page attribute is used to represent usage information of the background page or
  • the background page includes the number of links;
  • a determining unit 202 configured to determine, from the background page, a page whose page attribute meets a preset condition is a saved page;
  • the saving unit 203 is configured to save the saved page.
  • the usage information includes a loading time of the background page or a loading frequency of the background page.
  • the determining unit 202 uses to:
  • the determining unit 202 is configured to:
  • the determining unit 202 is configured to:
  • Determining, from the background page, that the number of links in the background page that are greater than a preset number is the saved page.
  • the saving unit 203 is configured to:
  • the electronic device saved by the page provided by the embodiment of the present invention can obtain the page attribute of the plurality of background pages opened by the browser, and save the page whose page attribute meets the preset condition from the background page as the saved page, thereby reducing the saving.
  • the number of pages which reduces the browser's cached data and reduces the memory footprint of the electronic device.
  • FIG. 3 is a schematic diagram of an electronic device 300 according to an embodiment of the present invention.
  • the electronic device 300 includes a bus 301, a memory 302 respectively connected to the bus 301, and a processor 303.
  • the memory 302 is configured to store an instruction
  • the processor 303 is configured to execute the instruction to perform the following steps: obtaining a page attribute of a background page of the browser, where the background page is the current display At least one page opened in front of the page, the page attribute is used to represent usage information of the background page or the number of links included in the background page; and determining, from the background page, a page whose page attribute meets a preset condition To save the page; save the saved page.
  • Embodiments of the present invention provide a non-transitory storage medium for storing a computer program, the computer program including instructions for executing the foregoing page saving method.
  • Embodiments of the present invention provide a computer program, where the computer program includes instructions for executing the foregoing page saving method.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located One place, or it can be distributed to multiple networks On the unit. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.

Abstract

A page saving method and an electronic device, comprising: obtaining a page attribute of a background page of a browser (S101), the background page referring to at least one page opened before a current display page is opened, and the page attribute being used for representing use conditions of the background page or the number of links contained in the background page; determining, from the background page, a page whose page attribute meeting a preset condition as a page to be saved (S102); and saving the page to be saved (S103). The page saving method is used for solving the technical problem of high memory usage of an electronic device in the prior art due to excessive cache data of a browser.

Description

一种页面保存的方法及电子设备Method for saving page and electronic device
本申请要求在2016年6月23日提交中国专利局、申请号为201610466413.8、发明名称为“一种页面保存的方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201610466413.8, entitled "Method for Saving a Page and Electronic Equipment", filed on June 23, 2016, the entire contents of which are incorporated herein by reference. In the application.
技术领域Technical field
本发明实施例涉及电子技术领域,尤其涉及一种页面保存的方法及电子设备。The embodiments of the present invention relate to the field of electronic technologies, and in particular, to a method for saving a page and an electronic device.
背景技术Background technique
随着科学技术的不断进步,电子设备也得到了飞速的发展,许多电子设备,如智能手机、平板电脑等,成为了人们日常生活的必需品。With the continuous advancement of science and technology, electronic equipment has also developed rapidly. Many electronic devices, such as smart phones and tablet computers, have become a necessity for people's daily lives.
目前,随着电子设备的普通使用,人们通过电子设备进行各种操作,如:通过浏览器浏览资讯、通过图形处理软件处理图片、通过办公软件编辑文档。现有技术中电子设备在使用浏览器浏览资讯的时候,可以将浏览器打开的后台页面保存在电子设备中。At present, with the common use of electronic devices, people perform various operations through electronic devices, such as browsing information through a browser, processing images through graphics processing software, and editing documents through office software. In the prior art, when the electronic device uses the browser to browse information, the background page opened by the browser can be saved in the electronic device.
但本发明的发明人在实现本发明实施例中发明技术方案的过程中,发现上述技术至少存在如下技术问题:由于电子设备在使用浏览器时将全部的后台页面缓存在浏览器中,浏览器的缓存数据过多,导致电子设备内存占用大。However, in the process of implementing the technical solution of the embodiment of the present invention, the inventor of the present invention finds that the above technology has at least the following technical problem: since the electronic device caches all background pages in the browser when using the browser, the browser Too many cached data, resulting in a large memory footprint of the electronic device.
发明内容Summary of the invention
本发明实施例提供一种页面保存的方法及电子设备,用以解决现有技术中浏览器的缓存数据过多,导致电子设备内存占用大的技术问题,实现了减少浏览器的缓存数据,进而降低电子设备内存占用的技术效果。The embodiment of the invention provides a method for saving a page and an electronic device, which are used to solve the technical problem that the cache data of the browser is too large in the prior art, resulting in a large memory occupation of the electronic device, and the cache data of the browser is reduced. Reduce the technical effect of the electronic device memory footprint.
本发明实施例提供一种页面保存的方法,包括:An embodiment of the present invention provides a method for saving a page, including:
获得浏览器的后台页面的页面属性,其中,所述后台页面为打开当前显示页面前打开的至少一个页面,所述页面属性用于表征所述后台页面的使用情况或所述后台页面中包含链接的个数;Obtaining a page attribute of a background page of the browser, wherein the background page is at least one page opened before the current display page is opened, the page attribute is used to represent the usage of the background page or the background page includes a link Number of
从所述后台页面中确定页面属性符合预设条件的页面为保存页面; Determining, from the background page, a page whose page attribute meets a preset condition is a save page;
保存所述保存页面。Save the save page.
本发明实施例提供一种页面保存的电子设备,包括:An embodiment of the present invention provides an electronic device for saving a page, including:
获得浏览器的后台页面的页面属性,其中,所述后台页面为打开当前显示页面前打开的至少一个页面,所述页面属性用于表征所述后台页面的使用情况或所述后台页面中包含链接的个数;Obtaining a page attribute of a background page of the browser, wherein the background page is at least one page opened before the current display page is opened, the page attribute is used to represent the usage of the background page or the background page includes a link Number of
从所述后台页面中确定页面属性符合预设条件的页面为保存页面;Determining, from the background page, a page whose page attribute meets a preset condition is a save page;
保存所述保存页面。Save the save page.
本发明实施例提供一种电子设备,包括:An embodiment of the present invention provides an electronic device, including:
存储器,用于存储指令;a memory for storing instructions;
处理器,与所述存储器相连,用于执行所述指令,以在执行所述指令时执行如下步骤:a processor coupled to the memory for executing the instructions to perform the following steps when the instructions are executed:
获得浏览器的后台页面的页面属性,其中,所述后台页面为打开当前显示页面前打开的至少一个页面,所述页面属性用于表征所述后台页面的使用情况信息或所述后台页面中包含链接的个数;Obtaining a page attribute of a background page of the browser, wherein the background page is at least one page opened before the current display page is opened, and the page attribute is used to represent usage information of the background page or included in the background page The number of links;
从所述后台页面中确定页面属性符合预设条件的页面为保存页面;Determining, from the background page, a page whose page attribute meets a preset condition is a save page;
保存所述保存页面。Save the save page.
本发明实施例提供一种非暂态存储介质,所述非暂态存储介质用于存储计算机程序,所述计算机程序包括用于执行前述页面保存方法的指令。Embodiments of the present invention provide a non-transitory storage medium for storing a computer program, the computer program including instructions for executing the foregoing page saving method.
本发明实施例提供一种计算机程序,所述计算机程序包括用于执行前述页面保存方法的指令。Embodiments of the present invention provide a computer program, where the computer program includes instructions for executing the foregoing page saving method.
本发明实施例提供的页面保存的方法及电子设备,获得浏览器打开的多个后台页面的页面属性,从后台页面中确定页面属性符合预设条件的页面作为保存页面保存起来,这样,减少了保存页面的数量,从而减少了浏览器的缓存数据,降低了电子设备的内存占用。The method for saving a page and the electronic device provided by the embodiment of the present invention obtains the page attribute of the plurality of background pages opened by the browser, and saves the page whose page attribute meets the preset condition from the background page as the saved page, thereby reducing the The number of pages saved, which reduces the browser's cached data and reduces the memory footprint of the electronic device.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1为本发明实施例一中提供的一种页面保存的方法的流程图; FIG. 1 is a flowchart of a method for saving a page according to Embodiment 1 of the present invention;
图2为本发明实施例二中提供的一种页面保存的电子设备的结构示意图;2 is a schematic structural diagram of an electronic device for saving a page according to Embodiment 2 of the present invention;
图3为本发明实施例提供的电子设备300的示意图。FIG. 3 is a schematic diagram of an electronic device 300 according to an embodiment of the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
请参考图1,为本发明实施例中提供的一种页面保存的方法的流程图,所述方法包括:Please refer to FIG. 1 , which is a flowchart of a method for saving a page according to an embodiment of the present invention, where the method includes:
S101:获得浏览器的后台页面的页面属性,其中,所述后台页面为打开当前显示页面前打开的至少一个页面,所述页面属性用于表征所述后台页面的使用情况或所述后台页面中包含链接的个数;S101: Obtain a page attribute of a background page of the browser, where the background page is at least one page that is opened before the current display page is opened, and the page attribute is used to represent the usage of the background page or the background page. Contains the number of links;
本发明实施例提供的一种页面加载的方法能够应用于一种安装有浏览器的电子设备,如:智能手机、智能手表或平板电脑等,或者为别的能够运行浏览器的电子设备,在此,就不再一一举例了。A page loading method provided by an embodiment of the present invention can be applied to an electronic device installed with a browser, such as a smart phone, a smart watch or a tablet computer, or another electronic device capable of running a browser. Therefore, we will not give examples one by one.
当浏览器打开当前页面的时候,在打开当前显示页面之前打开的页面为浏览器的后台页面,现有技术中,当浏览器在显示当前显示的页面的时候,会将后台页面保存起来,但是对于有些后台页面,使用者并不会再次浏览,但是这些页面的缓存仍旧保存在电子设备中,占用了电子设备的大量内存,这样就会影响电子设备的性能,使得电子设备处理速度过慢,使用者的使用感受较差。When the browser opens the current page, the page opened before the current display page is opened is the background page of the browser. In the prior art, when the browser displays the currently displayed page, the background page is saved, but For some background pages, the user does not browse again, but the cache of these pages is still stored in the electronic device, which occupies a large amount of memory of the electronic device, which affects the performance of the electronic device, and the processing speed of the electronic device is too slow. The user's experience is poor.
所以在本发明实施例中,浏览器在显示当前显示的页面时,电子设备就会检测在当前显示页面之前是否有打开的后台页面,如果有,就获得后台页面的页面属性,并判断页面属性是否符合预设的条件,如果符合就将该后台页面确定为保存页面进行保存。页面属性包括后台页面的使用情况信息和后台页面所包含的链接的个数。Therefore, in the embodiment of the present invention, when the browser displays the currently displayed page, the electronic device detects whether there is an open background page before the current display page, and if so, obtains the page attribute of the background page, and determines the page attribute. Whether the default condition is met, if it is met, the background page is determined to be saved as a saved page. The page properties include usage information for the background page and the number of links included in the background page.
可选的,所述使用情况信息包括所述后台页面的加载时间或所述后台页面的加载频率。Optionally, the usage information includes a loading time of the background page or a loading frequency of the background page.
本发明实施例中,后台页面的使用情况信息包括后台页面的加载时间, 或后台页面的加载频率。In the embodiment of the present invention, the usage information of the background page includes a loading time of the background page, Or the loading frequency of the background page.
后台页面的加载时间,为后台页面从开始加载到加载完成的时间,当使用者加载该后台页面时,可以计算出页面的加载时间,作为后台页面的页面属性保存在电子设备中。The loading time of the background page is the time from the start of the loading of the background page to the completion of the loading. When the user loads the background page, the loading time of the page can be calculated, and the page attribute of the background page is saved in the electronic device.
加载频率为单位时间内加载后台页面的次数,有以下方式可以获得后台页面的加载频率:The loading frequency is the number of times the background page is loaded in unit time. The following method can be used to obtain the loading frequency of the background page:
第一种实施方式:可以统计后台页面在单位时间内被所有的使用者点击的次数。The first embodiment: the number of times the background page is clicked by all users in a unit time can be counted.
第二种实施方式:不同的使用者在加载页面的时候根据自己的使用习惯对页面的加载频率是不一样的。同时,有些网站使用者在登陆的时候需要相关的账号和密码,这样在本实施例中可以获得相同账号加载该页面的加载频率,即同一个使用者针对该页面的加载频率,确定使用者的使用习惯。这样就可以根据使用者的使用习惯确定出后台页面的加载频率,如果加载频率大就可以将后台页面保存起来。这样可以从后台页面中更准确地确定出保存页面,同时进一步的提高使用者的使用感受。The second implementation manner: different users load pages differently according to their own usage habits. At the same time, some website users need to use the relevant account and password when logging in, so in this embodiment, the loading frequency of the same account loading the page can be obtained, that is, the loading frequency of the same user for the page is determined by the user. usage habit. In this way, the loading frequency of the background page can be determined according to the user's usage habits, and if the loading frequency is large, the background page can be saved. This can more accurately determine the save page from the background page, and further improve the user's experience.
本发明实施例中,页面属性还包括后台页面的页面类型、后台页面的加载间隔等,可根据实际需要进行合理设置,在此,本发明不做限制。In the embodiment of the present invention, the page attribute further includes a page type of the background page, a loading interval of the background page, and the like, and may be appropriately set according to actual needs, and the present invention is not limited thereto.
S102:从所述后台页面中确定页面属性符合预设条件的页面为保存页面;S102: Determine, from the background page, a page whose page attribute meets a preset condition is a save page;
S103:保存所述保存页面。S103: Save the save page.
本发明实施例中,在获取后台页面的属性信息之后,电子设备便可以根据属性信息从后台页面出确定出保存页面,并将保存页面进行保存。In the embodiment of the present invention, after acquiring the attribute information of the background page, the electronic device may determine the saved page from the background page according to the attribute information, and save the saved page.
本发明实施例中,根据获取到的后台页面的属性信息,有以下几种方式确定出保存页面:In the embodiment of the present invention, according to the attribute information of the obtained background page, the saved page is determined in the following manners:
第一种:所述使用情况信息包括所述加载频率时,所述从所述后台页面中确定页面属性符合预设条件的页面为保存页面包括:The first type: when the usage information includes the loading frequency, the saving the page from the background page that determines that the page attribute meets the preset condition is:
从所述后台页面中确定所述加载频率大于预设频率的页面为所述保存页面。Determining, from the background page, that the page whose loading frequency is greater than a preset frequency is the saved page.
本发明实施例中,可以根据页面的加载频率从后台页面中确定出保存页面。电子设备可以对后台页面的加载频率进行统计,如果后台页面的加载频率大于预设频率,则表明使用者经常加载该后台页面,则可以将后台页面保存,当使用者再次加载后台页面的时候就可以直接调用已保存的后台页面, 减少后台页面的加载时间。后台页面的加载频率小于预设频率,则表明用户不经常加载该后台页面,则可以不需要将后台页面保存,当用户再次加载后台页面的时候再从网络侧重新加载即可,这样可以减小电子设备使用浏览器时电子设备的内存占用,提高电子设备的性能。In the embodiment of the present invention, the save page may be determined from the background page according to the loading frequency of the page. The electronic device can count the loading frequency of the background page. If the loading frequency of the background page is greater than the preset frequency, it indicates that the user frequently loads the background page, and the background page can be saved, when the user loads the background page again. You can directly call the saved background page. Reduce the load time of the background page. If the loading frequency of the background page is less than the preset frequency, it indicates that the user does not load the background page frequently, so the background page does not need to be saved. When the user loads the background page again, the network side can be reloaded, which can be reduced. The electronic device's memory usage when the electronic device uses the browser improves the performance of the electronic device.
具体的,以预设加载频率为每分钟加载1次为例。当检测到浏览器的后台页面包括页面A和页面B时,获取页面A和页面B的加载频率。如果A页面的加载频率为每分钟0.5次,B页面的加载频率为每分钟2次,则可以确定B页面的加载频率大于预设的加载频率,这时就可以将B页面作为保存页面进行保存。Specifically, the preset loading frequency is loaded once per minute as an example. When it is detected that the background page of the browser includes page A and page B, the loading frequency of page A and page B is obtained. If the loading frequency of the A page is 0.5 times per minute and the loading frequency of the B page is 2 times per minute, it can be determined that the loading frequency of the B page is greater than the preset loading frequency, and then the B page can be saved as a saved page. .
第二种:所述页面属性包括所述后台页面中包含链接的个数时,所述从所述后台页面中确定页面属性符合预设条件的页面为保存页面包括:The second type: the page attribute includes the number of the links included in the background page, and the page that determines that the page attribute meets the preset condition from the background page is a saved page, including:
从所述后台页面中确定所述后台页面中包含链接的个数大于预设个数的页面为所述保存页面。Determining, from the background page, that the number of links in the background page that are greater than a preset number is the saved page.
后台页面可以包含有链接,这样使用者在点击后台页面所包含的链接的时候,可以通过该链接加载到与该链接相对应的页面,比如,使用者通过检索引擎检索“A”之后,浏览器会显示有包含N条(N大于等于零)“A”的检索结果的链接,使用者通过点击页面上的第一链接就会加载到与第一链接对应的页面,在浏览完第一链接对应的页面之后会重新返回包含N条“A”的检索结果的链接的后台页面,继续加载下一个检索结果,如果后台页面包含的链接的个数越多,则使用者加载该后台页面的频率就越大,所以,本发明实施例中,还可以根据后台页面包含的链接的个数判断是否将后台页面确定为保存页面。后台页面包含的链接的个数大于预设个数,则使用者再次加载后台页面的频率就大,则将后台页面确定为保存页面保存。The background page can include a link, so that when the user clicks on the link included in the background page, the user can load the page corresponding to the link through the link, for example, after the user retrieves the "A" through the search engine, the browser A link containing the search result of N (N is greater than or equal to zero) "A" is displayed, and the user loads the page corresponding to the first link by clicking the first link on the page, and after browsing the first link After the page, the background page of the link containing the search results of N "A" will be returned again, and the next search result will be loaded. If the number of links included in the background page is more, the frequency with which the user loads the background page is more. Therefore, in the embodiment of the present invention, whether the background page is determined to be a saved page may be determined according to the number of links included in the background page. If the number of links included in the background page is greater than the preset number, the frequency at which the user loads the background page again is large, and the background page is determined to be saved as a saved page.
具体的,以预设个数为10个为例。如果检测到浏览器的后台页面为页面A和页面B时,则电子设备会进一步检测页面A和页面B包含的链接的个数,如果页面A包含的链接个数为30个,页面B包含的链接个数为5个,则可以确定页面A包含的链接的个数大于预设个数10个,使用者加载页面A的频率较大,将页面A确定为保存页面进行保存。Specifically, the preset number is 10 as an example. If the background page of the browser is detected as page A and page B, the electronic device further detects the number of links included in page A and page B. If page A contains 30 links, page B contains If the number of links is five, it can be determined that the number of links included in the page A is greater than the preset number of 10. The frequency at which the user loads the page A is relatively large, and the page A is determined to be a saved page for saving.
进一步的,电子设备还可以统计使用者对后台页面的加载频率,并根据加载频率确定出使用者感兴趣的页面,如果后台页面包含的链接中使用者感兴趣的页面的链接个数大于预设个数,则将该后台页面确定为保存页面进行 保存。通过本发明实施例的方法可以更准确地从后台页面中确定出保存页面。Further, the electronic device may also count the loading frequency of the user on the background page, and determine the page that the user is interested in according to the loading frequency. If the number of links of the user interested in the link included in the background page is greater than the preset. Number, the background page is determined to be saved page save. The save page can be determined more accurately from the background page by the method of the embodiment of the present invention.
第三种:所述使用情况信息包括所述加载时间时,所述从所述后台页面中确定页面属性符合预设条件的页面为保存页面包括:The third type: when the usage information includes the loading time, the saving the page from the background page that determines that the page attribute meets the preset condition is:
从所述后台页面中确定所述加载时间大于预设时间的页面为所述保存页面。Determining, from the background page, that the page whose loading time is greater than a preset time is the saved page.
本发明实施例中,可以根据后台页面的加载时间判断是否将后台页面保存。加载时间为使用者开始加载后台页面到后台页面加载完成所需的时间,本发明中可以根据使用者开始加载后台页面的起始时间与后台页面加载完成的结束时间的时间差确定出后台页面的加载时间。如果后台页面的加载时间较长,则表明后台页面的页面复杂成度较大,后台页面中所包含的链接个数较多,则使用者可能会多次加载后台页面。所以,可以从后台页面中确定出加载时间大于预设时间的页面为保存页面进行保存。In the embodiment of the present invention, whether the background page is saved may be determined according to the loading time of the background page. The loading time is the time required for the user to start loading the background page to the background page to complete the loading. In the present invention, the loading of the background page can be determined according to the time difference between the start time of the user starting to load the background page and the end time of the background page loading completion. time. If the loading time of the background page is long, it indicates that the page of the background page has a large degree of complexity, and the number of links included in the background page is large, and the user may load the background page multiple times. Therefore, it can be determined from the background page that the page whose loading time is greater than the preset time is saved for the saved page.
具体来说,以预设时间为2s为例。当检测到浏览器的后台页面包括页面A和页面B时,获取页面A和页面B的加载时间,如果页面A和页面B的加载时间分别为3s和1s。则确定出页面A的加载时间大于预设的加载时间2s,将页面A确定为保存页面,对页面A进行保存。Specifically, the preset time is 2s as an example. When it is detected that the background page of the browser includes page A and page B, the loading time of page A and page B is obtained, if the loading time of page A and page B are 3s and 1s, respectively. Then, it is determined that the loading time of the page A is greater than the preset loading time by 2 s, and the page A is determined to be the saved page, and the page A is saved.
第四种:所述页面属性包括加载间隔时,所述从所述后台页面中确定页面属性符合预设条件的页面为所述保存页面包括:The fourth type: the page attribute includes a loading interval, and the page that determines that the page attribute meets the preset condition from the background page is the saved page includes:
从所述后台页面中确定加载间隔小于预设间隔的页面为所述保存页面。Determining, from the background page, a page whose loading interval is less than a preset interval is the saved page.
本发明实施例中,还可以根据后台页面的加载间隔,加载间隔为使用者加载后台页面与前一次加载相同的后台页面的时间差。电子设备会对后台页面的加载间隔进行统计确定出每个后台页面的加载间隔,如果后台页面的加载间隔小于预设间隔,则表明使用者会频繁地加载该后台页面,这时,可以将该后台页面作为保存页面保存,这样在使用者再次加载该后台页面的时候就可以直接加载已经保存的后台页面。In the embodiment of the present invention, according to the loading interval of the background page, the loading interval is a time difference between the user loading the background page and the same background page that was loaded the previous time. The electronic device calculates the loading interval of the background page to determine the loading interval of each background page. If the loading interval of the background page is less than the preset interval, the user frequently loads the background page. In this case, the device may The background page is saved as a save page, so that when the user loads the background page again, the saved background page can be directly loaded.
具体的,以预设间隔为1min为例。当检测到浏览器的后台页面包括页面A和页面B时,则电子设会进一步获得页面A和页面B的加载间隔,如果页面A的加载间隔为0.5min,页面B的加载间隔为2min,则可以确定页面A包含的加载间隔小于预设间隔1min,使用者加载页面A的频率较大,将页面A确定为保存页面进行保存。Specifically, the preset interval is 1 min as an example. When it is detected that the background page of the browser includes the page A and the page B, the electronic device further obtains the loading interval of the page A and the page B. If the loading interval of the page A is 0.5 min and the loading interval of the page B is 2 min, then It can be determined that the loading interval included in the page A is less than the preset interval of 1 min, the frequency at which the user loads the page A is large, and the page A is determined to be the saved page for saving.
第五种:所述页面属性包括页面类型时,所述从所述后台页面中确定页 面属性符合预设条件的页面为所述保存页面包括:The fifth type: when the page attribute includes a page type, the determining the page from the background page The page whose surface attribute meets the preset condition is the saved page, including:
从所述后台页面中确定页面类型为预设类型的页面为所述保存页面。Determining, from the background page, a page whose page type is a preset type is the saved page.
根据页面的用途可以将后台页面分类为搜索引擎类页面、网址导航类页面、新闻阅读类页面和游戏类页面等,对于搜索引擎类页面和网址导航类页面,使用者经常会通过此类页面所包含的链接加载到相应的页面,而对于新闻阅读类或者游戏类等页面,使用者在加载之后则不会再次加载,所以,本发明实施例中,可以根据后台页面的页面类型确定出保存页面。将搜索引擎类、网址导航类等设置为预设类型,如果后台页面的页面类型为预设类型则将该后台页面确定为保存页面进行保存。According to the purpose of the page, the background page can be classified into a search engine class page, a URL navigation page, a news reading page, and a game page. For the search engine page and the URL navigation page, the user often uses such a page. The included link is loaded to the corresponding page, and for the page such as the news reading class or the game class, the user does not load again after loading, so in the embodiment of the present invention, the save page can be determined according to the page type of the background page. . The search engine class, the URL navigation class, and the like are set to a preset type. If the page type of the background page is a preset type, the background page is determined to be a saved page for saving.
具体的,以预设类型包括搜索引擎页面类型、网址导航页面类型为例。当电子设备检测到浏览器的后台页面包括“‘A’的搜索页面”、“B游戏主页”、“新闻阅读页面”和“C网址导航页面”,继而确定出后台页面的页面类型分别为搜索引擎类、游戏类、新闻阅读类、网址导航类,则确定出“‘A’的搜索页面”和“C网址导航页面”的页面类型为预设类型,将“‘A’的搜索页面”和“C网址导航页面”确定为保存页面进行保存。Specifically, the preset type includes a search engine page type and a URL navigation page type as an example. When the electronic device detects that the background page of the browser includes "'A' search page", "B game home page", "news reading page", and "C website navigation page", it is determined that the page type of the background page is search The engine class, the game class, the news reading class, and the URL navigation class determine that the page type of "'A' search page" and "C site navigation page" is a preset type, and "'A' search page" and The "C URL Navigation Page" is determined to save the saved page.
本发明实施例中,可以根据使用者的需求设置预设类型,在此,本发明不做限制。In the embodiment of the present invention, the preset type may be set according to the needs of the user, and the present invention is not limited thereto.
第六种:所述页面属性包括页面类型和加载时间时,所述从所述后台页面中确定页面属性符合预设条件的页面为保存页面包括:The sixth type: when the page attribute includes a page type and a loading time, the determining, by the background page, that the page attribute meets the preset condition, the saving page comprises:
从所述后台页面中确定所述页面类型符合预设类型的页面;Determining, from the background page, that the page type matches a preset type of page;
从所述页面类型符合预设类型的页面中确定加载间隔小于所述预设间隔的页面为所述保存页面。Determining, from the page whose page type conforms to the preset type, a page whose loading interval is smaller than the preset interval is the saved page.
使用者在加载到预设类型的页面,并通过页面上的第一链接加载到与第一链接对应的页面之后,可能会继续在第一链接的基础上继续加载其他的页面,并不会返回后台页面(即该后台页面的加载间隔大于预设间隔),这样就会增加浏览器的缓存数据。所以,本发明实施例中,可以根据后台页面的页面类型和加载间隔综合考虑确定出保存页面。在确定出页面类型为预设类型的后台页面之后,获得该后台页面的加载间隔,如果加载间隔大于预设间隔则不需要将该后台页面保存,如果后台页面的加载间隔小于预设间隔,则将该后台页面确定为保存页面进行保存。After the user loads the page of the preset type and loads the page corresponding to the first link through the first link on the page, the user may continue to load other pages on the basis of the first link, and will not return. The background page (that is, the loading interval of the background page is greater than the preset interval), which will increase the cache data of the browser. Therefore, in the embodiment of the present invention, the saved page may be determined according to the page type and the loading interval of the background page. After the background page whose page type is the preset type is determined, the loading interval of the background page is obtained. If the loading interval is greater than the preset interval, the background page does not need to be saved. If the loading interval of the background page is less than the preset interval, The background page is determined to be saved as a save page.
本发明实施例中,可以根据加载时间、加载频率、页面类型、加载间隔 和后台页面包含链接的个数等中的至少两种进行组合判断,可根据实际需要进行合理设置,在此,本发明不做限制。In the embodiment of the present invention, according to loading time, loading frequency, page type, and loading interval And the background page includes at least two of the number of links, and the like, and the combination determination may be performed according to actual needs, and the present invention is not limited thereto.
本发明实施例中,在确定出保存页面之后,就可以将保存页面保存,这样,当使用者再次加载保存页面的时候,就可以读取已经保存的后台页面,能够快速的加载后台页面。In the embodiment of the present invention, after the saved page is determined, the saved page can be saved, so that when the user loads the saved page again, the saved background page can be read, and the background page can be quickly loaded.
可选的,保存所述保存页面包括:Optionally, saving the saved page includes:
将所述保存页面保存到外接存储装置。Save the saved page to an external storage device.
为了要扩充电子设备的功能,适应使用者不同的使用需求,各式各样的电子设备外接存储装置应运而生。外接存储装置具有备份功能,这样,使用者就可以将电子设备备份的资料存储至外接存储装置,减小电子设备的内存占用,而且可以根据使用者的需求连接不同存储空间的外接存储装置。In order to expand the functions of electronic devices and adapt to different user needs, a variety of external storage devices for electronic devices have emerged. The external storage device has a backup function, so that the user can store the data backed up by the electronic device to the external storage device, reduce the memory occupation of the electronic device, and connect the external storage devices of different storage spaces according to the needs of the user.
本发明实施例中,在从多个后台页面中确定出保存页面之后,就需要将保存页面进行保存,这时,电子设备会检测自身是否连接有外接的存储装置,如果有,则将保存页面存储在外接存储装置中,这样就可以避免将保存页面保存在电子设备的内存中,减小了电子设备在使用浏览器时电子设备内存的占用,提高电子设备的性能。In the embodiment of the present invention, after the saved page is determined from the plurality of background pages, the saved page needs to be saved. At this time, the electronic device detects whether the external storage device is connected, and if so, the saved page is saved. It is stored in the external storage device, so that the saved page can be saved in the memory of the electronic device, which reduces the occupation of the electronic device when the electronic device uses the browser, and improves the performance of the electronic device.
本发明实施例中,外接存储装置可以是SD卡(Secure Digital Memory Card,安全数据存储卡)、U盘(Universal Serial Bus Flash Drive,通用串行总线闪存驱动器)或移动硬盘,可根据实际需要进行合理设置,在此,本发明不做限制。In the embodiment of the present invention, the external storage device may be an SD card (Secure Digital Memory Card), a USB flash drive (Universal Serial Bus Flash Drive), or a mobile hard disk, which may be implemented according to actual needs. Reasonable setting, the invention is not limited thereto.
基于上述技术方案,请参考图2,本发明还提供一种页面保存的电子设备,包括:Based on the foregoing technical solution, referring to FIG. 2, the present invention further provides an electronic device for saving a page, including:
获得单元201,用于获得浏览器的后台页面的页面属性,其中,所述后台页面为打开当前显示页面前打开的至少一个页面,所述页面属性用于表征所述后台页面的使用情况信息或所述后台页面中包含链接的个数;The obtaining unit 201 is configured to obtain a page attribute of a background page of the browser, where the background page is at least one page that is opened before the current display page is opened, and the page attribute is used to represent usage information of the background page or The background page includes the number of links;
确定单元202,用于从所述后台页面中确定页面属性符合预设条件的页面为保存页面;a determining unit 202, configured to determine, from the background page, a page whose page attribute meets a preset condition is a saved page;
保存单元203,用于保存所述保存页面。The saving unit 203 is configured to save the saved page.
可选的,所述使用情况信息包括所述后台页面的加载时间或所述后台页面的加载频率。Optionally, the usage information includes a loading time of the background page or a loading frequency of the background page.
可选的,所述使用情况信息包括所述加载时间时,所述确定单元202用 于:Optionally, when the usage information includes the loading time, the determining unit 202 uses to:
从所述后台页面中确定所述加载时间小于预设时间的页面为所述保存页面。Determining, from the background page, that the page whose loading time is less than a preset time is the saved page.
可选的,所述使用情况信息包括所述加载频率时,所述确定单元202用于:Optionally, when the usage information includes the loading frequency, the determining unit 202 is configured to:
从所述后台页面中确定所述加载频率大于预设频率的页面为所述保存页面。Determining, from the background page, that the page whose loading frequency is greater than a preset frequency is the saved page.
可选的,所述页面属性包括所述后台页面中包含链接的个数时,所述确定单元202用于:Optionally, when the page attribute includes the number of links included in the background page, the determining unit 202 is configured to:
从所述后台页面中确定所述后台页面中包含链接的个数大于预设个数的页面为所述保存页面。Determining, from the background page, that the number of links in the background page that are greater than a preset number is the saved page.
可选的,所述保存单元203用于:Optionally, the saving unit 203 is configured to:
将所述保存页面保存到外接存储装置。Save the saved page to an external storage device.
本发明实施例提供的页面保存的电子设备,可以获得浏览器打开的多个后台页面的页面属性,从后台页面中确定页面属性符合预设条件的页面作为保存页面保存起来,这样,减少了保存页面的数量,从而减少了浏览器的缓存数据,降低了电子设备的内存占用。The electronic device saved by the page provided by the embodiment of the present invention can obtain the page attribute of the plurality of background pages opened by the browser, and save the page whose page attribute meets the preset condition from the background page as the saved page, thereby reducing the saving. The number of pages, which reduces the browser's cached data and reduces the memory footprint of the electronic device.
图3为本发明实施例提供的电子设备300的示意图,电子设备300包括:总线301以及分别连接总线301的存储器302以及处理器303。其中,存储器302用于存储指令;处理器303用于执行所述指令,以在执行所述指令时执行如下步骤:获得浏览器的后台页面的页面属性,其中,所述后台页面为打开当前显示页面前打开的至少一个页面,所述页面属性用于表征所述后台页面的使用情况信息或所述后台页面中包含链接的个数;从所述后台页面中确定页面属性符合预设条件的页面为保存页面;保存所述保存页面。FIG. 3 is a schematic diagram of an electronic device 300 according to an embodiment of the present invention. The electronic device 300 includes a bus 301, a memory 302 respectively connected to the bus 301, and a processor 303. The memory 302 is configured to store an instruction, and the processor 303 is configured to execute the instruction to perform the following steps: obtaining a page attribute of a background page of the browser, where the background page is the current display At least one page opened in front of the page, the page attribute is used to represent usage information of the background page or the number of links included in the background page; and determining, from the background page, a page whose page attribute meets a preset condition To save the page; save the saved page.
本发明实施例提供一种非暂态存储介质,所述非暂态存储介质用于存储计算机程序,所述计算机程序包括用于执行前述页面保存方法的指令。Embodiments of the present invention provide a non-transitory storage medium for storing a computer program, the computer program including instructions for executing the foregoing page saving method.
本发明实施例提供一种计算机程序,所述计算机程序包括用于执行前述页面保存方法的指令。Embodiments of the present invention provide a computer program, where the computer program includes instructions for executing the foregoing page saving method.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络 单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located One place, or it can be distributed to multiple networks On the unit. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the various embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware. Based on such understanding, the above-described technical solutions may be embodied in the form of software products in essence or in the form of software products, which may be stored in a computer readable storage medium such as ROM/RAM, magnetic Discs, optical discs, etc., include instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments or portions of the embodiments.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。 It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and are not limited thereto; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that The technical solutions described in the foregoing embodiments are modified, or the equivalents of the technical features are replaced. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (15)

  1. 一种页面保存的方法,其特征在于,包括:A method for saving a page, comprising:
    获得浏览器的后台页面的页面属性,其中,所述后台页面为打开当前显示页面前打开的至少一个页面,所述页面属性用于表征所述后台页面的使用情况信息或所述后台页面中包含链接的个数;Obtaining a page attribute of a background page of the browser, wherein the background page is at least one page opened before the current display page is opened, and the page attribute is used to represent usage information of the background page or included in the background page The number of links;
    从所述后台页面中确定页面属性符合预设条件的页面为保存页面;Determining, from the background page, a page whose page attribute meets a preset condition is a save page;
    保存所述保存页面。Save the save page.
  2. 根据权利要求1所述的方法,其特征在于,所述使用情况信息包括所述后台页面的加载时间或所述后台页面的加载频率。The method according to claim 1, wherein the usage information comprises a loading time of the background page or a loading frequency of the background page.
  3. 根据权利要求2所述的方法,其特征在于,所述使用情况信息包括所述加载频率时,所述从所述后台页面中确定页面属性符合预设条件的页面为保存页面包括:The method according to claim 2, wherein when the usage information comprises the loading frequency, the determining, by the background page, that the page attribute meets the preset condition is a save page comprises:
    从所述后台页面中确定所述加载频率大于预设频率的页面为所述保存页面。Determining, from the background page, that the page whose loading frequency is greater than a preset frequency is the saved page.
  4. 根据权利要求2所述的方法,其特征在于,所述使用情况信息包括所述加载时间时,所述从所述后台页面中确定页面属性符合预设条件的页面为保存页面包括:The method according to claim 2, wherein when the usage information comprises the loading time, the determining, by the background page, that the page attribute meets the preset condition is a save page comprises:
    从所述后台页面中确定所述加载时间大于预设时间的页面为所述保存页面。Determining, from the background page, that the page whose loading time is greater than a preset time is the saved page.
  5. 根据权利要求1所述的方法,其特征在于,所述页面属性包括所述后台页面中包含链接的个数时,所述从所述后台页面中确定页面属性符合预设条件的页面为保存页面包括:The method according to claim 1, wherein when the page attribute includes the number of links included in the background page, the page that determines that the page attribute meets the preset condition from the background page is a saved page. include:
    从所述后台页面中确定所述后台页面中包含链接的个数大于预设个数的页面为所述保存页面。Determining, from the background page, that the number of links in the background page that are greater than a preset number is the saved page.
  6. 根据权利要求1-5任一所述的方法,其特征在于,保存所述保存页面包括:The method of any of claims 1-5, wherein saving the saved page comprises:
    将所述保存页面保存到外接存储装置。Save the saved page to an external storage device.
  7. 一种页面保存的电子设备,其特征在于,包括:An electronic device for saving a page, comprising:
    获得单元,用于获得浏览器的后台页面的页面属性,其中,所述后台页面为打开当前显示页面前打开的至少一个页面,所述页面属性用于表征所述后台页面的使用情况信息或所述后台页面中包含链接的个数; a obtaining unit, configured to obtain a page attribute of a background page of the browser, wherein the background page is at least one page opened before the current display page is opened, and the page attribute is used to represent the usage information or the location of the background page. The number of links included in the background page;
    确定单元,用于从所述后台页面中确定页面属性符合预设条件的页面为保存页面;a determining unit, configured to determine, from the background page, a page whose page attribute meets a preset condition is a saved page;
    保存单元,用于保存所述保存页面。A saving unit for saving the saved page.
  8. 根据权利要求7所述的电子设备,其特征在于,所述使用情况信息包括所述后台页面的加载时间或所述后台页面的加载频率。The electronic device according to claim 7, wherein the usage information comprises a loading time of the background page or a loading frequency of the background page.
  9. 根据权利要求8所述的电子设备,其特征在于,所述使用情况信息包括所述加载频率时,所述确定单元用于:The electronic device according to claim 8, wherein when the usage information comprises the loading frequency, the determining unit is configured to:
    从所述后台页面中确定所述加载频率大于预设频率的页面为所述保存页面。Determining, from the background page, that the page whose loading frequency is greater than a preset frequency is the saved page.
  10. 根据权利要求8所述的电子设备,其特征在于,所述使用情况信息包括所述加载时间时,所述确定单元用于:The electronic device according to claim 8, wherein when the usage information comprises the loading time, the determining unit is configured to:
    从所述后台页面中确定所述加载时间大于预设时间的页面为所述保存页面。Determining, from the background page, that the page whose loading time is greater than a preset time is the saved page.
  11. 根据权利要求7所述的电子设备,其特征在于,所述页面属性包括所述后台页面中包含链接的个数时,所述确定单元用于:The electronic device according to claim 7, wherein when the page attribute comprises the number of links in the background page, the determining unit is configured to:
    从所述后台页面中确定所述后台页面中包含链接的个数大于预设个数的页面为所述保存页面。Determining, from the background page, that the number of links in the background page that are greater than a preset number is the saved page.
  12. 根据权利要求7-11任一所述的电子设备,其特征在于,所述保存单元用于:The electronic device according to any one of claims 7-11, wherein the saving unit is configured to:
    将所述保存页面保存到外接存储装置。Save the saved page to an external storage device.
  13. 一种电子设备,其特征在于,包括:An electronic device, comprising:
    存储器,用于存储指令;a memory for storing instructions;
    处理器,与所述存储器相连,用于执行所述指令,以在执行所述指令时执行如下步骤:a processor coupled to the memory for executing the instructions to perform the following steps when the instructions are executed:
    获得浏览器的后台页面的页面属性,其中,所述后台页面为打开当前显示页面前打开的至少一个页面,所述页面属性用于表征所述后台页面的使用情况信息或所述后台页面中包含链接的个数;Obtaining a page attribute of a background page of the browser, wherein the background page is at least one page opened before the current display page is opened, and the page attribute is used to represent usage information of the background page or included in the background page The number of links;
    从所述后台页面中确定页面属性符合预设条件的页面为保存页面;Determining, from the background page, a page whose page attribute meets a preset condition is a save page;
    保存所述保存页面。Save the save page.
  14. 一种非暂态存储介质,其特征在于,所述非暂态存储介质用于存储计算机程序,所述计算机程序包括用于执行权利要求1至6任一项所述的方 法的指令。A non-transitory storage medium for storing a computer program, the computer program comprising means for performing the method of any one of claims 1 to 6. The instruction of the law.
  15. 一种计算机程序,其特征在于,所述计算机程序包括用于执行权利要求1至6任一项所述的方法的指令。 A computer program, characterized in that the computer program comprises instructions for performing the method of any one of claims 1 to 6.
PCT/CN2016/099908 2016-06-23 2016-09-23 Page saving method and electronic device WO2017219524A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610466413.8 2016-06-23
CN201610466413.8A CN105930537A (en) 2016-06-23 2016-06-23 Page storing method and electronic equipment

Publications (1)

Publication Number Publication Date
WO2017219524A1 true WO2017219524A1 (en) 2017-12-28

Family

ID=56832074

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/099908 WO2017219524A1 (en) 2016-06-23 2016-09-23 Page saving method and electronic device

Country Status (2)

Country Link
CN (1) CN105930537A (en)
WO (1) WO2017219524A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109800374A (en) * 2018-12-13 2019-05-24 平安普惠企业管理有限公司 Temporary page data processing method, device, computer equipment and storage medium

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105930537A (en) * 2016-06-23 2016-09-07 乐视控股(北京)有限公司 Page storing method and electronic equipment
CN106383878B (en) * 2016-09-12 2019-05-07 杭州迪普科技股份有限公司 A kind of generation method and device of page menus cache file
CN108733428B (en) * 2018-05-10 2021-06-25 Oppo广东移动通信有限公司 Screen display control method and device
CN109684585A (en) * 2018-11-20 2019-04-26 平安科技(深圳)有限公司 Data access method, device, computer equipment and the storage medium in cross-page face
CN109522499A (en) * 2018-11-20 2019-03-26 平安科技(深圳)有限公司 Method, apparatus, computer equipment and the storage medium of local loading page data
CN112100553B (en) * 2020-08-11 2023-11-17 深圳市拓邦软件技术有限公司 Webpage configuration method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102332020A (en) * 2011-09-22 2012-01-25 奇智软件(北京)有限公司 Generation method and device of website navigation page
CN102855318A (en) * 2012-08-31 2013-01-02 北京搜狗信息服务有限公司 Method and system for preloading of webpages
CN102880682A (en) * 2012-09-12 2013-01-16 东莞宇龙通信科技有限公司 Method and device for storing webpage
WO2013097667A1 (en) * 2011-12-30 2013-07-04 北京奇虎科技有限公司 Web page content loading control method and device
CN104008155A (en) * 2014-05-22 2014-08-27 北京金山网络科技有限公司 Resource control method and device, and electronic device
CN105930537A (en) * 2016-06-23 2016-09-07 乐视控股(北京)有限公司 Page storing method and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880616B (en) * 2011-07-15 2016-02-17 腾讯科技(深圳)有限公司 browser page loading method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102332020A (en) * 2011-09-22 2012-01-25 奇智软件(北京)有限公司 Generation method and device of website navigation page
WO2013097667A1 (en) * 2011-12-30 2013-07-04 北京奇虎科技有限公司 Web page content loading control method and device
CN102855318A (en) * 2012-08-31 2013-01-02 北京搜狗信息服务有限公司 Method and system for preloading of webpages
CN102880682A (en) * 2012-09-12 2013-01-16 东莞宇龙通信科技有限公司 Method and device for storing webpage
CN104008155A (en) * 2014-05-22 2014-08-27 北京金山网络科技有限公司 Resource control method and device, and electronic device
CN105930537A (en) * 2016-06-23 2016-09-07 乐视控股(北京)有限公司 Page storing method and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109800374A (en) * 2018-12-13 2019-05-24 平安普惠企业管理有限公司 Temporary page data processing method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN105930537A (en) 2016-09-07

Similar Documents

Publication Publication Date Title
WO2017219524A1 (en) Page saving method and electronic device
US10191856B2 (en) Method of managing web browser cache size using logical relationships and clustering
US9916390B2 (en) Managing web browser cache for offline browsing
US20120323879A1 (en) Ranking search results based upon content creation trends
US20140222947A1 (en) Method and apparatus for browsings webpages, and storage medium
CN107590228B (en) Page content processing method and mobile terminal
US11080322B2 (en) Search methods, servers, and systems
CN106991179B (en) Data deleting method and device and mobile terminal
WO2015185020A1 (en) Information category obtaining method and apparatus
US11209951B2 (en) Method and apparatus for displaying application program, terminal device, and storage medium
TW201501016A (en) Data searching method and electronic apparatus thereof
CN106708568B (en) Method and device for loading client content in page-by-page manner
US9471669B2 (en) Presenting previously selected search results
TW201931099A (en) Mobile terminal click event recognition method and apparatus
US11307897B2 (en) Resource pre-fetch using age threshold
US9787755B2 (en) Method and device for browsing network data, and storage medium
CN108021464B (en) Bottom-pocketing processing method and device for application response data
US20160224553A1 (en) Search methods and terminals
TWI489370B (en) System and method for rendering widget
WO2015068259A1 (en) Information provision method and device, and program
WO2019085117A1 (en) Coordination data display method, application server, and storage medium
CN108632366B (en) File downloading method and device and terminal equipment
WO2016115817A1 (en) Search method, apparatus and device, and nonvolatile computer storage medium
US20140298158A1 (en) Method and apparatus for text input protection
CN105488054A (en) Method and device for browsing image

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

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

Country of ref document: EP

Kind code of ref document: A1