CN108062352B - Webpage page caching processing method, mobile terminal equipment and medium product - Google Patents

Webpage page caching processing method, mobile terminal equipment and medium product Download PDF

Info

Publication number
CN108062352B
CN108062352B CN201711143435.1A CN201711143435A CN108062352B CN 108062352 B CN108062352 B CN 108062352B CN 201711143435 A CN201711143435 A CN 201711143435A CN 108062352 B CN108062352 B CN 108062352B
Authority
CN
China
Prior art keywords
webpage
file
mobile terminal
files
subfile
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711143435.1A
Other languages
Chinese (zh)
Other versions
CN108062352A (en
Inventor
彭枫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711143435.1A priority Critical patent/CN108062352B/en
Publication of CN108062352A publication Critical patent/CN108062352A/en
Application granted granted Critical
Publication of CN108062352B publication Critical patent/CN108062352B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Abstract

The embodiment of the invention discloses a webpage page caching processing method and mobile terminal equipment. Wherein, the method comprises the following steps: the method comprises the steps that the mobile terminal equipment firstly requests a website server to download a current webpage, then the downloaded current webpage is displayed on a screen of the mobile terminal equipment, when webpage cache levels K input in the current webpage are received, M webpage files corresponding to K levels of webpage links under the current webpage are downloaded from the website server, and finally the M webpage files are cached in a local folder of the mobile terminal equipment. By the embodiment of the invention, the mobile terminal equipment can download the webpage to be browsed by the user in advance, and then the user can continue to browse the webpage through the mobile terminal equipment under the condition of network interruption, so that the user experience is improved.

Description

Webpage page caching processing method, mobile terminal equipment and medium product
Technical Field
The invention relates to the technical field of networks, in particular to a webpage page caching processing method, mobile terminal equipment and a medium product.
Background
With the continuous enhancement of the functions of mobile terminal devices, mobile terminal devices such as smart phones have become standard electronic devices in people's daily life. The mobile terminal device seems to be kept away in life scenes such as work, travel, business trip, home and the like.
Sometimes, when a user goes out for traveling or goes out for playing, the user may want to browse a webpage through the mobile terminal device when getting bored on the road, so as to get bored. However, if package traffic is just running out or remaining very little at this time, the user can usually only give up on browsing web pages, which is certainly a quite exciting thing.
Disclosure of Invention
The embodiment of the invention provides a webpage caching processing method and mobile terminal equipment, so that a user can browse a webpage through the mobile terminal equipment under the condition of network interruption.
A first aspect of the embodiments of the present invention provides a method for processing a webpage page cache, including:
the mobile terminal equipment requests a website server to download a current webpage;
the mobile terminal equipment displays the current webpage downloaded from the website server;
if the mobile terminal equipment receives the webpage caching number K input by the user under the current webpage, the mobile terminal equipment downloads M webpage files corresponding to K webpage links under the current webpage from the site server;
the mobile terminal device caches the M webpage files, wherein each webpage file in the M webpage files comprises a webpage layout subfile and a webpage resource subfile, the K and the M are positive integers, and the M is larger than or equal to the K.
A second aspect of an embodiment of the present invention provides a mobile terminal device, including:
a downloading unit for requesting a website server to download a current webpage;
a display processing unit for displaying the current webpage downloaded from the site server;
the downloading unit is further configured to, if the number of webpage caching levels K input by the user in the current webpage is received, download, from the site server, M webpage files corresponding to K-level webpage links in the current webpage;
the cache unit is used for caching the M webpage files, wherein each webpage file in the M webpage files comprises a webpage layout subfile and a webpage resource subfile, the K and the M are positive integers, and the M is larger than or equal to the K.
The embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, when the mobile terminal device displays the current webpage downloaded from the site server, if the webpage caching level K input by a user aiming at the current webpage is received, the mobile terminal device downloads M webpage files corresponding to K level webpage links under the current webpage from the site server and caches the M webpage files in the local folder. By implementing the embodiment of the invention, the mobile terminal equipment can download the webpage to be browsed by the user in advance, so that the user can continue to browse the webpage through the mobile terminal equipment under the condition of network interruption, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for processing a webpage page cache according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another method for processing web page caching according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of another method for processing web page caching according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a mobile terminal device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another mobile terminal device according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a webpage caching processing method and mobile terminal equipment, so that a user can browse a webpage through the mobile terminal equipment under the condition of network interruption.
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The following are detailed below.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of the invention and the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Referring to fig. 1, fig. 1 is a schematic flowchart of a method for processing a webpage page cache according to an embodiment of the present invention. As shown in fig. 1, a method for processing a webpage page cache according to an embodiment of the present invention may include:
s101, the mobile terminal equipment requests a website server to download the current webpage.
In this embodiment of the present invention, the mobile terminal device may include a mobile phone, a tablet computer, a notebook computer, a palm computer, a Mobile Internet Device (MID), a wearable device (e.g., a smart watch (such as iwatch), a smart band, a pedometer, etc.), or another terminal device that can be installed with a browser application client, which is not limited in the embodiment of the present invention. The site server may include, but is not limited to, a WEB server.
In the embodiment of the invention, the mobile terminal equipment can send a request for downloading the current webpage to the site server through the browser application client, and when the site server agrees with the request for downloading the current webpage, the mobile terminal equipment can download the current webpage to the site server, namely, the mobile terminal equipment sends the website of the webpage needing to be accessed to the site server and downloads the webpage.
S102, the mobile terminal device displays the current webpage downloaded from the site server.
In the embodiment of the present invention, after the mobile terminal device finishes downloading the current webpage to the website server, the mobile terminal device may display the current webpage on the screen of the mobile terminal device, that is, the user may browse the webpage content of the current webpage on the screen of the mobile terminal device.
S103, if the mobile terminal device receives the webpage caching level K input by the user under the current webpage, the mobile terminal device downloads M webpage files corresponding to K webpage links under the current webpage from the site server.
In the embodiment of the invention, each webpage corresponds to a plurality of webpage links, and when the mobile terminal equipment receives that the number of webpage caching levels input by a user under the current webpage is K, the mobile terminal equipment can download M webpage files corresponding to the K-level webpage links under the current webpage from the site server. Wherein K and M are both positive integers, and M is greater than or equal to K.
For example, when the number of caching levels of the web page input by the user under the current web page is 1, the mobile terminal device downloads the web page files corresponding to all web page links in the current web page from the site server.
For another example, when the number of web page caching levels input by the user under the current web page is 2, the mobile terminal device may download, from the site server, not only the web page files corresponding to all web page links in the current web page, but also the web page files corresponding to all web page links included in the web page corresponding to all web page links in the current web page.
S104, caching the M webpage files by the mobile terminal equipment.
In the embodiment of the invention, when the mobile terminal device downloads the M webpage files corresponding to the K-level webpage link in the current webpage, the mobile terminal device stores the M webpage files in the local folder of the mobile terminal device, so that a user can browse the current webpage and the webpage content corresponding to the K-level webpage link in the current webpage without a network.
In the embodiment of the invention, when the mobile terminal device displays the current webpage downloaded from the site server, if the webpage caching level K input by a user aiming at the current webpage is received, the mobile terminal device downloads M webpage files corresponding to K level webpage links under the current webpage from the site server and caches the M webpage files in the local folder. By implementing the embodiment of the invention, the mobile terminal equipment can download the webpage to be browsed by the user in advance, so that the user can continue to browse the webpage through the mobile terminal equipment under the condition of network interruption, and the user experience is improved.
Referring to fig. 2, fig. 2 is a schematic flowchart of another webpage page caching processing method according to another embodiment of the present invention. As shown in fig. 2, another webpage page caching method according to another embodiment of the present invention may include:
s201, the mobile terminal equipment requests a website server to download the current webpage.
In this embodiment of the present invention, the mobile terminal device may include a mobile phone, a tablet computer, a notebook computer, a palm computer, a Mobile Internet Device (MID), a wearable device (e.g., a smart watch (such as iwatch), a smart band, a pedometer, etc.), or another terminal device that can be installed with a browser application client, which is not limited in the embodiment of the present invention. The site server may include, but is not limited to, a WEB server.
In the embodiment of the invention, the mobile terminal equipment can send a request for downloading the current webpage to the site server through the browser application client, and when the site server agrees with the request for downloading the current webpage, the mobile terminal equipment can download the current webpage to the site server, namely, the mobile terminal equipment sends the website of the webpage needing to be accessed to the site server and downloads the webpage.
S202, the mobile terminal device displays the current webpage downloaded from the site server.
In the embodiment of the invention, when the mobile terminal device finishes downloading the current webpage to the website server, the mobile terminal device displays the current webpage on the screen of the mobile terminal device, namely, a user can browse the webpage content of the current webpage on the screen of the mobile terminal device.
S203, if the mobile terminal device receives the webpage caching level K input by the user under the current webpage, the mobile terminal device downloads M webpage files corresponding to K webpage links under the current webpage from the site server.
In the embodiment of the invention, each webpage corresponds to a plurality of webpage links, when a user inputs the number of stages needing to be cached in a webpage caching number frame popped up by the mobile terminal equipment as K, the mobile terminal equipment receives the webpage caching number of stages input by the user under the current webpage as K, and then downloads M webpage files corresponding to the K-level webpage links under the current webpage from a site server. Wherein K and M are both positive integers, and M is greater than or equal to K.
For example, when the user inputs a web page caching number of 1 in a web page caching number input box under the current web page, the mobile terminal device downloads web page files corresponding to all web page links in the current web page from the site server.
For another example, when the number of web page caching levels input by the user in the web page caching level input box under the current web page is 2, the mobile terminal device may download, from the site server, not only the web page files corresponding to all web page links in the current web page, but also the web page files corresponding to all web page links included in the web pages corresponding to all web page links in the current web page.
S204, the mobile terminal device caches the webpage resource subfiles included by each of the M webpage files in the resource directory of the mobile terminal device, and caches the webpage layout subfiles included by each of the M webpage files in the database directory of the mobile terminal device.
In the embodiment of the present invention, the mobile terminal device may store the web resource subfile and the web layout subfile included in each of the M web files in the resource directory and the database directory, respectively. The database directory of the mobile terminal device also stores M index files for indexing the M web page files, wherein the M web page files and the M index files have a one-to-one mapping relationship.
In the embodiment of the invention, each webpage file comprises a webpage resource subfile and a webpage layout subfile. The web page resource subfile is mainly used for storing all web page contents of the web page, including characters, pictures, videos, voices and the like, and the web page layout subfile is mainly used for storing information, such as the position of each web page content in the web page, the area occupied by the web page, the position relationship among the web page contents in the web page and the like.
In the embodiment of the invention, when the M webpage files are stored in the mobile terminal equipment, a user can find the webpage resource subfile and the webpage layout file corresponding to each webpage file through the index file in the database directory, so that the user can conveniently search.
S205, when the mobile terminal device receives the selection of the index file i stored in the database directory by the user, the mobile terminal device obtains the webpage resource subfiles included in the webpage file j stored in the resource directory and indexed by the index file i according to the index file i, obtains the webpage layout subfiles included in the webpage file j stored in the database directory and indexed by the index file i according to the index file i, and displays the webpage resource subfiles included in the webpage file j according to the webpage layout subfiles included in the webpage file j.
In the embodiment of the invention, when a user needs to browse the webpage files cached by the mobile terminal equipment, the user can search the index files in the database directory of the mobile terminal equipment, and each index file can index the webpage file corresponding to the index file. When a certain index file is selected by a user, the mobile terminal device can acquire a webpage resource subfile, corresponding to the index file, of a webpage file stored in a resource directory and a webpage layout subfile stored in a database directory according to the index file, and then the mobile terminal device can display webpage contents in the webpage resource subfile of the webpage file on a screen of the mobile terminal device in a webpage form according to information of the indexed webpage layout subfile so as to facilitate browsing of the user.
In this embodiment of the present invention, the information recorded in each index file may include, but is not limited to: the storage path of the web page resource subfile included in the web page file w, the name of the web page resource subfile included in the web page file w, the storage path of the web page resource subfile included in the web page file w, the name of the web page resource subfile included in the web page file w and the web page link level number of the web page file w. The web page file w is a web page file having a mapping relation with the index file among the M web page files.
For example, when a user browses a certain webpage, the user may select a function of webpage caching in a setting bar of the webpage; then the mobile terminal equipment pops up an input box for inputting webpage cache levels, when the webpage cache levels input in the input box by a user are 1 and click to be determined, the mobile terminal equipment downloads webpage files corresponding to all webpage links included in the webpage from a site server, wherein the webpage files comprise webpage resource subfiles and webpage layout subfiles; then the mobile terminal device stores the downloaded webpage resource subfile and the downloaded webpage layout subfile in a resource directory and a database directory of the mobile terminal device respectively; when a user selects a certain index file stored in the database directory, the mobile terminal device can index the web resource subfile and the web layout subfile in the web file corresponding to the index file according to the index file, and then display the web content in the web resource subfile on the screen of the mobile terminal device according to the information of the web layout subfile.
By implementing the embodiment of the invention, the mobile terminal equipment can download the webpage to be browsed by the user in advance, so that the user can continue to browse the webpage through the mobile terminal equipment under the condition of network interruption, and the user experience is improved. The mobile terminal device stores the webpage resource subfile and the webpage layout subfile in the webpage file in different directories of the mobile terminal device respectively, and management of a user can be facilitated. The user can find the corresponding webpage resource subfile and the corresponding webpage layout subfile through the index file stored in the database directory of the mobile terminal device, and can find the webpage content to be browsed more quickly.
Referring to fig. 3, fig. 3 is a schematic flow chart of another web page caching processing method according to the present invention. As shown in fig. 3, another webpage page caching processing method according to another embodiment of the present invention may include:
s301, the mobile terminal device requests a website server to download the current webpage.
In this embodiment of the present invention, the mobile terminal device may include a mobile phone, a tablet computer, a notebook computer, a palm computer, a Mobile Internet Device (MID), a wearable device (e.g., a smart watch (such as iwatch), a smart band, a pedometer, etc.), or another terminal device that can be installed with a browser application client, which is not limited in the embodiment of the present invention. The site server may include, but is not limited to, a WEB server.
In the embodiment of the invention, the mobile terminal equipment can send a request for downloading the current webpage to the site server through the browser application client, and when the site server agrees with the request for downloading the current webpage, the mobile terminal equipment can download the current webpage to the site server, namely, the mobile terminal equipment sends the website of the webpage needing to be accessed to the site server and downloads the webpage.
S302, the mobile terminal device displays the current webpage downloaded from the site server.
In the embodiment of the invention, when the mobile terminal device finishes downloading the current webpage to the website server, the mobile terminal device displays the current webpage on the screen of the mobile terminal device, namely, a user can browse the webpage content of the current webpage on the screen of the mobile terminal device.
S303, if the mobile terminal device receives the webpage caching level K input by the user under the current webpage, the mobile terminal device downloads M webpage files corresponding to K webpage links under the current webpage from the site server.
In the embodiment of the invention, each webpage corresponds to a plurality of webpage links, when a user inputs the number of stages needing to be cached in a webpage caching number frame popped up by the mobile terminal equipment as K, the mobile terminal equipment receives the webpage caching number of stages input by the user under the current webpage as K, and then downloads M webpage files corresponding to the K-level webpage links under the current webpage from a site server. Wherein K and M are both positive integers, and M is greater than or equal to K.
For example, when the user inputs a web page caching number of 1 in a web page caching number input box under the current web page, the mobile terminal device downloads web page files corresponding to all web page links in the current web page from the site server.
For another example, when the number of web page caching levels input by the user in the web page caching level input box under the current web page is 2, the mobile terminal device may download, from the site server, not only the web page files corresponding to all web page links in the current web page, but also the web page files corresponding to all web page links included in the web pages corresponding to all web page links in the current web page.
S304, the mobile terminal device caches the webpage resource subfiles and the webpage layout subfiles included in each of the M webpage files in a resource directory of the mobile terminal device.
In the embodiment of the present invention, the mobile terminal device may store the web resource subfile and the web layout subfile included in each of the M web files in the resource directory at the same time. The database directory of the mobile terminal device stores M index files for indexing the M web page files, wherein the M web page files and the M index files have a one-to-one mapping relationship.
In the embodiment of the invention, each webpage file comprises a webpage resource subfile and a webpage layout subfile. The web page resource subfile is mainly used for storing all web page contents of the web page, including characters, pictures, videos, voices and the like, and the web page layout subfile is mainly used for storing information, such as the position of each web page content in the web page, the area occupied by the web page, the position relationship among the web page contents in the web page and the like.
In the embodiment of the invention, when the M webpage files are stored in the mobile terminal equipment, a user can find the webpage resource subfile and the webpage layout file corresponding to each webpage file through the index file in the database directory, so that the user can conveniently search.
S305, when the mobile terminal device receives the selection of the index file x stored in the database directory by the user, the mobile terminal device obtains the webpage resource subfile and the webpage layout subfile included in the webpage file y stored in the resource directory and indexed by the index file x according to the index file x, and displays the webpage resource subfile included in the webpage file y according to the webpage layout subfile included in the webpage file y.
In the embodiment of the invention, when a user needs to browse the webpage files cached by the mobile terminal equipment, the user can search the index files in the database directory of the mobile terminal equipment, and each index file can index the webpage file corresponding to the index file. When a certain index file is selected by a user, the mobile terminal device can acquire the webpage resource subfile and the webpage layout subfile, stored in the resource directory, of the webpage file corresponding to the index file according to the index file, and then the mobile terminal device can display the webpage content in the webpage resource subfile of the webpage file on a screen of the mobile terminal device in a webpage form according to the information of the indexed webpage layout subfile so as to facilitate the user to browse.
In this embodiment of the present invention, the information recorded in each index file may include, but is not limited to: the storage path of the web page resource subfile included in the web page file w, the name of the web page resource subfile included in the web page file w, the storage path of the web page resource subfile included in the web page file w, the name of the web page resource subfile included in the web page file w and the web page link level number of the web page file w. The web page file w is a web page file having a mapping relation with the index file among the M web page files.
For example, when a user browses a certain webpage, the user may select a function of webpage caching in a setting bar of the webpage; then the mobile terminal equipment pops up an input box for inputting webpage cache levels, when the webpage cache levels input in the input box by a user are 2 and click to determine, the mobile terminal equipment downloads webpage files corresponding to all first webpage links included in the webpage and webpage files corresponding to all second webpage links in the webpage corresponding to each first webpage link from a site server, wherein the webpage files comprise webpage resource subfiles and webpage layout subfiles; then the mobile terminal device stores the downloaded webpage resource subfile and the downloaded webpage layout subfile in a resource directory of the mobile terminal device at the same time; when a user selects a certain index file stored in the database directory, the mobile terminal device can index the web resource subfile and the web layout subfile in the web file corresponding to the index file according to the index file, and then display the web content in the web resource subfile on the screen of the mobile terminal device according to the information of the web layout subfile.
By implementing the embodiment of the invention, the mobile terminal equipment can download the webpage to be browsed by the user in advance, so that the user can continue to browse the webpage through the mobile terminal equipment under the condition of network interruption, and the user experience is improved. The mobile terminal device stores the webpage resource subfile and the webpage layout subfile in the webpage file in the same resource directory of the mobile terminal device at the same time, and management of a user can be facilitated. The user can find the corresponding webpage resource subfile and the corresponding webpage layout subfile through the index file stored in the database directory of the mobile terminal device, and can find the webpage content to be browsed more quickly.
To facilitate a better implementation of the above-described aspects of embodiments of the present invention, the following also provides relevant means for implementing the above-described aspects.
Referring to fig. 4, fig. 4 is a mobile terminal device according to an embodiment of the present invention. The mobile terminal device 400 may include:
a downloading unit 401, configured to request a website server to download a current webpage.
In this embodiment of the present invention, the mobile terminal device 400 may include a mobile phone, a tablet computer, a notebook computer, a palm computer, a Mobile Internet Device (MID), a wearable device (e.g., a smart watch (such as iwatch), a smart band, a pedometer, etc.), or other terminal devices capable of installing a browser application client, which is not limited in the embodiment of the present invention. The site server may include, but is not limited to, a WEB server.
In this embodiment of the present invention, the downloading unit 401 of the mobile terminal device 400 may send a request for downloading a current web page to the site server through the browser application client, and when the site server agrees to the request for downloading the current web page, the downloading unit 401 may download the current web page to the site server, that is, the downloading unit 401 sends a website of the web page to be accessed to the site server, and downloads the web page.
And a display processing unit 402, configured to display the current webpage downloaded from the website server by the downloading unit 401.
In this embodiment of the present invention, after the downloading unit 401 finishes downloading the current webpage to the website server, the display processing unit 402 may display the current webpage on the screen of the mobile terminal device 400, that is, the user may browse the webpage content of the current webpage on the screen of the mobile terminal device 400.
The downloading unit 401 is further configured to, when receiving a web page cache level number K input by a user in a current web page, download, from the site server, M web page files corresponding to K level web page links in the current web page.
In the embodiment of the present invention, each web page corresponds to a plurality of web page links, and when a user inputs a number of levels to be cached as K in a web page caching number frame popped up by the mobile terminal device 400, the mobile terminal device 400 receives the number of web page caching numbers K input by the user under the current web page, and then triggers the downloading unit 401 to download M web page files corresponding to the K-level web page links under the current web page from the site server. Wherein K and M are both positive integers, and M is greater than or equal to K.
For example, when the user inputs a web page caching number of 1 in a web page caching number input box of the current web page, the downloading unit 401 downloads the web page files corresponding to all web page links in the current web page from the site server.
For another example, when the user inputs a web page caching number of 2 in the web page caching number input box of the current web page, the downloading unit 401 may download, from the site server, not only the web page files corresponding to all web page links in the current web page, but also the web page files corresponding to all web page links included in the web pages corresponding to all web page links in the current web page.
A caching unit 403, configured to cache the M web page files downloaded by the downloading unit 401.
In this embodiment of the present invention, when the downloading unit 401 downloads M webpage files corresponding to K-level webpage links in a current webpage, the caching unit 403 stores the M webpage files in a local folder of the mobile terminal device 400, so that a user can browse the current webpage and webpage contents corresponding to the K-level webpage links in the current webpage without a network.
As an optional implementation manner, the caching unit 403 may be specifically configured to cache the web resource subfiles included in each of the M web page files in the resource directory of the mobile terminal device 400, and cache the web layout subfiles included in each of the M web page files in the database directory of the mobile terminal device 400.
The display processing unit 402 is further configured to, when receiving a selection of a user for an index file i stored in the database directory, obtain, according to the index file i, a webpage resource subfile included in a webpage file j stored in the resource directory and indexed by the index file i, obtain, according to the index file i, a webpage layout subfile included in the webpage file j stored in the database directory and indexed by the index file i, and display, according to the webpage layout subfile included in the webpage file j, the webpage resource subfile included in the webpage file j.
In this embodiment of the present invention, the caching unit 403 may store the web resource subfile and the web layout subfile included in each of the M web files in the resource directory and the database directory, respectively. The database directory of the mobile terminal device 400 further stores M index files for indexing the M web page files, where the M web page files and the M index files have a one-to-one mapping relationship.
In the embodiment of the invention, each webpage file comprises a webpage resource subfile and a webpage layout subfile. The web page resource subfile is mainly used for storing all web page contents of the web page, including characters, pictures, videos, voices and the like, and the web page layout subfile is mainly used for storing information, such as the position of each web page content in the web page, the area occupied by the web page, the position relationship among the web page contents in the web page and the like.
In the embodiment of the present invention, when the M web page files are stored in the mobile terminal device 400, the user may find the web page resource subfile and the web page layout file corresponding to each web page file through the index file in the database directory, which is convenient for the user to find.
In the embodiment of the present invention, when a user needs to browse the web page files cached by the caching unit 403, the user may search the index files in the database directory of the mobile terminal device 400, and each index file can index the web page file corresponding to the index file. When a certain index file is selected by the user, the display processing unit 402 may obtain, according to the index file, a web resource subfile of the web file corresponding to the index file stored in the resource directory and a web layout subfile stored in the database directory, and then, the display processing unit 402 may display, according to information of the indexed web layout subfile, web content in the web resource subfile of the web file on the screen of the mobile terminal device 400 in a form of a web page, so that the user can browse the web content.
In this embodiment of the present invention, the information recorded in each index file may include, but is not limited to: the storage path of the web page resource subfile included in the web page file w, the name of the web page resource subfile included in the web page file w, the storage path of the web page resource subfile included in the web page file w, the name of the web page resource subfile included in the web page file w and the web page link level number of the web page file w. The web page file w is a web page file having a mapping relation with the index file among the M web page files.
For example, when a user browses a certain webpage, the user may select a function of webpage caching in a setting bar of the webpage; then, the mobile terminal device 400 pops up an input box for inputting the number of web page cache levels, and when the number of web page cache levels input in the input box by the user is 1 and the user clicks to determine, the downloading unit 401 downloads web page files corresponding to all web page links included in the web page from the site server, where the web page files include a web page resource subfile and a web page layout subfile; then, the caching unit 403 stores the downloaded web resource subfile and the downloaded web layout subfile in the resource directory and the database directory of the mobile terminal device 400, respectively; when the user selects a certain index file stored in the database directory, the display processing unit 402 may index the web resource subfile and the web layout subfile in the web file corresponding to the index file according to the index file, and then display the web content in the web resource subfile on the screen of the mobile terminal device 400 according to the information of the web layout subfile.
As another optional implementation manner, the caching unit 403 may be further specifically configured to cache the web resource subfile and the web layout subfile included in each of the M web files in the resource directory of the mobile terminal device 400.
The display processing unit 402 is further configured to, when receiving a selection of the index file x stored in the database directory by a user, obtain, according to the index file x, a web resource subfile and a web layout subfile included in a web file y stored in the resource directory, which can be indexed by the index file x, and display, according to the web layout subfile included in the web file y, the web resource subfile included in the web file y. In the embodiment of the present invention, when a user needs to browse the web page files cached by the caching unit 403, the user may search the index files in the database directory of the mobile terminal device 400, and each index file can index the web page file corresponding to the index file. When a certain index file is selected by the user, the display processing unit 402 may obtain the web resource subfile and the web layout subfile, stored in the resource directory, of the web file corresponding to the index file according to the index file, and then display the content in the web resource subfile of the web file on the screen of the mobile terminal device 400 in the form of a web page according to the information of the indexed web layout subfile, so that the user can browse the content.
For example, when a user browses a certain webpage, the user may select a function of webpage caching in a setting bar of the webpage; then, the mobile terminal device 400 pops up an input box for inputting the number of web page cache levels, when the number of web page cache levels input in the input box by the user is 2 and the user clicks to determine, the downloading unit 401 downloads, from the site server, web page files corresponding to all first web page links included in the web page and web page files corresponding to all second web page links in the web page corresponding to each first web page link, where the web page files include web page resource subfiles and web page layout subfiles; then, the cache unit 403 stores the downloaded web resource subfile and the downloaded web layout subfile in the resource directory of the mobile terminal device 400 at the same time; when the user selects a certain index file stored in the database directory, the display processing unit 402 may index the web resource subfile and the web layout subfile in the web file corresponding to the index file according to the index file, and then display the web content in the web resource subfile on the screen of the mobile terminal device 400 according to the information of the web layout subfile.
By implementing the embodiment of the invention, the mobile terminal equipment can download the webpage to be browsed by the user in advance, so that the user can continue to browse the webpage through the mobile terminal equipment under the condition of network interruption, and the user experience is improved. The mobile terminal device stores the webpage resource subfile and the webpage layout subfile in the webpage file in the mobile terminal, so that the mobile terminal device can be conveniently managed by a user. The user can find the corresponding webpage resource subfile and the corresponding webpage layout subfile through the index file stored in the database directory of the mobile terminal device, and can find the webpage content to be browsed more quickly.
Referring to fig. 5, fig. 5 is a schematic structural diagram of another mobile terminal device provided in the present invention. As shown in fig. 5, the mobile terminal device 500 of the present embodiment includes at least one bus 501, at least one processor 502, such as a CPU, connected to the bus 501, an output device 503 connected to the bus 501, and at least one memory 504 connected to the bus 501. The memory 504 may be a high-speed RAM memory, a non-volatile memory (non-volatile memory) such as at least one magnetic disk memory, or at least one storage device located remotely from the processor 502. Wherein:
the processor 502 calls the code stored in the memory 504 via the bus 501 for requesting a download of the current web page from the site server.
An output device 503 for showing that the processor 502 requests to download the current web page from the site server.
The processor 502 is further configured to, when receiving a web page cache level K input by a user in a current web page, download, from the site server, M web page files corresponding to K level web page links in the current web page.
A memory 504 for caching the M web page files downloaded by the processor 502.
As an alternative implementation manner, the memory 504 may cache the web resource subfiles included in each of the M web files downloaded by the processor 502 in the resource directory of the mobile terminal device 500, and cache the web layout subfiles included in each of the M web files in the database directory of the mobile terminal device 500.
The output device 503 is specifically configured to, when receiving a selection of the index file i stored in the database directory by a user, obtain, according to the index file i, a webpage resource subfile included in a webpage file j stored in the resource directory and indexed by the index file i, obtain, according to the index file i, a webpage layout subfile included in a webpage file j stored in the database directory and indexed by the index file i, and display, according to the webpage layout subfile included in the webpage file j, the webpage resource subfile included in the webpage file j.
As another optional implementation manner, the memory 504 may further cache the web resource subfile and the web layout subfile included in each of the M web files downloaded by the processor 502 in the resource directory of the mobile terminal device 500.
The output device 503 is specifically configured to, when receiving a selection of the index file x stored in the database directory by a user, obtain, according to the index file x, a web resource subfile and a web layout subfile included in a web file y stored in the resource directory and indexed by the index file x, and display, according to the web layout subfile included in the web file y, the web resource subfile included in the web file y.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a program, and the program includes, when executed, some or all of the steps of any one of the information delivery methods described in the above method embodiments.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (4)

1. A webpage page cache processing method is characterized by comprising the following steps:
the mobile terminal equipment requests a website server to download a current webpage;
the mobile terminal equipment displays the current webpage downloaded from the website server;
when the webpage caching function of the setting column of the webpage is selected by a user, popping up an input frame for inputting webpage caching levels by mobile terminal equipment, and if the mobile terminal equipment receives the webpage caching levels K input by the user through the input frame for inputting the webpage caching levels under the current webpage, downloading M webpage files corresponding to K webpage links under the current webpage from the site server by the mobile terminal equipment;
the mobile terminal device caches the M webpage files, wherein each webpage file in the M webpage files comprises a webpage layout subfile and a webpage resource subfile, K and M are positive integers, and M is larger than or equal to K; when a user inputs a webpage caching number of 1 in a webpage caching number input frame under a current webpage, the mobile terminal equipment downloads webpage files corresponding to all webpage links in the current webpage from a site server; when the webpage caching number input by a user in a webpage caching number input frame under a current webpage is 2, the mobile terminal device not only downloads webpage files corresponding to all webpage links in the current webpage from a site server, but also downloads webpage files corresponding to all webpage links in the webpage corresponding to all webpage links in the current webpage from the site server;
wherein, the mobile terminal device caches the M web page files, including:
the mobile terminal device caches a webpage resource subfile included by each of the M webpage files to a resource directory of the mobile terminal device, and the mobile terminal device caches a webpage layout subfile included by each of the M webpage files to a database directory of the mobile terminal device, wherein M index files used for indexing to the M webpage files are stored in the database directory, and the M webpage files and the M index files have a one-to-one mapping relationship;
the webpage resource subfile is used for storing all webpage contents of the webpage, and the webpage layout subfile is used for storing the position of each webpage content in the webpage, the area occupied by the webpage and the position relation among the webpage contents in the webpage;
wherein the content of the first and second substances,
the method further comprises the following steps: when the mobile terminal equipment receives the selection of a user on an index file i stored in the database directory, the mobile terminal equipment acquires a webpage resource subfile included by a webpage file j stored in a resource directory and capable of being indexed by the index file i according to the index file i; acquiring a webpage layout subfile included by a webpage file j stored in a database directory and indexed by the index file j according to the index file j, and displaying a webpage resource subfile included by the webpage file j according to the webpage layout subfile included by the webpage file j, wherein the index file i is any one index file in the M index files, and the webpage file j is a webpage file which has a mapping relation with the index file i in the M webpage files;
the index file z stored in the database directory records the following information: the method comprises the following steps of storing a storage path of a webpage resource subfile included in a webpage file w, a name of the webpage resource subfile included in the webpage file w, a storage path of a webpage layout subfile included in the webpage file w, a name of the webpage layout subfile included in the webpage file w and a webpage link level of the webpage file w;
the web page file w is a web page file which has a mapping relation with the index file z in the M web page files.
2. A mobile terminal device, characterized by comprising:
a downloading unit for requesting a website server to download a current webpage;
a display processing unit for displaying the current webpage downloaded from the site server;
the downloading unit is further used for downloading M webpage files corresponding to K levels of webpage links under the current webpage from the site server if receiving the webpage caching level K input by a user through an input frame for inputting the webpage caching level under the current webpage;
when the webpage caching function of the webpage setting bar is selected by a user, the mobile terminal equipment pops up an input box for inputting the webpage caching number;
the cache unit is used for caching the M webpage files, wherein each webpage file in the M webpage files comprises a webpage layout subfile and a webpage resource subfile, the K and the M are positive integers, and the M is greater than or equal to the K; when a user inputs a webpage caching number of 1 in a webpage caching number input frame under a current webpage, the mobile terminal equipment downloads webpage files corresponding to all webpage links in the current webpage from a site server; when the webpage caching number input by a user in a webpage caching number input frame under a current webpage is 2, the mobile terminal device not only downloads webpage files corresponding to all webpage links in the current webpage from a site server, but also downloads webpage files corresponding to all webpage links in the webpage corresponding to all webpage links in the current webpage from the site server;
the cache unit is specifically configured to cache a web resource subfile included in each of the M web files in a resource directory of the mobile terminal device, cache a web layout subfile included in each of the M web files in a database directory of the mobile terminal device, store M index files for indexing the M web files in the database directory, and have a one-to-one mapping relationship between the M web files and the M index files;
the webpage resource subfile is used for storing all webpage contents of the webpage, and the webpage layout subfile is used for storing the position of each webpage content in the webpage, the area occupied by the webpage and the position relation among the webpage contents in the webpage;
the display processing unit is further used for acquiring webpage resource subfiles included in a webpage file j stored in a resource directory and capable of being indexed by the index file i according to the index file i when the selection of a user on the index file i stored in the database directory is received; acquiring a webpage layout subfile included by a webpage file j stored in a database directory and indexed by the index file j according to the index file j, and displaying a webpage resource subfile included by the webpage file j according to the webpage layout subfile included by the webpage file j, wherein the index file i is any one index file in the M index files, and the webpage file j is a webpage file which has a mapping relation with the index file i in the M webpage files;
the index file z stored in the database directory records the following information: the method comprises the following steps of storing a storage path of a webpage resource subfile included in a webpage file w, a name of the webpage resource subfile included in the webpage file w, a storage path of a webpage layout subfile included in the webpage file w, a name of the webpage layout subfile included in the webpage file w and a webpage link level of the webpage file w;
the web page file w is a web page file which has a mapping relation with the index file z in the M web page files.
3. A mobile terminal device, characterized by comprising: a processor and a memory, wherein the processor is capable of processing a plurality of data,
wherein the processor calls code stored in the memory for executing the method of claim 1.
4. A storage medium storing a computer software product comprising instructions for causing a computing device to perform the method of claim 1.
CN201711143435.1A 2014-12-31 2014-12-31 Webpage page caching processing method, mobile terminal equipment and medium product Active CN108062352B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711143435.1A CN108062352B (en) 2014-12-31 2014-12-31 Webpage page caching processing method, mobile terminal equipment and medium product

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410856028.5A CN104572981B (en) 2014-12-31 2014-12-31 A kind of Webpage method for caching and processing and mobile terminal device
CN201711143435.1A CN108062352B (en) 2014-12-31 2014-12-31 Webpage page caching processing method, mobile terminal equipment and medium product

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201410856028.5A Division CN104572981B (en) 2014-12-31 2014-12-31 A kind of Webpage method for caching and processing and mobile terminal device

Publications (2)

Publication Number Publication Date
CN108062352A CN108062352A (en) 2018-05-22
CN108062352B true CN108062352B (en) 2022-01-14

Family

ID=53089043

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201410856028.5A Active CN104572981B (en) 2014-12-31 2014-12-31 A kind of Webpage method for caching and processing and mobile terminal device
CN201711143435.1A Active CN108062352B (en) 2014-12-31 2014-12-31 Webpage page caching processing method, mobile terminal equipment and medium product

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201410856028.5A Active CN104572981B (en) 2014-12-31 2014-12-31 A kind of Webpage method for caching and processing and mobile terminal device

Country Status (1)

Country Link
CN (2) CN104572981B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105242960B (en) * 2015-09-21 2020-02-18 青岛海信电器股份有限公司 Method for processing system function call request and browser
CN106649313B (en) * 2015-10-29 2020-11-27 阿里巴巴集团控股有限公司 Method and apparatus for processing cache data
CN106407341A (en) * 2016-09-05 2017-02-15 努比亚技术有限公司 Page processing method, apparatus and system
CN108334542A (en) * 2017-12-22 2018-07-27 山东浪潮云服务信息科技有限公司 A kind of data extraction method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6055572A (en) * 1998-01-20 2000-04-25 Netscape Communications Corporation System and method for creating pathfiles for use to predict patterns of web surfaces
CN101710327A (en) * 2009-12-04 2010-05-19 深圳创维数字技术股份有限公司 Method for caching local temporary files into embedded browser
CN101727446A (en) * 2008-10-27 2010-06-09 国际商业机器公司 Method and system for accessing mobile Web, corresponding server and mobile equipment
CN102096712A (en) * 2011-01-28 2011-06-15 深圳市五巨科技有限公司 Method and device for cache-control of mobile terminal
CN102158853A (en) * 2011-05-23 2011-08-17 广州市动景计算机科技有限公司 Method and device for managing download of mobile communication equipment terminal browser
CN102479250A (en) * 2010-11-26 2012-05-30 中国科学院声学研究所 Disk caching method for embedded browser
CN102867007A (en) * 2011-07-08 2013-01-09 腾讯科技(深圳)有限公司 Webpage browsing method and device

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6871218B2 (en) * 2001-11-07 2005-03-22 Oracle International Corporation Methods and systems for preemptive and predictive page caching for improved site navigation
CN101075236A (en) * 2006-06-12 2007-11-21 腾讯科技(深圳)有限公司 Apparatus and method for accelerating browser webpage display
CN101110819A (en) * 2007-08-03 2008-01-23 中国网络通信集团公司 Method for improving switching speed when browsing pages
CN102065108A (en) * 2009-11-17 2011-05-18 中国移动通信集团广东有限公司 Method, wireless communication terminal and client browser for realizing pre-download
CN101848231B (en) * 2010-03-08 2013-01-02 深圳市同洲电子股份有限公司 Method and system for data transmission
CN101777081A (en) * 2010-03-08 2010-07-14 中兴通讯股份有限公司 Method and device for improving webpage access speed
CN102238204A (en) * 2010-04-23 2011-11-09 腾讯科技(深圳)有限公司 Network data acquisition method and system
CN101963992A (en) * 2010-10-20 2011-02-02 深圳市茁壮网络股份有限公司 Method and browser for increasing webpage display speed
CN103488636B (en) * 2012-06-11 2016-04-13 腾讯科技(深圳)有限公司 A kind of method of browsing web pages in offline state and device
CN103618936A (en) * 2013-12-16 2014-03-05 乐视致新电子科技(天津)有限公司 Smart television, as well as method and device for pre-downloading link pages in browser of smart television

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6055572A (en) * 1998-01-20 2000-04-25 Netscape Communications Corporation System and method for creating pathfiles for use to predict patterns of web surfaces
CN101727446A (en) * 2008-10-27 2010-06-09 国际商业机器公司 Method and system for accessing mobile Web, corresponding server and mobile equipment
CN101710327A (en) * 2009-12-04 2010-05-19 深圳创维数字技术股份有限公司 Method for caching local temporary files into embedded browser
CN102479250A (en) * 2010-11-26 2012-05-30 中国科学院声学研究所 Disk caching method for embedded browser
CN102096712A (en) * 2011-01-28 2011-06-15 深圳市五巨科技有限公司 Method and device for cache-control of mobile terminal
CN102158853A (en) * 2011-05-23 2011-08-17 广州市动景计算机科技有限公司 Method and device for managing download of mobile communication equipment terminal browser
CN102867007A (en) * 2011-07-08 2013-01-09 腾讯科技(深圳)有限公司 Webpage browsing method and device

Also Published As

Publication number Publication date
CN108062352A (en) 2018-05-22
CN104572981B (en) 2017-11-24
CN104572981A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
CN106886570B (en) Page processing method and device
JP6488508B2 (en) Web page access method, apparatus, device, and program
US9798531B2 (en) Dependency-aware transformation of multi-function applications for on-demand execution
US8612418B2 (en) Mobile web browser for pre-loading web pages
CN106598972B (en) Information display method and device and intelligent terminal
EP2724251B1 (en) Methods for making ajax web applications bookmarkable and crawlable and devices thereof
US9952848B2 (en) Dependency-aware transformation of multi-function applications for on-demand execution
US20140100963A1 (en) Method, System and Device For Filtering Mobile Terminal Webpage Advertisements
CN103618774B (en) A kind of resource recommendation method based on network behavior and device, system
CN106649543B (en) Method, device and terminal for recording reading progress
WO2016187036A1 (en) Application page quick access
WO2014032579A1 (en) A method and apparatus for displaying information
CN107291759B (en) Method and device for processing browser page resources
CN110245069B (en) Page version testing method and device and page display method and device
CN108062352B (en) Webpage page caching processing method, mobile terminal equipment and medium product
US8579187B2 (en) System and method to identify machine-readable codes
CN105956136B (en) Method and device for acquiring login information
CN102541853A (en) Method and device which are capable of obtaining application information by utilizing browser address bar
WO2014108038A1 (en) Frequently-used website generation client terminal, server, system and method
US20160048586A1 (en) Classifying urls
CN104572707A (en) Preferable object information providing method and device
CN109086304B (en) Electronic bookmark updating method, device and storage medium
JP5735996B2 (en) Information processing apparatus, server apparatus, method, and program
CN108108381B (en) Page monitoring method and device
CN103500190B (en) Icon content updating method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant