CN106095999A - Obtain the method and device of content of pages - Google Patents

Obtain the method and device of content of pages Download PDF

Info

Publication number
CN106095999A
CN106095999A CN201610458581.2A CN201610458581A CN106095999A CN 106095999 A CN106095999 A CN 106095999A CN 201610458581 A CN201610458581 A CN 201610458581A CN 106095999 A CN106095999 A CN 106095999A
Authority
CN
China
Prior art keywords
content
pages
url link
application
locality
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.)
Pending
Application number
CN201610458581.2A
Other languages
Chinese (zh)
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610458581.2A priority Critical patent/CN106095999A/en
Publication of CN106095999A publication Critical patent/CN106095999A/en
Pending legal-status Critical Current

Links

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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]

Abstract

The invention discloses a kind of method and device obtaining content of pages, belong to networking technology area.nullThe present invention is when receiving assigned operation based on application,Link before obtaining current time and apart from the uniform resource position mark URL specifying time period this application interior that current time is nearest,Obtain the content of pages that this URL link is corresponding,And the content of pages caching extremely this locality that will obtain,When receiving browsing instructions based on this URL link,The content of pages that this locally stored URL link is corresponding is shown in the current display interface of this application,That is to say,When receiving assigned operation based on application,Automatically the content of pages that the URL link of this application is corresponding is loaded,And the content of pages of loading is stored to this locality,When user wants to check content of pages corresponding to URL link,Terminal obtains the content of pages that this URL link is corresponding from this locality,So,Even if network signal is poor,Terminal still can show the content of pages that this URL link is corresponding glibly,Improve display speed.

Description

Obtain the method and device of content of pages
Technical field
The present invention relates to networking technology area, particularly to a kind of method and device obtaining content of pages.
Background technology
Along with the fast development of network technology, network service platform has provided the user the rich and varied page.Wherein, root Different according to page category, the page can include the primary page and HTML (HyperText Markup Language, hypertext mark Note language) the class page, the application of this HTML class page is relatively broad, currently used more be the HTML5 page, such as, URL The page of (Uniform Resource Locator, URL) link correspondence is typically the HTML5 page.
Currently for URL link, the process that realizes obtaining its content of pages generally includes: terminal demonstration URL link, uses When content of pages corresponding to this URL link is wanted to check in family, this URL link can be clicked on to trigger browsing instructions, when terminal base When URL link receives this browsing instructions, sending content of pages to server and obtain request, server receives in this page After holding the request of acquisition, obtaining the content of pages that this URL link is corresponding, and send this content of pages to this terminal, this terminal connects After receiving this content of pages, showing this content of pages in current display interface, so, user can view this The content of pages that URL link is corresponding.
During realizing the present invention, inventor finds that prior art at least there is problems in that
The method of above-mentioned acquisition content of pages is when receiving browsing instructions, and this terminal obtains this URL by server The content of pages that link is corresponding, when network signal is poor, is easily caused the page the most smooth.
Summary of the invention
In order to solve problem of the prior art, embodiments provide a kind of method obtaining content of pages and dress Put.Described technical scheme is as follows:
On the one hand, it is provided that a kind of method obtaining content of pages, described method includes:
When receiving assigned operation based on application, before obtaining current time and when the appointment that current time is nearest Between in section described application specify the uniform resource position mark URL link that interface includes;
Obtain the content of pages that described URL link is corresponding, and the content of pages caching extremely this locality that will obtain;
When receiving browsing instructions based on described URL link, the current display interface of described application shows this locality The content of pages corresponding to described URL link of storage.
On the other hand, it is provided that a kind of device obtaining content of pages, described device includes:
First acquisition module, is used for when receiving assigned operation based on application, before obtaining current time and apart from working as In the appointment time period that the front time is nearest, the uniform resource position mark URL specifying interface to include of described application links;
Second acquisition module, for obtaining the content of pages that the described URL link of described first acquisition module acquisition is corresponding, And the content of pages caching extremely this locality that will obtain;
Display module, for when receiving browsing instructions based on described URL link, on the currently displaying boundary of described application Face shows the content of pages that locally stored described URL link is corresponding.
The technical scheme that the embodiment of the present invention provides has the benefit that
When terminal receives assigned operation based on application, illustrate that user may browse the URL link pair in this application The page answered, specifies the URL of this application in the time period to this end, terminal obtains before current time and distance current time is nearest Link, and obtain the content of pages that this URL link is corresponding, afterwards, this terminal is by the most local for the content of pages caching obtained, in order to When user wants to browse the page corresponding to this URL link, can directly obtain in the page that this URL link is corresponding from this locality Hold, that is to say, when user wants to browse content of pages corresponding to this URL link, this URL link can be clicked on and browse to trigger Instruction, when this terminal receives this browsing instructions, content of pages corresponding to this URL link of being cached in advance this locality should at this Current display interface in show, so, even in the case of network is poor, terminal still can show glibly The content of pages that this URL link is corresponding, improves display speed.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, in embodiment being described below required for make Accompanying drawing be briefly described, it should be apparent that, below describe in accompanying drawing be only some embodiments of the present invention, for From the point of view of those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to obtain other according to these accompanying drawings Accompanying drawing.
Fig. 1 is according to a kind of method flow diagram obtaining content of pages shown in an exemplary embodiment.
Fig. 2 is according to a kind of method flow diagram obtaining content of pages shown in another exemplary embodiment.
Fig. 3 A is according to a kind of apparatus structure schematic diagram obtaining content of pages shown in an exemplary embodiment.
Fig. 3 B is according to a kind of apparatus structure schematic diagram obtaining content of pages shown in another exemplary embodiment.
Fig. 3 C is according to a kind of apparatus structure schematic diagram obtaining content of pages shown in another exemplary embodiment.
Fig. 3 D is according to a kind of apparatus structure schematic diagram obtaining content of pages shown in another exemplary embodiment.
Fig. 4 is the block diagram according to a kind of device 400 obtaining content of pages shown in an exemplary embodiment.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
Fig. 1 is according to a kind of method flow diagram obtaining content of pages shown in an exemplary embodiment, this acquisition page The method of content can include following several step:
Step 101: when receiving assigned operation based on application, obtains before current time and distance current time is nearest Specify the uniform resource position mark URL link specifying interface to include of this application in the time period.
Step 102: obtain the content of pages that this URL link is corresponding, and the content of pages caching extremely this locality that will obtain.
Step 103: when receiving browsing instructions based on this URL link, shows in the current display interface of this application The content of pages that this locally stored URL link is corresponding.
In embodiments of the present invention, when terminal receives assigned operation based on application, illustrate that user may browse this The page that URL link in application is corresponding, to this end, before terminal obtains current time and during the nearest appointment of distance current time Between the URL link of this application in section, and obtain the content of pages that this URL link is corresponding, afterwards, in the page that this terminal will obtain Hold caching to local, in order to when user wants to browse the page corresponding to this URL link, directly can obtain this URL from this locality The content of pages that link is corresponding, that is to say, when user wants to browse content of pages corresponding to this URL link, can click on this URL link is to trigger browsing instructions, when this terminal receives this browsing instructions, and this URL link pair that this locality is cached in advance The content of pages answered shows in the current display interface of this application, so, even in the case of network is poor, eventually End still can show the content of pages that this URL link is corresponding glibly, improves display speed.
Alternatively, obtain the content of pages that this URL link is corresponding, including:
Based on this URL link, generate content of pages and obtain request;
Send this content of pages to server and obtain request so that this server to obtain and return this URL link corresponding Content of pages;
Receive the content of pages that this server sends, and the content of pages of reception is defined as the page that this URL link is corresponding Face content.
Alternatively, before obtaining the content of pages that this URL link is corresponding, also include:
Judge whether the network being currently accessed is wireless network;
If the network being currently accessed is wireless network, then perform the step of content of pages corresponding to this URL link of this acquisition.
Alternatively, this content of pages obtains request and carries appointment numerical value, and this appointment numerical value is used for indicating this server when inspection Measure content of pages corresponding to this URL link and include obtaining during video data the content of pages of this appointment numerical values recited.
Alternatively, the content of pages obtained is cached after this locality, also includes:
Add up this content of pages at local caching duration;
When this content of pages is when local caching duration is more than or equal to predetermined threshold value, this content of pages is deleted from this locality Remove.
Alternatively, the method also includes:
When the out of Memory obtained in addition to URL link being detected, suspend in the page that this URL link of this acquisition is corresponding The operation held;
When no longer acquisition out of Memory in addition to URL link being detected, continue to obtain the page that this URL link is corresponding Content.
Alternatively, the current display interface of this application shows the content of pages that this locally stored URL link is corresponding Afterwards, also include:
When detecting that the page corresponding to this URL link is closed, content of pages corresponding for this URL link is deleted from this locality Remove.
Above-mentioned all optional technical schemes, all can be according to arbitrarily combining the alternative embodiment forming the present invention, and the present invention is real Execute example this is repeated the most one by one.
Fig. 2 is according to a kind of method flow diagram obtaining content of pages shown in another exemplary embodiment, the present embodiment Performing to carry out distance explanation by terminal with the method for this acquisition content of pages, the method for this acquisition content of pages can include as follows Several steps:
Step 201: when receiving assigned operation based on application, obtains before current time and distance current time is nearest Specify the URL link specifying interface to include of this application in the time period.
At present, along with the fast development of network technology, occur in that various types of application, such as, instant messaging application, society Handing over application etc., in actual use, user can carry out instant messaging by instant messaging application, or should by social activity Share information with other users, during browsing pages otherwise, when to certain page interested time, it is also possible to Collect after URL link corresponding for this page is shared to account corresponding to the application of the above-mentioned type, so since, user is permissible The type application specify in interface browse oneself or good friend and shared URL (Uniform Resource Locator, URL) link, i.e. user can get, by terminal, the content of pages that this URL link is corresponding.
At present, the page corresponding to URL link is typically the HTML5 page, and compared with the primary page, the HTML5 page disappears The flow that the primary page of flow-rate ratio of consumption consumes is big, and wherein, this primary page refers to directly run on current operation system In the page, this primary page has that the speed of service is fast, development cost compares high.Currently for HTML5 content of pages Acquisition mode as described in above-mentioned background technology, but, the acquisition mode of the content of pages that the URL link of above-mentioned offer is corresponding In, when network signal is poor, it is easily caused the page the most smooth.To this end, in embodiments of the present invention, it is provided that a kind of acquisition page The method of face content, even if by the method so that in the case of network signal is poor, terminal still can show glibly Show the content of pages that URL link is corresponding.
Wherein, terminal, when receiving assigned operation based on application, obtains the URL link of certain time period this application interior, should Assigned operation can serve to indicate that terminal starts this application, or, this assigned operation can be used for indicating terminal display to answer Appointment interface, wherein, this appointment interface can be by the most self-defined setting of technical staff, it is also possible to by terminal Default setting, this is not limited by the embodiment of the present invention.
Such as, in social networking application wechat, this appointment interface can be the interface at circle of friends place, that is to say, this appointment Operation can serve to indicate that this terminal shows the circle of friends of user in this social networking application wechat, and wherein, this circle of friends includes The multidate information that multiple good friends of this user issue or share, this multidate information includes URL link.
It addition, above-mentioned assigned operation can include clicking operation, slide etc., this is not limited by the embodiment of the present invention Fixed.
It should be noted that in embodiments of the present invention, it is only for indicating terminal to start this application with this assigned operation, Or, this assigned operation illustrates as a example by the appointment interface indicating this application of terminal display, in another embodiment, and should Assigned operation may be used to indicate that terminal performs other operation, and this is not limited by the embodiment of the present invention.
Wherein, the above-mentioned appointment time period can be by the most self-defined setting of user, it is also possible to given tacit consent to by terminal Arranging, this is not limited by the embodiment of the present invention.
Such as, this appointment time period is 7 hours, and above-mentioned assigned operation is used for indicating terminal to start this application, at this In the case of Zhong, when terminal receives assigned operation based on application, starting this application, afterwards, this terminal obtains this application automatically Before middle current time and apart from nearest 7 hours interior URL link of current time.
Step 202: judge whether the network being currently accessed is wireless network.
After this terminal obtains this URL link, the content of pages that this URL link is corresponding can be obtained, but, in reality In application process, if obtaining the content of pages that this URL link is corresponding under mobile network environment, then may waste flow, for This, in embodiments of the present invention, before obtaining the content of pages that this URL link is corresponding, in addition it is also necessary to judges the net being currently accessed Whether network is wireless network.
Wherein, this wireless network can include WiFi (Wireless Fidelity, Wireless Fidelity) network, WLAN (Wireless Local Area Networks, WLAN) etc., this is not limited by the embodiment of the present invention.
Step 203: when the network being currently accessed is wireless network, obtains the content of pages that this URL link is corresponding, and will obtain The content of pages caching taken is to local.
Wherein, the process that realizes obtaining this URL link correspondence content of pages may include that based on this URL link, generates page Face content acquisition request, sends this content of pages to server and obtains request, so that this server obtains and return this URL link Corresponding content of pages, receives the content of pages that this server sends, and the content of pages of reception is defined as this URL link pair The content of pages answered.
In a kind of possible implementation, this content of pages obtains request and carries appointment numerical value, and this appointment numerical value is used for Indicate this server when detecting that content of pages corresponding to this URL link obtains this appointment numerical values recited when including video data Content of pages.
That is to say, due to the limited storage space of terminal local, and when the content of pages that this URL link is corresponding includes regarding Frequency according to time, in order to not affect the operating rate of this terminal, need the size of the video data in this content of pages is limited System, i.e. this terminal carry appointment numerical value in this content of pages obtains request.The size of this appointment numerical value can be by technical staff The most self-defined setting, such as, this appointment numerical value can be 100,000,000, that is to say, server needs to limit acquisition Comprise the content of pages of video data less than or equal to 100,000,000.
Wherein, in above-mentioned implementation, this server can be given tacit consent to and determine in the content of pages that this URL link is corresponding and be No including video data, that is to say, this terminal has only to notify the maximum of the content of pages that this server obtains, and for clothes For business device, when detecting that content of pages corresponding to this URL link includes video data, automatically to the video data obtained Size limits, certainly, owing to when not including video data in content of pages, the data volume of this content of pages is the least In this appointment numerical value, therefore, when not including video data during this server determines this URL link, this page is directly obtained Content.
Step 204: when receiving browsing instructions based on this URL link, shows in the current display interface of this application The content of pages that this locally stored URL link is corresponding.
Wherein, this browsing instructions is for indicating terminal to obtain and showing the content of pages that this URL link is corresponding, and this browses finger Order can be triggered by user, and this user can be triggered by above-mentioned assigned operation.
That is to say, when this terminal receives browsing instructions based on this URL link, illustrate that user may wish to browse this The content of pages that URL link is corresponding, from above-mentioned steps, due to this terminal the most in advance by the page corresponding for this URL link Content stores to this locality, and therefore, terminal gets from this locality in the content of pages that this URL link is corresponding, and the page that will obtain Hold and show in this application current display interface.
Such as, it is as a example by above-mentioned social networking application wechat by this application, when user is when browsing circle of friends, certain good friend is shared URL link interested time, this URL link can be clicked on to trigger this browsing instructions, when this terminal receives based on this URL link During to the clicking operation of this user, from the content of pages that this locality caches in advance, obtain the content of pages that this URL link is corresponding, and This content of pages is shown by the current display interface of this social networking application wechat.
So far, the embodiment of the present invention i.e. achieves the method obtaining content of pages, it addition, during reality realizes, eventually End obtains the content of pages that this URL link is corresponding, and is cached to this locality, in user does not browses this page for a long time Hold, or, after this user this content of pages browsed, this content of pages can be deleted by terminal from this locality, implements process Refer to following steps 205 to step 206.
Step 205: add up this content of pages caching duration in this locality, grows up when this content of pages is at local caching In or equal to predetermined threshold value time, by this content of pages from this locality delete.
In a kind of possible implementation, the content of pages got from server is stored to this locality by this terminal After, if in longer period of time, user does not triggers browse operation always, illustrates that this URL link may not felt emerging by user Interest, in this case, this content of pages can be deleted by terminal from this locality.
Therefore, in embodiments of the present invention, the content of pages got is stored to this locality by terminal, adds up in this page Holding at local caching duration, wherein, in a kind of possible implementation, this terminal can be configured with intervalometer, that is to say, When being stored to this locality by the content of pages got, this terminal starts this intervalometer, to realize this content of pages in this locality Caching duration add up.
Wherein, this predetermined threshold value can be by the most self-defined setting of user, it is also possible to by terminal default setting, This is not limited by the embodiment of the present invention.
Such as, if this predetermined threshold value is 12 hours, then this terminal is by the most local for content of pages caching corresponding for this URL link After, start timer and start timing, when timing reach 12 little time, and when within these 12 hours, user does not triggers browsing instructions, Then content of pages corresponding for this URL link is deleted by this terminal from this locality.
This content of pages of above-mentioned statistics at local caching duration, when this content of pages local caching duration more than or During equal to predetermined threshold value, this content of pages is deleted from this locality, so, the memory space of this locality can be saved.
Certainly, it should be noted that in embodiments of the present invention, it is only to add up this content of pages at this by intervalometer Illustrate, in another embodiment as a example by the caching duration on ground, it is also possible to add up this content of pages otherwise at this The caching duration on ground, for example, it is also possible to by application such as the stopwatches of self configuration in this terminal to this content of pages in this locality Caching duration is added up, and this is not limited by the embodiment of the present invention.
Step 206: when detecting that the page corresponding to this URL link is closed, by content of pages corresponding for this URL link Delete from this locality.
That is to say, when detecting that the page corresponding to this URL link is closed, illustrate that user may browse this page Face content, in this case, terminal need not there is the content of pages that this URL link is corresponding again, and therefore, this terminal can be by Content of pages corresponding to this URL link is deleted from this locality.
Above-mentioned when detecting that the page corresponding to this URL link is closed, by content of pages corresponding for this URL link from this Ground is deleted, i.e. content of pages browsed for user is deleted by this terminal in time from this locality, has reached equally to save local storage The effect in space.
It addition, during above-mentioned realization, before obtaining this URL link, or, in the process obtaining this URL link In, this terminal is also possible to perform other operation, for example, it is also possible to carry out voice communication, transmission by this application based on this application Instant message or uploading pictures etc., in that case, perform the speed of this generic operation, the present invention to not affect this application Embodiment, when this generic operation being detected, suspends the operation obtaining content of pages corresponding to this URL link.
That is to say, when the out of Memory obtained in addition to URL link being detected, suspend this URL link of acquisition corresponding The operation of content of pages, when no longer acquisition out of Memory in addition to URL link being detected, continues to obtain this URL link pair The content of pages answered.
Above-mentioned when detecting that this terminal obtains the out of Memory in addition to URL link based on this application, suspend to obtain and be somebody's turn to do The operation of the content of pages that URL link is corresponding, so, it is to avoid impact obtains the operating rate of out of Memory, it is ensured that application makes Fluency, that is to say, improve the practicality of this acquisition content of pages.
In embodiments of the present invention, when terminal receives assigned operation based on application, illustrate that user may browse this The page that URL link in application is corresponding, to this end, before terminal obtains current time and during the nearest appointment of distance current time Between the URL link of this application in section, and obtain the content of pages that this URL link is corresponding, afterwards, in the page that this terminal will obtain Hold caching to local, in order to when user wants to browse the page corresponding to this URL link, directly can obtain this URL from this locality The content of pages that link is corresponding, that is to say, when user wants to browse content of pages corresponding to this URL link, can click on this URL link is to trigger browsing instructions, when this terminal receives this browsing instructions, and this URL link pair that this locality is cached in advance The content of pages answered shows in the current display interface of this application, so, even in the case of network is poor, eventually End still can show the content of pages that this URL link is corresponding glibly, improves display speed.
Fig. 3 A is the structural representation according to a kind of device obtaining content of pages shown in an exemplary embodiment, and this obtains The device taking content of pages can be by software, hardware or both be implemented in combination with.The device of this acquisition content of pages can wrap Include:
First acquisition module 310, for when receiving assigned operation based on application, before obtaining current time and distance What current time was nearest specifies the uniform resource position mark URL link specifying interface to include of time period this application interior;
Second acquisition module 320, in obtaining the page that this URL link of this first acquisition module 310 acquisition is corresponding Hold, and the content of pages caching extremely this locality that will obtain;
Display module 330, for when receiving browsing instructions based on this URL link, on the currently displaying boundary of this application Face shows the content of pages that this locally stored URL link is corresponding.
Alternatively, refer to Fig. 3 B to Fig. 3 D, this second acquisition module 320 is used for:
Based on this URL link, generate content of pages and obtain request;
Send this content of pages to server and obtain request so that this server to obtain and return this URL link corresponding Content of pages;
Receive the content of pages that this server sends, and the content of pages of reception is defined as the page that this URL link is corresponding Face content.
Alternatively, this device also includes:
Whether judge module 340, be wireless network for judging the network being currently accessed;
This second acquisition module 320, is additionally operable to, in the case of the network being currently accessed is wireless network, obtain this URL The content of pages that link is corresponding.
Alternatively, this content of pages obtains request and carries appointment numerical value, and this appointment numerical value is used for indicating this server when inspection Measure content of pages corresponding to this URL link and include obtaining during video data the content of pages of this appointment numerical values recited.
Alternatively, this device also includes:
Statistical module 350, for adding up this content of pages at local caching duration;
Removing module 360, is used for when this content of pages is when local caching duration is more than or equal to predetermined threshold value, should Content of pages is deleted from this locality.
Alternatively, this device also includes:
Suspend module 370, for when the out of Memory obtained in addition to URL link being detected, suspending this URL of this acquisition The operation of the content of pages that link is corresponding;
This second acquisition module 320, is additionally operable to, when no longer acquisition out of Memory in addition to URL link being detected, continue The content of pages that continuous this URL link of acquisition is corresponding.
Alternatively, this removing module 360 is additionally operable to:
When detecting that the page corresponding to this URL link is closed, content of pages corresponding for this URL link is deleted from this locality Remove.
In embodiments of the present invention, when terminal receives assigned operation based on application, illustrate that user may browse this The page that URL link in application is corresponding, to this end, before terminal obtains current time and during the nearest appointment of distance current time Between the URL link of this application in section, and obtain the content of pages that this URL link is corresponding, afterwards, in the page that this terminal will obtain Hold caching to local, in order to when user wants to browse the page corresponding to this URL link, directly can obtain this URL from this locality The content of pages that link is corresponding, that is to say, when user wants to browse content of pages corresponding to this URL link, can click on this URL link is to trigger browsing instructions, when this terminal receives this browsing instructions, and this URL link pair that this locality is cached in advance The content of pages answered shows in the current display interface of this application, so, even in the case of network is poor, eventually End still can show the content of pages that this URL link is corresponding glibly, improves display speed.
It should be understood that the device obtaining content of pages that above-described embodiment provides is in the side realizing obtaining content of pages During method, only it is illustrated with the division of above-mentioned each functional module, in actual application, can be as desired by above-mentioned functions Distribution is completed by different functional modules, the internal structure of equipment will be divided into different functional modules, to complete above retouching The all or part of function stated.It addition, the device obtaining content of pages of above-described embodiment offer and acquisition content of pages Embodiment of the method belongs to same design, and it implements process and refers to embodiment of the method, repeats no more here.
Fig. 4 is the block diagram according to a kind of device 400 obtaining content of pages shown in an exemplary embodiment.Such as, dress Putting 400 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, medical treatment Equipment, body-building equipment, personal digital assistant etc..
With reference to Fig. 4, device 400 can include following one or more assembly: processes assembly 402, memorizer 404, power supply Assembly 406, multimedia groupware 408, audio-frequency assembly 410, the interface 412 of input/output (I/O), sensor cluster 414, and Communications component 416.
Process assembly 402 and generally control the integrated operation of device 400, such as with display, call, data communication, phase The operation that machine operation and record operation are associated.Process assembly 402 and can include that one or more processor 420 performs to refer to Order, to complete all or part of step of above-mentioned method.Additionally, process assembly 402 can include one or more module, just Mutual in process between assembly 402 and other assemblies.Such as, process assembly 402 and can include multi-media module, many to facilitate Media component 404 and process between assembly 402 mutual.
Memorizer 404 is configured to store various types of data to support the operation at device 400.Showing of these data Example includes any application program for operation on device 400 or the instruction of method, contact data, telephone book data, disappears Breath, picture, video etc..Memorizer 404 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), erasable compile Journey read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash Device, disk or CD.
The various assemblies that power supply module 406 is device 400 provide power supply.Power supply module 406 can include power management system System, one or more power supplys, and other generate, manage and distribute, with for device 400, the assembly that power supply is associated.
The screen of one output interface of offer that multimedia groupware 408 is included between described device 400 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive the input signal from user.Touch panel includes one or more touch sensing Device is with the gesture on sensing touch, slip and touch panel.Described touch sensor can not only sense touch or sliding action Border, but also detect the persistent period relevant to described touch or slide and pressure.In certain embodiments, many matchmakers Body assembly 408 includes a front-facing camera and/or post-positioned pick-up head.When device 400 is in operator scheme, such as screening-mode or During video mode, front-facing camera and/or post-positioned pick-up head can receive the multi-medium data of outside.Each front-facing camera and Post-positioned pick-up head can be a fixing optical lens system or have focal length and optical zoom ability.
Audio-frequency assembly 410 is configured to output and/or input audio signal.Such as, audio-frequency assembly 410 includes a Mike Wind (MIC), when device 400 is in operator scheme, during such as call model, logging mode and speech recognition mode, mike is joined It is set to receive external audio signal.The audio signal received can be further stored at memorizer 404 or via communication set Part 416 sends.In certain embodiments, audio-frequency assembly 410 also includes a speaker, is used for exporting audio signal.
I/O interface 412 provides interface for processing between assembly 402 and peripheral interface module, above-mentioned peripheral interface module can To be keyboard, put striking wheel, button etc..These buttons may include but be not limited to: home button, volume button, start button and lock Set button.
Sensor cluster 414 includes one or more sensor, for providing the state of various aspects to comment for device 400 Estimate.Such as, what sensor cluster 414 can detect device 400 opens/closed mode, the relative localization of assembly, such as described Assembly is display and the keypad of device 400, and sensor cluster 414 can also detect device 400 or 400 1 assemblies of device Position change, the presence or absence that user contacts with device 400, device 400 orientation or acceleration/deceleration and device 400 Variations in temperature.Sensor cluster 414 can include proximity transducer, is configured to when not having any physical contact detect The existence of neighbouring object.Sensor cluster 414 can also include optical sensor, such as CMOS or ccd image sensor, is used for becoming Use as in application.In certain embodiments, this sensor cluster 414 can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 416 is configured to facilitate the communication of wired or wireless mode between device 400 and other equipment.Device 400 can access wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.An exemplary enforcement In example, communication component 416 receives the broadcast singal from external broadcasting management system or broadcast related information via broadcast channel. In one exemplary embodiment, described communications component 416 also includes near-field communication (NFC) module, to promote junction service.Example As, can be based on RF identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, Bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 400 can be by one or more application specific integrated circuits (ASIC), numeral letter Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components realize, be used for performing said method.
In the exemplary embodiment, a kind of non-transitory computer-readable recording medium including instruction, example are additionally provided As included the memorizer 404 of instruction, above-mentioned instruction can have been performed said method by the processor 420 of device 400.Such as, Described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is by the process of mobile terminal When device performs so that mobile terminal is able to carry out a kind of method obtaining content of pages, and the method includes:
When receiving assigned operation based on application, before obtaining current time and when the appointment that current time is nearest Between in section this application specify the uniform resource position mark URL link that interface includes;
Obtain the content of pages that this URL link is corresponding, and the content of pages caching extremely this locality that will obtain;
When receiving browsing instructions based on this URL link, show locally stored in the current display interface of this application Content of pages corresponding to this URL link.
Alternatively, obtain the content of pages that this URL link is corresponding, including:
Based on this URL link, generate content of pages and obtain request;
Send this content of pages to server and obtain request so that this server to obtain and return this URL link corresponding Content of pages;
Receive the content of pages that this server sends, and the content of pages of reception is defined as the page that this URL link is corresponding Face content.
Alternatively, before obtaining the content of pages that this URL link is corresponding, also include:
Judge whether the network being currently accessed is wireless network;
If the network being currently accessed is wireless network, then perform the step of content of pages corresponding to this URL link of this acquisition.
Alternatively, this content of pages obtains request and carries appointment numerical value, and this appointment numerical value is used for indicating this server when inspection Measure content of pages corresponding to this URL link and include obtaining during video data the content of pages of this appointment numerical values recited.
Alternatively, the content of pages obtained is cached after this locality, also includes:
Add up this content of pages at local caching duration;
When this content of pages is when local caching duration is more than or equal to predetermined threshold value, this content of pages is deleted from this locality Remove.
Alternatively, the method also includes:
When the out of Memory obtained in addition to URL link being detected, suspend in the page that this URL link of this acquisition is corresponding The operation held;
When no longer acquisition out of Memory in addition to URL link being detected, continue to obtain the page that this URL link is corresponding Content.
Alternatively, the current display interface of this application shows the content of pages that this locally stored URL link is corresponding Afterwards, also include:
When detecting that the page corresponding to this URL link is closed, content of pages corresponding for this URL link is deleted from this locality Remove.
In embodiments of the present invention, when terminal receives assigned operation based on application, illustrate that user may browse this The page that URL link in application is corresponding, to this end, before terminal obtains current time and during the nearest appointment of distance current time Between the URL link of this application in section, and obtain the content of pages that this URL link is corresponding, afterwards, in the page that this terminal will obtain Hold caching to local, in order to when user wants to browse the page corresponding to this URL link, directly can obtain this URL from this locality The content of pages that link is corresponding, that is to say, when user wants to browse content of pages corresponding to this URL link, can click on this URL link is to trigger browsing instructions, when this terminal receives this browsing instructions, and this URL link pair that this locality is cached in advance The content of pages answered shows in the current display interface of this application, so, even in the case of network is poor, eventually End still can show the content of pages that this URL link is corresponding glibly, improves display speed.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can pass through hardware Completing, it is also possible to instruct relevant hardware by program and complete, described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read only memory, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all spirit in the present invention and Within principle, any modification, equivalent substitution and improvement etc. made, should be included within the scope of the present invention.

Claims (14)

1. the method obtaining content of pages, it is characterised in that described method includes:
When receiving assigned operation based on application, obtain before current time and appointment time period that distance current time is nearest The uniform resource position mark URL specifying interface to include of interior described application links;
Obtain the content of pages that described URL link is corresponding, and the content of pages caching extremely this locality that will obtain;
When receiving browsing instructions based on described URL link, show locally stored in the current display interface of described application Content of pages corresponding to described URL link.
2. the method for claim 1, it is characterised in that the content of pages that the described URL link of described acquisition is corresponding, bag Include:
Based on described URL link, generate content of pages and obtain request;
Send described content of pages to server and obtain request, so that described server obtains and return described URL link correspondence Content of pages;
Receive the content of pages that described server sends, and the content of pages of reception is defined as the page that described URL link is corresponding Face content.
3. the method for claim 1, it is characterised in that before the content of pages that the described URL link of described acquisition is corresponding, Also include:
Judge whether the network being currently accessed is wireless network;
If the network being currently accessed is wireless network, then perform the step of content of pages corresponding to the described URL link of described acquisition.
4. method as claimed in claim 2, it is characterised in that described content of pages obtains request and carries appointment numerical value, described Specify numerical value for indicating described server when detecting that content of pages corresponding to described URL link obtains when including video data Take the content of pages of described appointment numerical values recited.
5. the method for claim 1, it is characterised in that described by after the content of pages caching obtained to this locality, goes back Including:
Add up described content of pages at local caching duration;
When described content of pages is when local caching duration is more than or equal to predetermined threshold value, described content of pages is deleted from this locality Remove.
6. the method for claim 1, it is characterised in that described method also includes:
When the out of Memory obtained in addition to URL link being detected, suspend in the page that the described URL link of described acquisition is corresponding The operation held;
When no longer acquisition out of Memory in addition to URL link being detected, continue to obtain in the page that described URL link is corresponding Hold.
7. the method for claim 1, it is characterised in that described show this locality in the current display interface of described application After the content of pages corresponding to described URL link of storage, also include:
When detecting that the page corresponding to described URL link is closed, content of pages corresponding for described URL link is deleted from this locality Remove.
8. the device obtaining content of pages, it is characterised in that described device includes:
First acquisition module, is used for when receiving assigned operation based on application, before obtaining current time and when current Between nearest specify the uniform resource position mark URL link specifying interface to include of described application in the time period;
Second acquisition module, for obtaining the content of pages that the described URL link of described first acquisition module acquisition is corresponding, and will The content of pages caching obtained is to local;
Display module, for when receiving browsing instructions based on described URL link, in the current display interface of described application Show the content of pages that locally stored described URL link is corresponding.
9. device as claimed in claim 8, it is characterised in that described second acquisition module is used for:
Based on described URL link, generate content of pages and obtain request;
Send described content of pages to server and obtain request, so that described server obtains and return described URL link correspondence Content of pages;
Receive the content of pages that described server sends, and the content of pages of reception is defined as the page that described URL link is corresponding Face content.
10. device as claimed in claim 8, it is characterised in that described device also includes:
Whether judge module, be wireless network for judging the network being currently accessed;
Described second acquisition module, is additionally operable to, in the case of the network being currently accessed is wireless network, obtain described URL link Corresponding content of pages.
11. devices as claimed in claim 9, it is characterised in that described content of pages obtains request and carries appointment numerical value, described Specify numerical value for indicating described server when detecting that content of pages corresponding to described URL link obtains when including video data Take the content of pages of described appointment numerical values recited.
12. devices as claimed in claim 8, it is characterised in that described device also includes:
Statistical module, for adding up described content of pages at local caching duration;
Removing module, for when described content of pages is when local caching duration is more than or equal to predetermined threshold value, by described page Face content is deleted from this locality.
13. devices as claimed in claim 8, it is characterised in that described device also includes:
Suspend module, for when the out of Memory obtained in addition to URL link being detected, suspending described acquisition described URL chain Connect the operation of the content of pages of correspondence;
Described second acquisition module, is additionally operable to, when no longer acquisition out of Memory in addition to URL link being detected, continue to obtain The content of pages that described URL link is corresponding.
14. devices as claimed in claim 8, it is characterised in that described removing module is additionally operable to:
When detecting that the page corresponding to described URL link is closed, content of pages corresponding for described URL link is deleted from this locality Remove.
CN201610458581.2A 2016-06-22 2016-06-22 Obtain the method and device of content of pages Pending CN106095999A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610458581.2A CN106095999A (en) 2016-06-22 2016-06-22 Obtain the method and device of content of pages

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610458581.2A CN106095999A (en) 2016-06-22 2016-06-22 Obtain the method and device of content of pages

Publications (1)

Publication Number Publication Date
CN106095999A true CN106095999A (en) 2016-11-09

Family

ID=57237574

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610458581.2A Pending CN106095999A (en) 2016-06-22 2016-06-22 Obtain the method and device of content of pages

Country Status (1)

Country Link
CN (1) CN106095999A (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106790363A (en) * 2016-11-22 2017-05-31 天脉聚源(北京)传媒科技有限公司 A kind of data cache method and device
CN106897361A (en) * 2017-01-10 2017-06-27 中电科华云信息技术有限公司 Shipping Options Page system for managing in groups and method based on tree
CN106899958A (en) * 2017-02-08 2017-06-27 努比亚技术有限公司 A kind of information download apparatus and method
CN107085617A (en) * 2017-05-31 2017-08-22 北京安云世纪科技有限公司 Application program page collecting method, device and corresponding mobile terminal
CN107203630A (en) * 2017-05-31 2017-09-26 北京安云世纪科技有限公司 Application program page collecting method, device and corresponding mobile terminal
CN107360207A (en) * 2017-05-26 2017-11-17 腾讯科技(深圳)有限公司 Submit method, interface issuing means, storage medium and electronic installation in interface
CN107748689A (en) * 2017-10-19 2018-03-02 阿里巴巴集团控股有限公司 A kind of web page display method and apparatus
CN108255898A (en) * 2017-02-20 2018-07-06 平安科技(深圳)有限公司 Page display method and device
CN109062631A (en) * 2018-07-17 2018-12-21 北京五八信息技术有限公司 Starting method, apparatus, mobile terminal and the storage medium of application program
CN109995804A (en) * 2017-12-29 2019-07-09 腾讯科技(深圳)有限公司 Display methods, information providing method and the device of target resource information
CN110287441A (en) * 2019-06-27 2019-09-27 广州华多网络科技有限公司 Detection method, device, equipment and the storage medium of page load duration
CN110709834A (en) * 2017-04-24 2020-01-17 谷歌有限责任公司 Methods, systems, and media for retrieving content associated with a link
CN111475750A (en) * 2020-03-04 2020-07-31 百度在线网络技术(北京)有限公司 Page preloading control method, device, system, equipment and storage medium
CN112100541A (en) * 2020-08-24 2020-12-18 浙江三维万易联科技有限公司 Website page element loading method and device, electronic device and storage medium
CN112784195A (en) * 2019-11-07 2021-05-11 北京沃东天骏信息技术有限公司 Page data publishing method and system
CN114860330A (en) * 2022-03-31 2022-08-05 珠海豹趣科技有限公司 Page loading method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075236A (en) * 2006-06-12 2007-11-21 腾讯科技(深圳)有限公司 Apparatus and method for accelerating browser webpage display
CN101325602A (en) * 2008-07-30 2008-12-17 广州市动景计算机科技有限公司 Method and system for pre-reading web page by micro-browser intelligently
CN102438045A (en) * 2011-12-07 2012-05-02 深圳市深信服电子科技有限公司 Method and system for pre-fetching web page, and method for accessing web page
CN103617222A (en) * 2013-11-22 2014-03-05 北京奇虎科技有限公司 Browser and method for preloading in webpages
CN103729438A (en) * 2013-12-30 2014-04-16 优视科技有限公司 Webpage preloading method and device
CN104835058A (en) * 2015-04-15 2015-08-12 华为技术有限公司 Method and device for sharing commodity link

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075236A (en) * 2006-06-12 2007-11-21 腾讯科技(深圳)有限公司 Apparatus and method for accelerating browser webpage display
CN101325602A (en) * 2008-07-30 2008-12-17 广州市动景计算机科技有限公司 Method and system for pre-reading web page by micro-browser intelligently
CN102438045A (en) * 2011-12-07 2012-05-02 深圳市深信服电子科技有限公司 Method and system for pre-fetching web page, and method for accessing web page
CN103617222A (en) * 2013-11-22 2014-03-05 北京奇虎科技有限公司 Browser and method for preloading in webpages
CN103729438A (en) * 2013-12-30 2014-04-16 优视科技有限公司 Webpage preloading method and device
CN104835058A (en) * 2015-04-15 2015-08-12 华为技术有限公司 Method and device for sharing commodity link

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106790363A (en) * 2016-11-22 2017-05-31 天脉聚源(北京)传媒科技有限公司 A kind of data cache method and device
CN106897361A (en) * 2017-01-10 2017-06-27 中电科华云信息技术有限公司 Shipping Options Page system for managing in groups and method based on tree
CN106897361B (en) * 2017-01-10 2020-06-19 中电科华云信息技术有限公司 Label page grouping management system and method based on tree structure
CN106899958A (en) * 2017-02-08 2017-06-27 努比亚技术有限公司 A kind of information download apparatus and method
CN106899958B (en) * 2017-02-08 2020-05-26 大河(深圳)信息有限公司 Information downloading device and method
CN108255898B (en) * 2017-02-20 2020-07-21 平安科技(深圳)有限公司 Page display method and device
CN108255898A (en) * 2017-02-20 2018-07-06 平安科技(深圳)有限公司 Page display method and device
CN110709834B (en) * 2017-04-24 2023-10-03 谷歌有限责任公司 Method, system and medium for retrieving content associated with links
CN110709834A (en) * 2017-04-24 2020-01-17 谷歌有限责任公司 Methods, systems, and media for retrieving content associated with a link
CN107360207A (en) * 2017-05-26 2017-11-17 腾讯科技(深圳)有限公司 Submit method, interface issuing means, storage medium and electronic installation in interface
CN107203630A (en) * 2017-05-31 2017-09-26 北京安云世纪科技有限公司 Application program page collecting method, device and corresponding mobile terminal
CN107085617B (en) * 2017-05-31 2020-11-24 北京安云世纪科技有限公司 Application page collection method and device and corresponding mobile terminal
CN107085617A (en) * 2017-05-31 2017-08-22 北京安云世纪科技有限公司 Application program page collecting method, device and corresponding mobile terminal
CN107748689A (en) * 2017-10-19 2018-03-02 阿里巴巴集团控股有限公司 A kind of web page display method and apparatus
CN109995804A (en) * 2017-12-29 2019-07-09 腾讯科技(深圳)有限公司 Display methods, information providing method and the device of target resource information
CN109062631A (en) * 2018-07-17 2018-12-21 北京五八信息技术有限公司 Starting method, apparatus, mobile terminal and the storage medium of application program
CN110287441A (en) * 2019-06-27 2019-09-27 广州华多网络科技有限公司 Detection method, device, equipment and the storage medium of page load duration
CN112784195A (en) * 2019-11-07 2021-05-11 北京沃东天骏信息技术有限公司 Page data publishing method and system
CN111475750B (en) * 2020-03-04 2021-05-28 百度在线网络技术(北京)有限公司 Page preloading control method, device, system, equipment and storage medium
CN111475750A (en) * 2020-03-04 2020-07-31 百度在线网络技术(北京)有限公司 Page preloading control method, device, system, equipment and storage medium
CN112100541A (en) * 2020-08-24 2020-12-18 浙江三维万易联科技有限公司 Website page element loading method and device, electronic device and storage medium
CN112100541B (en) * 2020-08-24 2024-04-02 三维通信股份有限公司 Method and device for loading website page element, electronic device and storage medium
CN114860330A (en) * 2022-03-31 2022-08-05 珠海豹趣科技有限公司 Page loading method and device

Similar Documents

Publication Publication Date Title
CN106095999A (en) Obtain the method and device of content of pages
CN104133852B (en) Web access method, device, server and terminal
CN104156233B (en) Light application off-line update method, device and terminal
CN104035979B (en) The method and relevant apparatus of object recommendation
CN104125162B (en) The access processing method and device of Internet resources
CN106528617B (en) A kind of method and device that Web page picture is shown
CN106126685A (en) Page loading method and device
CN109521925A (en) Icon arrangement method, mobile terminal and computer readable storage medium
CN108566332A (en) A kind of instant communication information processing method, device and storage medium
CN106020682A (en) Multi-task management method and device
CN104539812B (en) Recommendation information acquisition methods, terminal and server
CN106897937A (en) A kind of method and apparatus for showing social sharing information
CN105912450A (en) Method and device for displaying state information of application
CN106657132A (en) Method and device for accessing website
CN105515871B (en) The method and device of record log
CN109274818A (en) Method for down loading, mobile terminal and the computer storage medium of application program
CN107220059A (en) The display methods and device of application interface
CN106886357A (en) A kind of information deletion method and device
CN104050236B (en) Web site contents update reminding method, server and client side
CN110278481A (en) Picture-in-picture implementing method, terminal and computer readable storage medium
CN106156285A (en) Image display method and device
CN106210258A (en) Web access method and device
CN106339452B (en) Event response method and device
CN108900696A (en) A kind of data processing method, terminal and computer readable storage medium
CN109213398A (en) A kind of application quick start method, terminal and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20161109