CN104035921A - Information processing method and electronic devices - Google Patents

Information processing method and electronic devices Download PDF

Info

Publication number
CN104035921A
CN104035921A CN201310067457.XA CN201310067457A CN104035921A CN 104035921 A CN104035921 A CN 104035921A CN 201310067457 A CN201310067457 A CN 201310067457A CN 104035921 A CN104035921 A CN 104035921A
Authority
CN
China
Prior art keywords
data
browser page
label information
electronic equipment
buffer unit
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.)
Granted
Application number
CN201310067457.XA
Other languages
Chinese (zh)
Other versions
CN104035921B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310067457.XA priority Critical patent/CN104035921B/en
Publication of CN104035921A publication Critical patent/CN104035921A/en
Application granted granted Critical
Publication of CN104035921B publication Critical patent/CN104035921B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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 invention discloses an information processing method for reducing a burden of a system. The method includes loading a first browser page through one of at least one browser, acquiring first data of the first browser page, buffering first data in a cache unit, acquiring an input operation, responding to the input operation, setting first mark information for the first data, and saving the first data in the cache unit on the basis of the first mark information when a current browsing page is switched from the first browser page to a second browser page. The invention further discloses the other information processing method and electronic devices corresponding to the two methods respectively.

Description

A kind of information processing method and electronic equipment
Technical field
The present invention relates to computing machine and built-in field, particularly a kind of information processing method and electronic equipment.
Background technology
Along with scientific and technical development, electronic technology has also obtained development at full speed, and the kind of electronic product is also more and more, and people have also enjoyed the various facilities that development in science and technology brings.People can pass through various types of electronic equipments now, enjoy the comfortable life bringing along with development in science and technology.Such as, the electronic equipments such as mobile phone have become an indispensable part in people's life, and people can by electronic equipments such as mobile phones, to make a phone call, to send short messages etc., mode be strengthened and contacting between other people.
Present inventor is realizing in the process of the embodiment of the present application technical scheme, at least finds to exist in prior art following technical matters:
The web browser of installing in current mobile phone or PAD (panel computer) generally all can be supported windows display, and user can open multiple browser windows simultaneously, or can open multiple windows of same browser simultaneously.In the time that user opens multiple window, because once can only check one of them window, therefore user may be switched and check between different windows.If but user does not check certain page for a long time, because system resource is limited, system may be removed the buffer memory that this page is corresponding automatically, in the time that user is switched to this page again, system needs again to reload the content of this page, and system need to repeatedly operate, process is comparatively complicated, also increased the burden of system, user needs again to wait for for a long time simultaneously, affects user and experiences.
Summary of the invention
The embodiment of the present invention provides a kind of information processing method and electronic equipment, for solving the heavier technical matters of prior art system burden, has realized the technique effect of mitigation system burden.
A kind of information processing method, described method is applied to the electronic equipment with buffer unit and display module, at least one browser is installed in described electronic equipment, described at least one browser can be supported browsing of browser page, in the time that the current browsing pages on described display module is switched to second browser page different from described the first browser page from the first browser page, described electronic equipment can load the second data that described the second browser page is corresponding, can remove the first data that the first browser page described in described buffer unit is corresponding simultaneously, said method comprising the steps of:
Load described the first browser page by a kind of browser in described at least one browser;
Obtain and the first data of described the first browser page, and by described the first data buffer storage at described buffer unit;
Obtain input operation, and described input operation is responded, for described the first data arrange the first label information;
In the time that current browsing pages is switched to described the second browser page from described the first browser page, preserve described the first data in described buffer unit based on described the first label information.
Preferably, before preserving described the first data in described buffer unit based on described the first label information, also comprise step: in the time that current browsing pages is switched to described the second browser page from described the first browser page, judge whether described the first data have described the first label information;
The step of preserving described the first data in described buffer unit based on described the first label information comprises: in the time that described the first data have described the first label information, preserve described the first data in described buffer unit.
Preferably, described the first data are the first document object model dom tree.
Preferably, the step that for described the first data, the first label information is set comprises: the each element comprising for described the first dom tree arranges described the first label information.
Preferably, after described first data of preserving based on described the first label information in described buffer unit, also comprise step:
Current browsing pages is switched to described the first browser page from described the second browser page;
Show described the first browser page according to described the first data.
Preferably, after described first data of preserving based on described the first label information in described buffer unit, also comprise step:
Current browsing pages is switched to the 3rd browser page from described the second browser page, and described the first browser page, described the second browser page and described the 3rd browser page are different between two;
Remove described the second data in described buffer unit, and preserve described the first data in described buffer unit according to described the first label information.
Preferably, before described the second data of removing in described buffer unit, also comprise step: judge whether described the second data are provided with described the first label information;
The step of removing described the second data in described buffer unit comprises: in the time that described the second data do not arrange described the first label information, remove described the second data.
Preferably, before preserving described the first data in described buffer unit according to described the first label information, also comprise step: judge whether remaining space capacity in described buffer unit is not less than and the capacity of corresponding the 3rd data of described the 3rd browser page;
The step of preserving described the first data in described buffer unit according to described the first label information comprises: in the time that described remaining space capacity is not less than the capacity of described the 3rd data, preserve described the first data in described buffer unit according to described the first label information.
Preferably, judge remaining space capacity in described buffer unit whether be not less than with the capacity of corresponding the 3rd data of described the 3rd browser page after also comprise step: in the time that described remaining space capacity is less than the capacity of described the 3rd data, remove described the 3rd data, or remove the Partial Elements in each element included in described the 3rd data, so that described buffer unit can be stored described the 3rd data.
A kind of electronic equipment, described electronic equipment has buffer unit and display module, at least one browser is installed in described electronic equipment, described at least one browser can be supported browsing of browser page, in the time that the current browsing pages on described display module is switched to second browser page different from described the first browser page from the first browser page, described electronic equipment can load the second data that described the second browser page is corresponding, can remove the first data that the first browser page described in described buffer unit is corresponding simultaneously, described electronic equipment comprises:
Load-on module, for loading described the first browser page by a kind of browser of described at least one browser;
Acquisition module, for obtaining and the first data of described the first browser page, and by described the first data buffer storage at described buffer unit;
Module is set, for obtaining input operation, and described input operation is responded, for described the first data arrange the first label information;
Operational module, in the time that current browsing pages is switched to described the second browser page from described the first browser page, preserves described the first data in described buffer unit based on described the first label information.
Preferably, described electronic equipment also comprises judge module, in the time that current browsing pages is switched to described the second browser page from described the first browser page, judges whether described the first data have described the first label information;
Described operational module specifically for: in the time that described the first data have described the first label information, preserve described the first data in described buffer unit.
Preferably, described the first data are the first dom tree.
Preferably, described arrange module specifically for: the each element comprising for described the first dom tree arranges described the first label information.
Preferably, described electronic equipment also comprises handover module, for current browsing pages is switched to described the first browser page from described the second browser page;
Described display module is for showing described the first browser page according to described the first data.
Preferably, described electronic equipment also comprises handover module, for current browsing pages is switched to the 3rd browser page from described the second browser page, described the first browser page, described the second browser page and described the 3rd browser page are different between two;
Described operational module specifically also for: remove described second data of described buffer unit, and preserve described the first data in described buffer unit according to described the first label information.
Preferably, described electronic equipment also comprises judge module, for judging whether described the second data are provided with described the first label information;
Described operational module specifically also for: in the time that described the second data do not arrange described the first label information, remove described the second data.
Preferably, described electronic equipment also comprises judge module, for judging whether the remaining space capacity of described buffer unit is not less than and the capacity of corresponding the 3rd data of described the 3rd browser page;
Described operational module specifically also for: in the time that described remaining space capacity is not less than the capacity of described the 3rd data, preserve described the first data in described buffer unit according to described the first label information.
Preferably, described operational module specifically also for: in the time that described remaining space capacity is less than the capacity of described the 3rd data, remove described the 3rd data, or remove the Partial Elements in each element included in described the 3rd data, so that described buffer unit can be stored described the 3rd data.
Information processing method in the embodiment of the present invention can be applied to the electronic equipment with buffer unit and display module, at least one browser is installed in described electronic equipment, described at least one browser can be supported browsing of browser page, in the time that the current browsing pages on described display module is switched to second browser page different from described the first browser page from the first browser page, described electronic equipment can load the second data that described the second browser page is corresponding, can remove the first data corresponding to the above first browser page of described buffer unit simultaneously, described method can comprise: load described the first browser page by a kind of browser in described at least one browser, obtain and the first data of described the first browser page, and by described the first data buffer storage at described buffer unit, obtain input operation, and described input operation is responded, for described the first data arrange the first label information, in the time that current browsing pages is switched to described the second browser page from described the first browser page, preserve described the first data in described buffer unit based on described the first label information.
In the embodiment of the present invention, in the time obtaining described first data corresponding with described the first browser page, can described the first label information be set for described the first data, when current browsing pages in the display module of described electronic equipment is switched to described the second browser page from described the first browser page like this, can preserve described first data of storing in described buffer unit according to described the first label information, described the first data are not removed, for example described the first data can be put into finally and remove, or can not remove described the first data, like this, be convenient to user and check at any time described the first browser page, described electronic equipment also without reloading described the first browser page at every turn in the time that other browser pages switch back described the first browser page, reduce the workload of described electronic equipment, alleviate the burden of described electronic equipment, for user also more for convenience, in the time checking described the first browser page, can not run into or the less situation about reloading that runs into, reduce user's stand-by period, improving user experiences.
Brief description of the drawings
Fig. 1 is the main process flow diagram of a kind of information processing method in the embodiment of the present invention;
Fig. 2 is the main process flow diagram of another kind of information processing method in the embodiment of the present invention;
Fig. 3 is the detailed structure view of a kind of electronic equipment in the embodiment of the present invention;
Fig. 4 is the primary structure figure of another kind of electronic equipment in the embodiment of the present invention.
Embodiment
Information processing method in the embodiment of the present invention can be applied to the electronic equipment with buffer unit and display module, at least one browser is installed in described electronic equipment, described at least one browser can be supported browsing of browser page, in the time that the current browsing pages on described display module is switched to second browser page different from described the first browser page from the first browser page, described electronic equipment can load the second data that described the second browser page is corresponding, can remove the first data corresponding to the above first browser page of described buffer unit simultaneously, described method can comprise: load described the first browser page by a kind of browser in described at least one browser, obtain and the first data of described the first browser page, and by described the first data buffer storage at described buffer unit, obtain input operation, and described input operation is responded, for described the first data arrange the first label information, in the time that current browsing pages is switched to described the second browser page from described the first browser page, preserve described the first data in described buffer unit based on described the first label information.
In the embodiment of the present invention, in the time obtaining described first data corresponding with described the first browser page, can described the first label information be set for described the first data, when current browsing pages in the display module of described electronic equipment is switched to described the second browser page from described the first browser page like this, can preserve described first data of storing in described buffer unit according to described the first label information, described the first data are not removed, for example described the first data can be put into finally and remove, or can not remove described the first data, like this, be convenient to user and check at any time described the first browser page, described electronic equipment also without reloading described the first browser page at every turn in the time that other browser pages switch back described the first browser page, reduce the workload of described electronic equipment, alleviate the burden of described electronic equipment, for user also more for convenience, in the time checking described the first browser page, can not run into or the less situation about reloading that runs into, reduce user's stand-by period, improving user experiences.
Referring to Fig. 1, a kind of information processing method is provided in the embodiment of the present invention, described method can be applied to the electronic equipment with buffer unit and display module, in described electronic equipment, install and can have at least one browser, described at least one browser can be supported browsing of browser page, in the time that the current browsing pages on described display module is switched to second browser page different from described the first browser page from the first browser page, described electronic equipment can load the second data that described the second browser page is corresponding, can remove the first data that the first browser page described in described buffer unit is corresponding simultaneously.The main flow process of described method is as follows:
Step 101: load described the first browser page by a kind of browser in described at least one browser.
In the embodiment of the present invention, described electronic equipment can be the different electronic equipment such as mobile phone, PAD (panel computer).
In the embodiment of the present invention, in described electronic equipment, a kind of browser can be only installed, or multiple browser also can be installed.The browser page showing on described display module can be the browser page based on same browser, can be also the browser page based on different browsers., described the first browser page and described the second browser page can be corresponding to same browsers, or also can correspond respectively to different browsers.
For example, described electronic equipment can obtain the first operation for opening described the first browser page, is obtaining after described the first operation, and described electronic equipment can respond described the first operation, loads described the first browser page.
Step 102: obtain and the first data of described the first browser page, and by described the first data buffer storage at described buffer unit.
Described electronic equipment, in the time loading described the first browser page, can obtain first data corresponding with described the first browser page, and described the first data are cache contents corresponding to described the first browser page.Preferably, in the embodiment of the present invention, each browser page can be set by a corresponding DOM (document object model), and described the first data can be first dom trees corresponding with described the first browser page.
In the embodiment of the present invention, in a dom tree, can include multiple elements, wherein each element is all elements that corresponding browser page is corresponding.
In the embodiment of the present invention, obtaining after described the first data, described electronic equipment can be stored in described the first data in described buffer unit.
In the embodiment of the present invention, described electronic equipment is loading after N browser page, can the corresponding corresponding cache contents of each browser page of determining in a described N browser page, get final product corresponding definite N cache contents, and also can be called N data.After definite described N data, described electronic equipment can all arrange described the first label information for a described N data.Like this, described electronic equipment can judge in the time need to removing the data of storing in described buffer unit, if judgement determines that the data that wherein have are with described the first label information, for example judgement is determined wherein has the first data with described the first label information, can postpone removing described the first data, can preserve described the first data according to described the first label information, for example, can first remove other data without described the first label information, after data dump without described the first label information by other, if system resource abundance, without removing with described the first data, if and system resource is still not enough, can continue again to remove the data with described the first label information.
Optionally, first described electronic equipment before removing each data of storing in described buffer unit, can judge, judge that whether these data that will be eliminated are with described the first label information.If judgement determines that these data that will be eliminated are with described the first label information, described electronic equipment can temporarily not removed these data, can preserve these data, and continues to remove other data.
Step 103: obtain input operation, and described input operation is responded, for described the first data arrange the first label information.
Described electronic equipment loads after described the first browser page, described the first browser page can be presented in described display module, and user can check described the first browser page in described display module.
User is in the time checking described the first browser page, may think and oneself need regular described the first browser page of checking, if switching back described the first browser page all needs to re-start loading, obviously very inconvenient at every turn, need to wait for the long period.
Therefore, user can carry out described input operation for described the first browser page, and described electronic equipment, obtaining after described input operation, can respond described input operation, for described the first data arrange described the first label information.
For example, a kind of possible mode of obtaining described input operation can be: described electronic equipment can provide an Option Box to user, select whether will described the first label information be set for described the first browser page for user, wherein, for described the first browser page arranges described the first label information, namely for described the first data, described the first label information is set.For example, in described Option Box, can there is following word content: " whether needing to preserve the cache contents of the first browser page ", and can provide two options, be respectively "Yes" and "No", user can select, and user can carry out described input operation, and submits selection result to, submit to after selection result user, described electronic equipment can obtain user's described input operation.If user has selected "Yes", described electronic equipment can respond described input operation, for described the first data arrange the first label information, if and user has selected "No", described electronic equipment can respond described input operation, for described the first data, the first label information is not set.
For example, a kind of possible mode of obtaining described input operation can be: the specific keys that a hardware is provided for user on described electronic equipment, or on described the first browser page, provide the specific keys of a software for user, no matter be hardware button or software keys, as long as user presses this button, be considered as user and carried out described input operation, described electronic equipment can obtain described input operation, and can respond described input operation, for described the first data arrange described the first label information.
Or, also can there is other the mode of obtaining described input operation, the present invention does not limit this.
In the embodiment of the present invention, a kind of possible mode that described the first label information is set for described the first data can be: the each element comprising for corresponding described the first dom tree of described the first browser page arranges described the first label information.
Wherein, in the embodiment of the present invention, each browser page all can a corresponding dom tree, includes the each element in the browser page corresponding with it in a dom tree.Being data when described the first label information is set, each element that can comprise for this dom tree all arranges described the first label information.
Preferably, in the embodiment of the present invention, described the first label information can include the sub-label information of at least one kind, wherein the corresponding priority difference of the sub-label information of each kind.For example, can include the first sub-label information and the second sub-label information in described the first label information, the priority of described the first sub-label information is higher than the priority of described the second sub-label information.
Like this, being each element that a dom tree comprises when described the first label information is set, the different elements that can comprise for this dom tree arrange different sub-label informations.If described electronic equipment is being removed still deficiency of system resource after other cache contents, each element that the dom tree that needs removing to have described the first label information comprises, described electronic equipment also can be removed according to the priority of the corresponding sub-label information of each element in a dom tree.
For example, in this dom tree, there are two elements, be respectively the first element and the second element, described the first element is provided with described the first sub-label information, described the second element is provided with described the second sub-label information, the priority of described the first sub-label information is higher than the priority of described the second sub-label information, first described electronic equipment can remove described the second element, after described the second element is removed, described electronic equipment can continue to judge that whether system resource is sufficient, if system resource is sufficient after described the second element is removed, can be without removing again described the first element, if system resource is still not enough after described the second element is removed, can continue to remove described the first element.Wherein, in the time that sub-label information is set, can be arranged voluntarily by user, or also can automatically be arranged according to the significance level of each element by system.
For example, in a browser page, important content may be word segment, and the contents such as picture, video may be time part and parcels, can the first sub-label information be set for this browser page Chinese word part corresponding element in dom tree, and for the corresponding element in dom tree of picture part in this browser page arranges the second sub-label information, the priority of described the first sub-label information is higher than the priority of described the second sub-label information.For example, in this dom tree, there are two elements, be respectively the first element and the second element, wherein said the first element is the element that word segment is corresponding, described the first element is provided with described the first sub-label information, described the second element is element corresponding to picture part, and described the second element is provided with described the second sub-label information.Described electronic equipment is in the time of the each element that need to remove in this dom tree, can first remove described the second element, after described the second element is removed, described electronic equipment can continue to judge that whether system resource is sufficient, if system resource is sufficient after described the second element is removed, can, without removing again described the first element, if system resource is still not enough after described the second element is removed, can continue to remove described the first element.
Like this, can will preserve with the data of described the first label information, postpone removing, can not remove or put it to finally and remove, reduce on the one hand the workload of described electronic equipment, mitigation system burden, on the other hand, user is being that a browser page is while arranging described the first label information, what select can be that oneself often need to be checked or oneself comparatively interested browser page, the corresponding data of these browser pages are preserved, user is switched while checking between browser page, described electronic equipment can ensure that these browser pages are lower without the frequency of reloading or reloading as far as possible, the required workload of described electronic equipment is less, and user's stand-by period is shorter, switch and can directly check, more can meet consumers' demand.
And, in a corresponding dom tree of browser page, described first label information of different priorities also can be set for different elements, like this, even in the time that needs removing has the cache contents of described the first label information, also can remove according to the different priorities of different elements, first element for low priority can be removed, after the element of low priority is removed, if system resource abundance is determined in judgement, can remove again the element of high priority, whether the element of low priority lacks generally can not have influence on user's checking this browser page, like this, even if there is Partial Elements to be eliminated, user still can normally check the content of this browser page, meet consumers' demand as far as possible.
Step 104: in the time that current browsing pages is switched to described the second browser page from described the first browser page, preserve described the first data in described buffer unit based on described the first label information.
In the embodiment of the present invention, in the time that current browsing pages is switched to described the second browser page from described the first browser page, for example described electronic equipment is by receiving user's operation, current browsing pages has been switched to described the second browser page from described the first browser page, first described electronic equipment can inquire described the first data that described the first browser page is corresponding in described buffer unit, inquiring after described the first data, described electronic equipment can judge, judge whether described the first data have described the first label information.If judgement determines that described the first data have described the first label information, described electronic equipment can be preserved described the first data in described buffer unit according to described the first label information.
In the embodiment of the present invention, preserving after described the first data according to described the first label information, if described electronic equipment receives again user's operation, current browsing pages has been switched back to described the first browser page from described the second browser page, described electronic equipment can directly show described the first browser page according to described the first data, without re-starting loading, display speed is very fast, can make user view quickly oneself need content.
Simultaneously, preserving after described the first data according to described the first label information, if described electronic equipment receives again user's operation, current browsing pages has been switched back to described the first browser page from described the second browser page, described electronic equipment can be inquired about second data corresponding with described the second browser page in described buffer unit, inquiring after described the second data, described electronic equipment can judge whether described the second data have described the first label information, if judgement determines that described the second data have described the first label information, can preserve described the second data in described buffer unit according to described the first label information, if judgement determines that described the second data do not have described the first label information, described second data of storing in described buffer unit can be removed.
In the embodiment of the present invention, preserving after described the first data according to described the first label information, if described electronic equipment receives again user's operation, current browsing pages is switched to the 3rd browser page from described the second browser page, wherein, described the first browser page, described the second browser page and described the 3rd browser page are different between two, described electronic equipment can be inquired about first data corresponding with described the first browser page and second data corresponding with described the second browser page in described buffer unit, inquiring after described the first data and described the second data, described electronic equipment can judge respectively whether described the first data have described the first label information, and whether described the second data have described the first label information.If judgement determines that described the first data have described the first label information, can preserve described the first data in described buffer unit according to described the first label information, if judgement determines that described the first data do not have described the first label information, described first data of storing in described buffer unit can be removed.Same, if judgement determines that described the second data have described the first label information, can preserve described the second data in described buffer unit according to described the first label information, if judgement determines that described the second data do not have described the first label information, described second data of storing in described buffer unit can be removed.In the present embodiment, described the first data have described the first label information, described electronic equipment can be preserved described first data of storing in described buffer unit according to described the first label information, and described the second data do not have described the first label information, described electronic equipment can be removed described second data of storing in described buffer unit.
And, preserving after described the first data according to described the first label information, if described electronic equipment receives again user's operation, current browsing pages is switched to the 3rd browser page from described the second browser page, whether described electronic equipment can be inquired about in described buffer unit three data corresponding with described the 3rd browser page, if store described the 3rd data in described buffer unit, described electronic equipment can directly show described the 3rd browser page according to described the 3rd data, if do not store described the 3rd data in described buffer unit, described electronic equipment need to load described the 3rd browser page, obtain described three data corresponding with described the 3rd browser page, and described the 3rd data that obtain can be stored in described buffer unit.
Preferably, in the embodiment of the present invention, preserve after described the first data according to described the first label information, if described electronic equipment receives again user's operation, current browsing pages is switched to the 3rd browser page from described the second browser page, and described electronic equipment can be preserved described the first data in described buffer unit according to described the first label information.And before preserving described the first data, first described electronic equipment can judge whether the remaining space capacity in described buffer unit is not less than the capacity of described the 3rd data that described the 3rd browser page is corresponding, if judgement is determined described remaining space capacity and is not less than the capacity of described the 3rd data, described electronic equipment can be preserved described the first data, and can normally preserve described the 3rd data.If the definite described remaining space capacity of judgement is less than the capacity of described the 3rd data, described electronic equipment may need described the first data in described buffer unit also to remove.
Preferably, the first data described in the embodiment of the present invention are corresponding to the first dom tree.If described electronic equipment need to be removed described the first data, each element that described the first dom tree can be comprised is all removed.
Preferably, described in the embodiment of the present invention, the first data are corresponding to the first dom tree, and described electronic equipment is in the time that the each element comprising for described the first dom tree arranges described the first label information, the different elements that can comprise for described the first dom tree have the sub-label information of different priorities according to its significance level being provided with.Described electronic equipment is in the time removing described the first data, first can remove the lower element of priority of sub-label information corresponding in described the first dom tree, after the lower element of priority of sub-label information corresponding in described the first dom tree is removed, described electronic equipment can continue to judge whether described remaining space capacity is not less than the capacity of described the 3rd data, if now described remaining space capacity is not less than the capacity of described the 3rd data, can stop the removing to described the first data, in described the first data, also retain Partial Elements, in the time that user is switched back described the first browser page, described electronic equipment still can ensure the main contents of described the first browser page to present to user.And if now described remaining space capacity is still less than the capacity of described the 3rd data, described electronic equipment can continue to remove the higher element of priority of sub-label information corresponding in described the first dom tree, by that analogy.
In the embodiment of the present invention, when guarantee is normally stored the corresponding data of the browser page of newly opening, data corresponding to browser page that guarantee user to select are stored, thereby reduce user's stand-by period, also can not have influence on opening of new browser page simultaneously.
Introduce the described information processing method in the present invention by several specific embodiments below, the following examples article several possible application scenarios of described method.It should be noted that; embodiment in the present invention is only for explaining the present invention; and can not be used for limiting the present invention, and every embodiment that meets inventive concept is all within protection scope of the present invention, and those skilled in the art know how to carry out modification according to thought of the present invention naturally.
Embodiment mono-:
Described electronic equipment is mobile phone, and described electronic equipment has buffer unit and display module, and described display module is the display screen of mobile phone.A kind of browser is installed in mobile phone, and user has opened 3 browser pages in described display module, is respectively the 1st browser page, the 2nd browser page and the 3rd browser page.
User is in the time opening the 3rd browser page, and described electronic equipment loads described the 3rd browser page.In the time loading described the 3rd browser page, described electronic equipment can obtain three data corresponding with described the 3rd browser page, and described the 3rd data can be stored in described buffer unit.In the present embodiment, described the 3rd data can be three dom trees corresponding with described the 3rd browser page.
User is opening after described the 3rd browser page, think and oneself may need regular described the 3rd browser page of checking, if switching back described the 3rd browser page all needs to re-start loading, obviously very inconvenient at every turn, need to wait for the long period.Therefore, user carries out described input operation for described the 3rd browser page, and described electronic equipment, obtaining after described input operation, can respond described input operation, for described the 3rd data arrange described the first label information.
In the present embodiment, the specific keys of a hardware is provided for user on described electronic equipment, user supresses this button, be considered as user and carried out described input operation, described electronic equipment can obtain described input operation, and can respond described input operation, for described the 3rd data arrange described the first label information.
In the present embodiment, the mode that described the first label information is set for described the 3rd data can be: the each element comprising for corresponding described the 3rd dom tree of described the 3rd browser page arranges described the first label information.
User may operate again, described electronic equipment is according to user's operation, current browsing pages is switched to described the 2nd browser page from described the 3rd browser page, first described electronic equipment can inquire described the 3rd data that described the 3rd browser page is corresponding in described buffer unit, inquiring after described the 3rd data, described electronic equipment can judge, judges whether described the 3rd data have described the first label information.If judgement determines that described the 3rd data have described the first label information, described electronic equipment can be preserved described the first data in described buffer unit according to described the first label information, if judgement determines that described the 3rd data do not have described the first label information, described electronic equipment can be removed described the 3rd data of storing in described buffer unit.In the present embodiment, judgement determines that described the 3rd data have described the first label information, and described electronic equipment can be preserved described the first data in described buffer unit according to described the first label information.
Embodiment bis-:
Described electronic equipment is PAD, and described electronic equipment has buffer unit and display module, and described display module is the display screen of PAD.A kind of browser is installed in PAD, and user has opened 3 browser pages in described display module, is respectively the 1st browser page, the 2nd browser page and the 3rd browser page.
User is in the time opening the 3rd browser page, and described electronic equipment loads described the 3rd browser page.In the time loading described the 3rd browser page, described electronic equipment can obtain three data corresponding with described the 3rd browser page, and described the 3rd data can be stored in described buffer unit.In the present embodiment, described the 3rd data can be three dom trees corresponding with described the 3rd browser page.
User is opening after described the 3rd browser page, think and oneself may need regular described the 3rd browser page of checking, if switching back described the 3rd browser page all needs to re-start loading, obviously very inconvenient at every turn, need to wait for the long period.Therefore, user carries out described input operation for described the 3rd browser page, and described electronic equipment, obtaining after described input operation, can respond described input operation, for described the 3rd data arrange described the first label information.
In the present embodiment, the specific keys of a hardware is provided for user on described electronic equipment, user supresses this button, be considered as user and carried out described input operation, described electronic equipment can obtain described input operation, and can respond described input operation, for described the 3rd data arrange described the first label information.
In the present embodiment, the mode that described the first label information is set for described the 3rd data can be: the each element comprising for corresponding described the 3rd dom tree of described the 3rd browser page arranges described the first label information.
User may operate again, described electronic equipment is according to user's operation, current browsing pages is switched to described the 2nd browser page from described the 3rd browser page, first described electronic equipment can inquire described the 3rd data that described the 3rd browser page is corresponding in described buffer unit, inquiring after described the 3rd data, described electronic equipment can judge, judges whether described the 3rd data have described the first label information.If judgement determines that described the 3rd data have described the first label information, described electronic equipment can be preserved described the first data in described buffer unit according to described the first label information, if judgement determines that described the 3rd data do not have described the first label information, described electronic equipment can be removed described the 3rd data of storing in described buffer unit.In the present embodiment, judgement determines that described the 3rd data have described the first label information, and described electronic equipment can be preserved described the first data in described buffer unit according to described the first label information.
Afterwards, described electronic equipment receives again user's operation, current browsing pages is switched to described the 1st browser page from described the 2nd browser page, now, if do not preserved and described the 1st the first data that browser page is corresponding in described buffer unit, described electronic equipment need to reload described the 1st browser page, obtains described first data corresponding with described the 1st browser page, and deposits described the first data in described buffer unit.
And, in the time that current browsing pages is switched to described the 1st browser page from described the 2nd browser page, described electronic equipment can be inquired about described three data corresponding with described the 3rd browser page and described second data corresponding with described the 2nd browser page in described buffer unit, inquiring after described the 3rd data and described the second data, described electronic equipment can judge respectively whether described the 3rd data and described the second data all have described the first label information, if judgement determines that described the 3rd data have described the first label information, described electronic equipment can be preserved described the 3rd data in described buffer unit according to described the first label information, if judgement determines that described the 3rd data do not have described the first label information, described electronic equipment can be removed described the 3rd data of storing in described buffer unit.In the present embodiment, judgement determines that described the 3rd data have described the first label information, and described electronic equipment can be preserved described the 3rd data of storing in described buffer unit according to described the first label information.Equally, if judgement determines that described the second data have described the first label information, described electronic equipment can be preserved described the second data in described buffer unit according to described the first label information, if judgement determines that described the second data do not have described the first label information, described electronic equipment can be removed described second data of storing in described buffer unit.In the present embodiment, judgement determines that described the second data do not have described the first label information, and described electronic equipment can be removed described second data of storing in described buffer unit.
Embodiment tri-:
Described electronic equipment is mobile phone, and described electronic equipment has buffer unit and display module, and described display module is the display screen of mobile phone.Two kinds of browsers are installed in mobile phone, are respectively the first browser and the second browser.User has opened 3 browser pages in described display module, be respectively the 1st browser page, the 2nd browser page and the 3rd browser page, wherein said the 1st browser page and described the 2nd browser page are corresponding to described the first browser, and described the 3rd browser page is corresponding to described the second browser.
User is in the time opening the 3rd browser page, and described electronic equipment loads described the 3rd browser page.In the time loading described the 3rd browser page, described electronic equipment can obtain three data corresponding with described the 3rd browser page, and described the 3rd data can be stored in described buffer unit.In the present embodiment, described the 3rd data can be three dom trees corresponding with described the 3rd browser page.
User is opening after described the 3rd browser page, think and oneself may need regular described the 3rd browser page of checking, if switching back described the 3rd browser page all needs to re-start loading, obviously very inconvenient at every turn, need to wait for the long period.Therefore, user carries out described input operation for described the 3rd browser page, and described electronic equipment, obtaining after described input operation, can respond described input operation, for described the 3rd data arrange described the first label information.
In the present embodiment, the specific keys of a hardware is provided for user on described electronic equipment, user supresses this button, be considered as user and carried out described input operation, described electronic equipment can obtain described input operation, and can respond described input operation, for described the 3rd data arrange described the first label information.
In the present embodiment, the mode that described the first label information is set for described the 3rd data can be: the each element comprising for corresponding described the 3rd dom tree of described the 3rd browser page arranges described the first label information.
User may operate again, described electronic equipment is according to user's operation, current browsing pages is switched to described the 2nd browser page from described the 3rd browser page, first described electronic equipment can inquire described the 3rd data that described the 3rd browser page is corresponding in described buffer unit, inquiring after described the 3rd data, described electronic equipment can judge, judges whether described the 3rd data have described the first label information.If judgement determines that described the 3rd data have described the first label information, described electronic equipment can be preserved described the first data in described buffer unit according to described the first label information, if judgement determines that described the 3rd data do not have described the first label information, described electronic equipment can be removed described the 3rd data of storing in described buffer unit.In the present embodiment, judgement determines that described the 3rd data have described the first label information, and described electronic equipment can be preserved described the first data in described buffer unit according to described the first label information.
Afterwards, described electronic equipment receives again user's operation, current browsing pages is switched back to described the 3rd browser page from described the 2nd browser page, described electronic equipment can directly show described the 3rd browser page according to described the first data, without re-starting loading, display speed is very fast, can make user view quickly oneself need content.
And, in the time that current browsing pages is switched back to described the 3rd browser page from described the 2nd browser page, described electronic equipment can be inquired about and described the 2nd the second data that browser page is corresponding in described buffer unit, inquiring after described the second data, described electronic equipment can judge whether described the second data have described the first label information, if judgement determines that described the second data have described the first label information, described electronic equipment can be preserved described the second data in described buffer unit according to described the first label information, if judgement determines that described the second data do not have described the first label information, described electronic equipment can be removed described second data of storing in described buffer unit.In the present embodiment, judgement determines that described the second data do not have described the first label information, and described electronic equipment can be removed described second data of storing in described buffer unit.
Referring to Fig. 2, the embodiment of the present invention also provides a kind of information processing method, and described method can be applied to electronic equipment, in described electronic equipment, browser can be installed, in described display module, can show M browser page, M can be for being not less than 2 integer.The main flow process of described method is as follows:
Step 201: in the time that needs are removed corresponding M cache contents of a described M browser page, judge in a described M cache contents and whether have N cache contents to there is the first label information, N is the positive integer that is not more than M.
In the time that system resource is not enough, described electronic equipment may need to remove a described M cache contents, needs to remove each element that a described M dom tree comprises.
Optionally, first described electronic equipment before each cache contents of removing in a described M cache contents, can judge, judge that whether this cache contents that will be eliminated is with described the first label information.
Optionally, first described electronic equipment, before removing a described M cache contents, can judge judge in described M the cache contents that a described M browser page is corresponding whether have the cache contents with described the first label information.
In the present embodiment, judging whether a cache contents is provided with described the first label information, can be specifically to judge whether each element that this dom tree comprises is provided with described the first label information.
Optionally, in the embodiment of the present invention, being that a dom tree is while arranging described the first label information, generally that each element corresponding in this dom tree is all provided with to described the first label information, described electronic equipment is in the time judging a dom tree, as long as judgement is determined an element in each element corresponding in this dom tree and is provided with described the first label information, can determine that this dom tree is provided with described the first label information.
Optionally, in the embodiment of the present invention, each element that described electronic equipment also can comprise a dom tree judges successively, to determine whether whether each element that this dom tree comprises is provided with described the first label information, if determine that each element that this dom tree comprises is provided with described the first label information, can determine that this dom tree is provided with described the first label information.
Step 202: in the time that a described N cache contents has described the first label information, postpone removing a described N cache contents.
In the embodiment of the present invention, have described the first label information if described N cache contents in a described M cache contents determined in judgement, described electronic equipment can first not removed a described N cache contents.
Preferably, in the embodiment of the present invention, have described the first label information if described N cache contents in a described M cache contents determined in judgement, described electronic equipment can first be removed a remaining M-N cache contents.After remaining M-N cache contents removed, still not enough if system resource is determined in judgement, described electronic equipment can continue to remove a described N cache contents again.Wherein, in the time removing described N cache contents, removing order can be any, or also can be specified by user.
For example, the first cache contents is with described the first label information.A kind of possible situation is: described the first cache contents is corresponding to the first dom tree, each element that described the first dom tree comprises is provided with described the first label information, described the first label information only includes the sub-label information of a class, described the first label information that is each element setting is all identical, priority is also identical, in the time removing described the first cache contents, each element corresponding in described the first dom tree all can be removed simultaneously.
For example, the first cache contents is with described the first label information.A kind of possible situation is: described the first cache contents is corresponding to the first dom tree, each element that described the first dom tree comprises is provided with described the first label information, described the first label information includes the sub-label information of at least two classes, the priority difference that the sub-label information of each class is corresponding, the also corresponding difference of priority of described the first label information that each element that described the first dom tree comprises arranges.In the time removing described the first cache contents, described electronic equipment can be removed respectively according to the different priorities of different elements, for example, can first remove the element of low priority, after the element of low priority is removed, described electronic equipment can also judge that whether system resource is sufficient, if system resource is enough, described electronic equipment can stop removing the element of high priority, in the situation that not affecting user and watching, avoid reloading as far as possible, the stand-by period that reduces user, also reduce system works amount.
Introduce the described information processing method in the present invention by several specific embodiments below, the following examples article several possible application scenarios of described method.It should be noted that; embodiment in the present invention is only for explaining the present invention; and can not be used for limiting the present invention, and every embodiment that meets inventive concept is all within protection scope of the present invention, and those skilled in the art know how to carry out modification according to thought of the present invention naturally.
Buy Shi Lisi:
Described electronic equipment is mobile phone, and described electronic equipment has display module, and described display module is the display screen of mobile phone.A kind of browser is installed in mobile phone, and user has opened 3 browser pages in described display module, is respectively the first browser page, the second browser page and the 3rd browser page.
When the system resource of described electronic equipment is less, need to remove 3 cache contents that these 3 browser pages are corresponding, wherein, corresponding described the first cache contents of described the first browser page, corresponding described the second cache contents of described the second browser page, corresponding the 3rd cache contents of described the 3rd browser page.
First described electronic equipment before removing each cache contents, can judge, judge that whether this cache contents that will be eliminated is with described the first label information.If judgement determines that this cache contents that will be eliminated is with described the first label information, described electronic equipment can temporarily not removed this cache contents, and continues to remove other cache contents.
In the present embodiment, described electronic equipment is before removing described the first cache contents, first judge that whether described the first cache contents is with described the first label information, in the present embodiment, judgement determines that described the first cache contents is with described the first label information, described electronic equipment postpones removing described the first cache contents, continues to remove described the second cache contents.
Before removing described the second cache contents, first judge that whether described the second cache contents is with described the first label information, in the present embodiment, judgement determines that described the second cache contents is also with described the first label information, described electronic equipment postpones removing described the second cache contents, continues to remove described the 3rd cache contents.
Before removing described the 3rd cache contents, first judge that whether described the 3rd cache contents is with described the first label information, in the present embodiment, judgement determines that described the 3rd cache contents is without described the first label information, and described electronic equipment can directly be removed described the 3rd cache contents.
After described the 3rd cache contents is removed, described electronic equipment can judge that whether system resource is enough, the judgement of electronic equipment described in the present embodiment determines that system resource is enough, and described electronic equipment can not removed described the first cache contents and described the second cache contents.
Embodiment five:
Described electronic equipment is PAD, and described electronic equipment has display module, and described display module is the display screen of PAD.Two kinds of browsers are installed in PAD, user has opened 3 browser pages in described display module, be respectively the first browser page, the second browser page and the 3rd browser page, wherein, described the first browser page and described the second browser page are corresponding to the first browser, and described the 3rd browser page is corresponding to the second browser.
When the system resource of described electronic equipment is less, need to remove 3 cache contents that these 3 browser pages are corresponding, wherein, corresponding described the first cache contents of described the first browser page, corresponding described the second cache contents of described the second browser page, corresponding the 3rd cache contents of described the 3rd browser page.
First described electronic equipment before removing each cache contents, can judge, judge that whether this cache contents that will be eliminated is with described the first label information.If judgement determines that this cache contents that will be eliminated is with described the first label information, described electronic equipment can temporarily not removed this cache contents, and continues to remove other cache contents.
In the present embodiment, described electronic equipment is before removing described the first cache contents, first judge that whether described the first cache contents is with described the first label information, in the present embodiment, judgement determines that described the first cache contents is with described the first label information, described electronic equipment postpones removing described the first cache contents, continues to remove described the second cache contents.
Before removing described the second cache contents, first judge that whether described the second cache contents is with described the first label information, in the present embodiment, judgement determines that described the second cache contents is also with described the first label information, described electronic equipment postpones removing described the second cache contents, continues to remove described the 3rd cache contents.
Before removing described the 3rd cache contents, first judge that whether described the 3rd cache contents is with described the first label information, in the present embodiment, judgement determines that described the 3rd cache contents is without described the first label information, and described electronic equipment can directly be removed described the 3rd cache contents.
After described the 3rd cache contents is removed, described electronic equipment can judge that whether system resource is enough, the judgement of electronic equipment described in the present embodiment determines that system resource is still not enough, and described electronic equipment can continue to remove described the first cache contents and described the second cache contents.Wherein, in the time removing described the first cache contents and described the second cache contents, described electronic equipment can be removed according to random order.In the time of the complete cache contents of every removing, described electronic equipment can be proceeded judgement, judges that whether system resource is enough, as long as judgement determines that system resource is enough, described electronic equipment can stop the removing to cache contents.
Embodiment six:
Described electronic equipment is mobile phone, and described electronic equipment has display module, and described display module is the display screen of mobile phone.Two kinds of browsers are installed in mobile phone, user has opened 3 browser pages in described display module, be respectively the first browser page, the second browser page and the 3rd browser page, wherein, described the first browser page and described the second browser page are corresponding to the first browser, and described the 3rd browser page is corresponding to the second browser.
When the system resource of described electronic equipment is less, need to remove 3 cache contents that these 3 browser pages are corresponding, wherein, corresponding described the first cache contents of described the first browser page, corresponding described the second cache contents of described the second browser page, corresponding the 3rd cache contents of described the 3rd browser page.
First described electronic equipment before removing each cache contents, can judge, judge that whether this cache contents that will be eliminated is with described the first label information.If judgement determines that this cache contents that will be eliminated is with described the first label information, described electronic equipment can temporarily not removed this cache contents, and continues to remove other cache contents.
In the present embodiment, described electronic equipment is before removing described the first cache contents, first judge that whether described the first cache contents is with described the first label information, in the present embodiment, judgement determines that described the first cache contents is with described the first label information, described electronic equipment postpones removing described the first cache contents, continues to remove described the second cache contents.
Before removing described the second cache contents, first judge that whether described the second cache contents is with described the first label information, in the present embodiment, judgement determines that described the second cache contents is without described the first label information, directly described the second cache contents of described electronic equipment, after described the second cache contents is removed, described electronic equipment can judge that whether system resource is enough, if judgement determines that system resource is enough, described electronic equipment can stop the removing to other cache contents, if it is still not enough that system resource is determined in judgement, described electronic equipment can continue to remove described the 3rd cache contents.Or after described the second cache contents is removed, described electronic equipment also can not judge that whether system resource is enough, and directly removes described the 3rd cache contents.
Before removing described the 3rd cache contents, first judge that whether described the 3rd cache contents is with described the first label information, in the present embodiment, judgement determines that described the 3rd cache contents is without described the first label information, and described electronic equipment can directly be removed described the 3rd cache contents.
After described the 3rd cache contents is removed, described electronic equipment can judge that whether system resource is enough, and the judgement of electronic equipment described in the present embodiment determines that system resource is still not enough, and described electronic equipment can continue to remove described the first cache contents.
In the present embodiment, in the time that the each element comprising for described the first dom tree arranges described the first label information, can distinguish different priority.In the present embodiment, described the first label information can include the sub-label information of three classes, be respectively the first sub-label information, the second sub-label information and the 3rd sub-label information, described the first sub-label information, the priority of described the second sub-label information and the priority orders of described the 3rd sub-label information are: the priority of the 3rd sub-label information described in the priority > of the second sub-label information described in the priority > of described the first sub-label information.
In the present embodiment, for example, in described the first dom tree, include three elements, be respectively the first element, the second element and element.Described the first element is the element that word content is corresponding, and described the second element is the element that video content is corresponding, and described element is the element that image content is corresponding.
In the time described the first label information being set for described the first dom tree, described electronic equipment can arrange described the first sub-label information from the first element described in behavior, for described the second element arranges described the second sub-label information, and for described element, described the 3rd sub-label information is set.
, in the time removing described the first cache contents, described electronic equipment can be removed according to different priorities corresponding to different elements in described the first cache contents.For example, corresponding described the 3rd sub-label information of described element, the priority that described the 3rd sub-label information is corresponding is minimum, can first remove described element.After described element is removed, described electronic equipment can be proceeded judgement, judge that whether system resource is enough, if judgement determines that system resource is enough, described electronic equipment can stop the removing to all the other elements, if and judgement determines that system resource is still not enough, described electronic equipment can continue to remove described the second element, same, after described the second element is removed, described electronic equipment can continue to judge that whether system resource is enough, by that analogy.
Referring to Fig. 3, the embodiment of the present invention provides a kind of electronic equipment, described electronic equipment can have buffer unit and display module 301, in described electronic equipment, at least one browser can be installed, described at least one browser can be supported browsing of browser page, in the time that the current browsing pages on described display module is switched to second browser page different from described the first browser page from the first browser page, described electronic equipment can load the second data that described the second browser page is corresponding, can remove the first data that the first browser page described in described buffer unit is corresponding simultaneously.Described electronic equipment can also comprise load-on module 302, acquisition module 303, module 304 and operational module 305 are set.
Preferably, described electronic equipment can also comprise judge module 306 and handover module 307.
Load-on module 302 can be for loading described the first browser page by a kind of browser in described at least one browser.
Acquisition module 303 can be for obtaining and the first data of described the first browser page, and by described the first data buffer storage at described buffer unit.
Module 304 is set can, for obtaining input operation, and be responded described input operation, for described the first data arrange the first label information.
Each element that module 304 specifically can be used to described the first dom tree to comprise is set described the first label information is set.
Operational module 305 can, in the time that current browsing pages is switched to described the second browser page from described the first browser page, be preserved described the first data in described buffer unit based on described the first label information.
Operational module 305 specifically can, in the time that described the first data have described the first label information, be preserved described the first data in described buffer unit.
Operational module 305 specifically can also be used for removing described second data of described buffer unit, and preserves described the first data in described buffer unit according to described the first label information.
Operational module 305 specifically can also be used for, in the time that described the second data do not arrange described the first label information, removing described the second data.
Judge module 306 can, in the time that current browsing pages is switched to described the second browser page from described the first browser page, judge whether described the first data have described the first label information.
Judge module 306 can be for judging whether described the second data are provided with described the first label information.
In the embodiment of the present invention, described the first data can be the first dom tree.
Handover module 307 can be for being switched to described the first browser page by current browsing pages from described the second browser page.
Handover module 307 can be for current browsing pages is switched to the 3rd browser page from described the second browser page, and described the first browser page, described the second browser page and described the 3rd browser page are different between two.
Display module 301 can be for showing described the first browser page according to described the first data.
Referring to Fig. 4, the embodiment of the present invention also provides a kind of electronic equipment, and described electronic equipment can have buffer unit and display module, in described electronic equipment, at least one browser can be installed, in described display module, can show M browser page, M can be for being not less than 2 integer.Described electronic equipment can also comprise judge module 401 and operational module 402.Preferably, the electronic equipment described in described electronic equipment and Fig. 3 embodiment in the present embodiment can be same electronic equipment.
Whether judge module 401 can when remove corresponding M cache contents of a described M browser page when needs, judge in a described M cache contents and have N cache contents to have the first label information, N is the positive integer that is not more than M.
Judge module 401 specifically can be provided with described the first label information for judging in the each element that whether has N dom tree to comprise in the corresponding M of a described M cache contents dom tree.
Operational module 402 can be in the time that a described N cache contents has described the first label information, postpones removing a described N cache contents.
Operational module 402 can also be used in the time that a described N cache contents has described the first label information, removes a remaining M-N cache contents in a described M cache contents.
Information processing method in the embodiment of the present invention can be applied to the electronic equipment with buffer unit and display module, at least one browser is installed in described electronic equipment, described at least one browser can be supported browsing of browser page, in the time that the current browsing pages on described display module is switched to second browser page different from described the first browser page from the first browser page, described electronic equipment can load the second data that described the second browser page is corresponding, can remove the first data corresponding to the above first browser page of described buffer unit simultaneously, described method can comprise: load described the first browser page by a kind of browser in described at least one browser, obtain and the first data of described the first browser page, and by described the first data buffer storage at described buffer unit, obtain input operation, and described input operation is responded, for described the first data arrange the first label information, in the time that current browsing pages is switched to described the second browser page from described the first browser page, preserve described the first data in described buffer unit based on described the first label information.
In the embodiment of the present invention, in the time obtaining described first data corresponding with described the first browser page, can described the first label information be set for described the first data, when current browsing pages in the display module of described electronic equipment is switched to described the second browser page from described the first browser page like this, can preserve described first data of storing in described buffer unit according to described the first label information, described the first data are not removed, for example described the first data can be put into finally and remove, or can not remove described the first data, like this, be convenient to user and check at any time described the first browser page, described electronic equipment also without reloading described the first browser page at every turn in the time that other browser pages switch back described the first browser page, reduce the workload of described electronic equipment, alleviate the burden of described electronic equipment, for user also more for convenience, in the time checking described the first browser page, can not run into or the less situation about reloading that runs into, reduce user's stand-by period, improving user experiences.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt complete hardware implementation example, completely implement software example or the form in conjunction with the embodiment of software and hardware aspect.And the present invention can adopt the form at one or more upper computer programs of implementing of computer-usable storage medium (including but not limited to magnetic disk memory and optical memory etc.) that wherein include computer usable program code.
The present invention is with reference to describing according to process flow diagram and/or the block scheme of the method for the embodiment of the present invention, equipment (system) and computer program.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or the combination of square frame.Can provide these computer program instructions to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, the instruction that makes to carry out by the processor of computing machine or other programmable data processing device produces the device for realizing the function of specifying at flow process of process flow diagram or multiple flow process and/or square frame of block scheme or multiple square frame.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, the instruction that makes to be stored in this computer-readable memory produces the manufacture that comprises command device, and this command device is realized the function of specifying in flow process of process flow diagram or multiple flow process and/or square frame of block scheme or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make to carry out sequence of operations step to produce computer implemented processing on computing machine or other programmable devices, thereby the instruction of carrying out is provided for realizing the step of the function of specifying in flow process of process flow diagram or multiple flow process and/or square frame of block scheme or multiple square frame on computing machine or other programmable devices.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if these amendments of the present invention and within modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.

Claims (18)

1. an information processing method, described method is applied to the electronic equipment with buffer unit and display module, at least one browser is installed in described electronic equipment, described at least one browser can be supported browsing of browser page, in the time that the current browsing pages on described display module is switched to second browser page different from described the first browser page from the first browser page, described electronic equipment can load the second data that described the second browser page is corresponding, can remove the first data that the first browser page described in described buffer unit is corresponding simultaneously, it is characterized in that, said method comprising the steps of:
Load described the first browser page by a kind of browser in described at least one browser;
Obtain and the first data of described the first browser page, and by described the first data buffer storage at described buffer unit;
Obtain input operation, and described input operation is responded, for described the first data arrange the first label information;
In the time that current browsing pages is switched to described the second browser page from described the first browser page, preserve described the first data in described buffer unit based on described the first label information.
2. the method for claim 1, it is characterized in that, before preserving described the first data in described buffer unit based on described the first label information, also comprise step: in the time that current browsing pages is switched to described the second browser page from described the first browser page, judge whether described the first data have described the first label information;
The step of preserving described the first data in described buffer unit based on described the first label information comprises: in the time that described the first data have described the first label information, preserve described the first data in described buffer unit.
3. the method for claim 1, is characterized in that, described the first data are the first document object model dom tree.
4. method as claimed in claim 3, is characterized in that, the step that the first label information is set for described the first data comprises: the each element comprising for described the first dom tree arranges described the first label information.
5. the method for claim 1, is characterized in that, also comprises step after described first data of preserving based on described the first label information in described buffer unit:
Current browsing pages is switched to described the first browser page from described the second browser page;
Show described the first browser page according to described the first data.
6. the method for claim 1, is characterized in that, also comprises step after described first data of preserving based on described the first label information in described buffer unit:
Current browsing pages is switched to the 3rd browser page from described the second browser page, and described the first browser page, described the second browser page and described the 3rd browser page are different between two;
Remove described the second data in described buffer unit, and preserve described the first data in described buffer unit according to described the first label information.
7. method as claimed in claim 6, is characterized in that, also comprises step: judged whether described the second data are provided with described the first label information before described the second data of removing in described buffer unit;
The step of removing described the second data in described buffer unit comprises: in the time that described the second data do not arrange described the first label information, remove described the second data.
8. method as claimed in claim 6, it is characterized in that, before preserving described the first data in described buffer unit according to described the first label information, also comprise step: judge whether remaining space capacity in described buffer unit is not less than and the capacity of corresponding the 3rd data of described the 3rd browser page;
The step of preserving described the first data in described buffer unit according to described the first label information comprises: in the time that described remaining space capacity is not less than the capacity of described the 3rd data, preserve described the first data in described buffer unit according to described the first label information.
9. method as claimed in claim 8, it is characterized in that, judge remaining space capacity in described buffer unit whether be not less than with the capacity of corresponding the 3rd data of described the 3rd browser page after also comprise step: in the time that described remaining space capacity is less than the capacity of described the 3rd data, remove described the 3rd data, or remove the Partial Elements in each element included in described the 3rd data, so that described buffer unit can be stored described the 3rd data.
10. an electronic equipment, described electronic equipment has buffer unit and display module, at least one browser is installed in described electronic equipment, described at least one browser can be supported browsing of browser page, in the time that the current browsing pages on described display module is switched to second browser page different from described the first browser page from the first browser page, described electronic equipment can load the second data that described the second browser page is corresponding, can remove the first data that the first browser page described in described buffer unit is corresponding simultaneously, it is characterized in that, described electronic equipment comprises:
Load-on module, for loading described the first browser page by a kind of browser of described at least one browser;
Acquisition module, for obtaining and the first data of described the first browser page, and by described the first data buffer storage at described buffer unit;
Module is set, for obtaining input operation, and described input operation is responded, for described the first data arrange the first label information;
Operational module, in the time that current browsing pages is switched to described the second browser page from described the first browser page, preserves described the first data in described buffer unit based on described the first label information.
11. electronic equipments as claimed in claim 10, it is characterized in that, described electronic equipment also comprises judge module, in the time that current browsing pages is switched to described the second browser page from described the first browser page, judges whether described the first data have described the first label information;
Described operational module specifically for: in the time that described the first data have described the first label information, preserve described the first data in described buffer unit.
12. electronic equipments as claimed in claim 10, is characterized in that, described the first data are the first dom tree.
13. electronic equipments as claimed in claim 12, is characterized in that, described arrange module specifically for: the each element comprising for described the first dom tree arranges described the first label information.
14. electronic equipments as claimed in claim 10, is characterized in that, described electronic equipment also comprises handover module, for current browsing pages is switched to described the first browser page from described the second browser page;
Described display module is for showing described the first browser page according to described the first data.
15. electronic equipments as claimed in claim 10, it is characterized in that, described electronic equipment also comprises handover module, for current browsing pages is switched to the 3rd browser page from described the second browser page, described the first browser page, described the second browser page and described the 3rd browser page are different between two;
Described operational module specifically also for: remove described second data of described buffer unit, and preserve described the first data in described buffer unit according to described the first label information.
16. electronic equipments as claimed in claim 15, is characterized in that, described electronic equipment also comprises judge module, for judging whether described the second data are provided with described the first label information;
Described operational module specifically also for: in the time that described the second data do not arrange described the first label information, remove described the second data.
17. electronic equipments as claimed in claim 15, is characterized in that, described electronic equipment also comprises judge module, for judging whether the remaining space capacity of described buffer unit is not less than and the capacity of corresponding the 3rd data of described the 3rd browser page;
Described operational module specifically also for: in the time that described remaining space capacity is not less than the capacity of described the 3rd data, preserve described the first data in described buffer unit according to described the first label information.
18. electronic equipments as claimed in claim 17, it is characterized in that, described operational module specifically also for: in the time that described remaining space capacity is less than the capacity of described the 3rd data, remove described the 3rd data, or remove the Partial Elements in each element included in described the 3rd data, so that described buffer unit can be stored described the 3rd data.
CN201310067457.XA 2013-03-04 2013-03-04 A kind of information processing method and electronic equipment Active CN104035921B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310067457.XA CN104035921B (en) 2013-03-04 2013-03-04 A kind of information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310067457.XA CN104035921B (en) 2013-03-04 2013-03-04 A kind of information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN104035921A true CN104035921A (en) 2014-09-10
CN104035921B CN104035921B (en) 2017-08-29

Family

ID=51466692

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310067457.XA Active CN104035921B (en) 2013-03-04 2013-03-04 A kind of information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN104035921B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106610823A (en) * 2015-10-23 2017-05-03 腾讯科技(深圳)有限公司 Page display method and device
CN107066524A (en) * 2017-02-20 2017-08-18 平安科技(深圳)有限公司 The display methods and device of product
CN108074639A (en) * 2017-12-25 2018-05-25 北京全域医疗技术有限公司 Radiotherapy planning system page switching method and device based on browser
CN108280105A (en) * 2017-03-08 2018-07-13 广州市动景计算机科技有限公司 Http caching methods, device and user terminal
CN108845774A (en) * 2018-05-29 2018-11-20 努比亚技术有限公司 A kind of interface display method, terminal and computer readable storage medium
CN116431233A (en) * 2023-02-28 2023-07-14 北京思明启创科技有限公司 Resource loading method, device, equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110819A (en) * 2007-08-03 2008-01-23 中国网络通信集团公司 Method for improving switching speed when browsing pages
CN101150803B (en) * 2007-10-24 2011-08-24 优视科技有限公司 Method for micro-browser to process network data, micro-browser and its server
CN101251858B (en) * 2008-03-12 2010-04-14 腾讯科技(深圳)有限公司 Data managing method in multiple page browsers and browsers
CN102841901B (en) * 2011-06-23 2015-09-09 腾讯科技(深圳)有限公司 A kind of method and apparatus of web displaying

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106610823A (en) * 2015-10-23 2017-05-03 腾讯科技(深圳)有限公司 Page display method and device
CN107066524A (en) * 2017-02-20 2017-08-18 平安科技(深圳)有限公司 The display methods and device of product
WO2018149071A1 (en) * 2017-02-20 2018-08-23 平安科技(深圳)有限公司 Method, apparatus and device for displaying product item, and computer readable storage medium
CN108280105A (en) * 2017-03-08 2018-07-13 广州市动景计算机科技有限公司 Http caching methods, device and user terminal
CN108074639A (en) * 2017-12-25 2018-05-25 北京全域医疗技术有限公司 Radiotherapy planning system page switching method and device based on browser
CN108074639B (en) * 2017-12-25 2020-10-16 北京全域医疗技术集团有限公司 Method and device for switching pages of radiotherapy planning system based on browser
CN108845774A (en) * 2018-05-29 2018-11-20 努比亚技术有限公司 A kind of interface display method, terminal and computer readable storage medium
CN116431233A (en) * 2023-02-28 2023-07-14 北京思明启创科技有限公司 Resource loading method, device, equipment and storage medium
CN116431233B (en) * 2023-02-28 2024-04-09 北京思明启创科技有限公司 Resource loading method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN104035921B (en) 2017-08-29

Similar Documents

Publication Publication Date Title
EP3514684A1 (en) Memory recovery method and apparatus
CN104035921A (en) Information processing method and electronic devices
EP2557490B1 (en) Method and apparatus for adding an icon to a home interface of an android operating system
EP3040804B1 (en) Electronic device for controlling power and method therefor
US20140222947A1 (en) Method and apparatus for browsings webpages, and storage medium
CN104965659A (en) Page information preloading method and apparatus
US9823945B2 (en) Method and apparatus for managing application program
CN103135879B (en) Display packing, display device and electronic equipment
CN108287918B (en) Music playing method and device based on application page, storage medium and electronic equipment
CN108304234B (en) Page display method and device
CN104238897A (en) Menu item displaying method and device
CN103399866A (en) Webpage rendering method, device and equipment
CN104021129B (en) Show the method and terminal of group picture
CN103699595A (en) Method and device for webpage caching of terminal browser and terminal
CN112099684A (en) Search display method and device and electronic equipment
CN105930058A (en) Application starting method and apparatus for mobile terminal and mobile terminal
CN104965914A (en) Page display method and apparatus
CN109361947A (en) Internet resources batch loading method, smart television, storage medium and device
WO2014190785A1 (en) Apparatuses and methods for webpage content processing
CN104104711A (en) Reading history processing method and device
CN105005607A (en) Page information loading method and page information loading device
CN107908679B (en) Script statement conversion method and device and computer readable storage medium
CN104267812A (en) Information processing method and electronic device
CN103677519A (en) Method for collecting multimedia resource, terminal and server
CN104615622A (en) Document opening method and device and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant