CN104035921B - A kind of information processing method and electronic equipment - Google Patents

A kind of information processing method and electronic equipment Download PDF

Info

Publication number
CN104035921B
CN104035921B CN201310067457.XA CN201310067457A CN104035921B CN 104035921 B CN104035921 B CN 104035921B CN 201310067457 A CN201310067457 A CN 201310067457A CN 104035921 B CN104035921 B CN 104035921B
Authority
CN
China
Prior art keywords
data
browser page
label information
electronic equipment
browser
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310067457.XA
Other languages
Chinese (zh)
Other versions
CN104035921A (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

Landscapes

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

Abstract

The invention discloses a kind of information processing method, for mitigating system burden.Methods described includes:First browser page is loaded by a kind of browser at least one browser;The first data with first browser page are obtained, and by first data buffer storage in the buffer unit;Input operation is obtained, and the input operation is responded, is that first data set the first label information;When current browse webpage is switched to second browser page from first browser page, first data in the buffer unit are preserved based on first label information.The invention also discloses another information processing method, and with the corresponding electronic equipment of both approaches difference.

Description

A kind of information processing method and electronic equipment
Technical field
The present invention relates to computer and built-in field, more particularly to a kind of information processing method and electronic equipment.
Background technology
With the continuous development of scientific technology, electronic technology has also obtained development at full speed, and the species of electronic product is also got over Come more, people have also enjoyed the various facilities that development in science and technology is brought.Present people can be set by various types of electronics It is standby, enjoy the comfortable life brought with development in science and technology.Such as, the electronic equipment such as mobile phone have become people life in one not Can or scarce part, people's can be made a phone call, sent short messages by electronic equipments such as mobile phones etc. mode strengthens with other people it Between contact.
Present inventor has found exist in the prior art during the embodiment of the present application technical scheme is realized, at least Following technical problem:
Current mobile phone or the middle web browsers installed of PAD (tablet personal computer) typically can all support windows display, i.e., User can open multiple browser windows simultaneously, or can open multiple windows of same browser simultaneously.When user beats When opening multiple windows, because one of window can only be once checked, therefore user may need to carry out between different windows Switching is checked.But if user does not check some page for a long time, then because limited system resources, system may be automatically clear Except the corresponding caching of the page, when user again switches to the page, system needs to reload the content of the page again, is System needs repeatedly to be operated, and process is complex, also increases the burden of system, while user needs to wait very long again when Between, influence Consumer's Experience.
The content of the invention
The embodiment of the present invention provides a kind of information processing method and electronic equipment, for solving system burden in the prior art Heavier technical problem, realizes the technique effect for mitigating system burden.
A kind of information processing method, methods described is applied to the electronic equipment with buffer unit and display module, described At least one browser is installed, at least one browser can support browsing for browser page in electronic equipment, when Current browse webpage on the display module is switched to different from first browser page from the first browser page During the second browser page, the electronic equipment can load corresponding second data of second browser page, while energy Corresponding first data of the first browser page described in the buffer unit are enough removed, be the described method comprises the following steps:
First browser page is loaded by a kind of browser at least one browser;
The first data with first browser page are obtained, and first data buffer storage is single in the caching Member;
Input operation is obtained, and the input operation is responded, is that first data set the first label information;
When current browse webpage is switched to second browser page from first browser page, based on described First label information preserves first data in the buffer unit.
Preferably, also being wrapped before first data during the buffer unit is preserved based on first label information Include step:When current browse webpage is switched to second browser page from first browser page, judge described Whether the first data have first label information;
The step of preserving first data in the buffer unit based on first label information includes:When described When first data have first label information, first data in the buffer unit are preserved.
Preferably, first data are the first document object model dom tree.
Preferably, the step of setting the first label information for first data includes:Include for first dom tree Each element first label information is set.
Preferably, also being wrapped after first data during the buffer unit is preserved based on first label information Include step:
Current browse webpage is switched to first browser page from second browser page;
The first browser page according to first data display.
Preferably, also being wrapped after first data during the buffer unit is preserved based on first label information Include step:
Current browse webpage is switched to the 3rd browser page, first browser from second browser page The page, second browser page and the 3rd browser page are different between two;
Second data in the buffer unit are removed, and the caching list is preserved according to first label information First data in member.
Preferably, also including step before second data in removing the buffer unit:Judge described second Whether data are provided with first label information;
The step of removing second data in the buffer unit includes:When second data are not provided with described During one label information, second data are removed.
Preferably, also being wrapped before first data during the buffer unit is preserved according to first label information Include step:Judge remaining space capacity in the buffer unit whether be not less than with corresponding to the 3rd browser page The capacity of 3rd data;
The step of preserving first data in the buffer unit according to first label information includes:When described When remaining space capacity is not less than the capacity of the 3rd data, preserved according to first label information in the buffer unit First data.
Preferably, whether the remaining space capacity in the buffer unit is judged is not less than and the 3rd browser page Also include step after the capacity of the 3rd data corresponding to face:When the remaining space capacity is less than the appearance of the 3rd data During amount, the 3rd data are removed, or remove the Partial Elements in each element included in the 3rd data, so that described Buffer unit can store the 3rd data.
A kind of electronic equipment, the electronic equipment, which has in buffer unit and display module, the electronic equipment, to be provided with At least one browser, at least one browser can support browsing for browser page, when on the display module Current browse webpage from the first browser page be switched to second browser pages different from first browser page when, The electronic equipment can load corresponding second data of second browser page, while the buffer unit can be removed Described in corresponding first data of the first browser page, the electronic equipment includes:
Load-on module, for loading the first browser page by a kind of browser at least one browser Face;
Acquisition module, for obtain with the first data of first browser page, and by first data buffer storage In the buffer unit;
Setup module, is responded for obtaining input operation, and to the input operation, is that first data are set First label information;
Operation module, for being switched to the second browser page from first browser page in current browse webpage During face, first data in the buffer unit are preserved based on first label information.
Preferably, the electronic equipment also includes judge module, in current browse webpage from first browser When page layout switch is to second browser page, judge whether first data have first label information;
The operation module specifically for:When first data have first label information, preserve described slow First data in memory cell.
Preferably, first data are the first dom tree.
Preferably, the setup module specifically for:The each element included for first dom tree sets described first Label information.
Preferably, the electronic equipment also includes handover module, for by current browse webpage from second browser Page layout switch is to first browser page;
The display module is used for the first browser page according to first data display.
Preferably, the electronic equipment also includes handover module, for by current browse webpage from second browser Page layout switch is to the 3rd browser page, and first browser page, second browser page and the described 3rd browse The device page is different between two;
The operation module is specifically additionally operable to:Second data in the buffer unit are removed, and according to described One label information preserves first data in the buffer unit.
Preferably, the electronic equipment also includes judge module, for judging it is described whether second data are provided with First label information;
The operation module is specifically additionally operable to:When second data are not provided with first label information, institute is removed State the second data.
Preferably, the electronic equipment also includes judge module, for judging that the remaining space in the buffer unit holds Whether amount is not less than the capacity with the 3rd data corresponding to the 3rd browser page;
The operation module is specifically additionally operable to:When the remaining space capacity is not less than the capacity of the 3rd data, First data in the buffer unit are preserved according to first label information.
Preferably, the operation module is specifically additionally operable to:When the remaining space capacity is less than the appearance of the 3rd data During amount, the 3rd data are removed, or remove the Partial Elements in each element included in the 3rd data, so that described Buffer unit can store the 3rd data.
Information processing method in the embodiment of the present invention can apply to the electronics with buffer unit and display module and set It is standby, at least one browser is installed, at least one browser can support browser page in the electronic equipment Browse, when the current browse webpage on the display module is switched to and first browser page from the first browser page During different second browser page, the electronic equipment can load corresponding second data of second browser page, Corresponding first data of first browser page on the buffer unit can be removed simultaneously, and methods described can include: First browser page is loaded by a kind of browser at least one browser;Acquisition is browsed with described first First data of the device page, and by first data buffer storage in the buffer unit;Input operation is obtained, and to the input Operation is responded, and is that first data set the first label information;Current browse webpage from first browser page When face is switched to second browser page, described first in the buffer unit is preserved based on first label information Data.
In the embodiment of the present invention, when obtaining first data corresponding with first browser page, Ke Yiwei First data set first label information, the so current browse webpage in the display module of the electronic equipment When being switched to second browser page from first browser page, institute can be preserved according to first label information First data stored in buffer unit are stated, i.e., are not purged first data, for example can be by described first Data are put into finally to be purged again, or can not remove first data, so, is easy to user to check described at any time One browser page, the electronic equipment from other browser pages without switching back into first browser page every time When reload first browser page, reduce the workload of the electronic equipment, alleviate the electronic equipment Burden, it is also more convenient for a user, it will not run into or less run into again when checking first browser page The situation of loading, reduces the stand-by period of user, improves Consumer's Experience.
Brief description of the drawings
Fig. 1 is a kind of broad flow diagram of information processing method in the embodiment of the present invention;
Fig. 2 is the broad flow diagram of another 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 electronic equipment in the embodiment of the present invention.
Embodiment
Information processing method in the embodiment of the present invention can apply to the electronics with buffer unit and display module and set It is standby, at least one browser is installed, at least one browser can support browser page in the electronic equipment Browse, when the current browse webpage on the display module is switched to and first browser page from the first browser page During different second browser page, the electronic equipment can load corresponding second data of second browser page, Corresponding first data of first browser page on the buffer unit can be removed simultaneously, and methods described can include: First browser page is loaded by a kind of browser at least one browser;Acquisition is browsed with described first First data of the device page, and by first data buffer storage in the buffer unit;Input operation is obtained, and to the input Operation is responded, and is that first data set the first label information;Current browse webpage from first browser page When face is switched to second browser page, described first in the buffer unit is preserved based on first label information Data.
In the embodiment of the present invention, when obtaining first data corresponding with first browser page, Ke Yiwei First data set first label information, the so current browse webpage in the display module of the electronic equipment When being switched to second browser page from first browser page, institute can be preserved according to first label information First data stored in buffer unit are stated, i.e., are not purged first data, for example can be by described first Data are put into finally to be purged again, or can not remove first data, so, is easy to user to check described at any time One browser page, the electronic equipment from other browser pages without switching back into first browser page every time When reload first browser page, reduce the workload of the electronic equipment, alleviate the electronic equipment Burden, it is also more convenient for a user, it will not run into or less run into again when checking first browser page The situation of loading, reduces the stand-by period of user, improves Consumer's Experience.
Referring to Fig. 1, a kind of information processing method is provided in the embodiment of the present invention, methods described can apply to have caching At least one browser, at least one can be had by being installed in the electronic equipment of unit and display module, the electronic equipment Browser can support browsing for browser page, when the current browse webpage on the display module is from the first browser page When being switched to second browser pages different from first browser page, the electronic equipment can load described second Corresponding second data of browser page, while the first browser page described in the buffer unit corresponding can be removed One data.The main flow of methods described is as follows:
Step 101:First browser page is loaded by a kind of browser at least one browser.
In the embodiment of the present invention, the electronic equipment can be the different electronic equipments such as mobile phone, PAD (tablet personal computer).
In the embodiment of the present invention, a kind of browser can be only installed, or can also be provided with the electronic equipment A variety of browsers.The browser page shown on the display module can be the browser page based on same browser, It can also be the browser page based on different browsers.That is, described first browser page and second browser page Same browser is can correspond to, or different browsers can also be corresponded respectively to.
For example, the electronic equipment can obtain the first operation for opening first browser page, obtaining After first operation, the electronic equipment can be responded to the described first operation, load first browser page.
Step 102:The first data with first browser page are obtained, and by first data buffer storage described Buffer unit.
The electronic equipment can obtain corresponding with first browser page when loading first browser page The first data, first data are the corresponding cache contents of first browser page.Preferably, the present invention is implemented In example, each browser page can correspond to DOM (document object model) tree, i.e., described first data can be with it is described Corresponding first dom tree of first browser page.
In the embodiment of the present invention, multiple elements can be included in a dom tree, wherein each element is accordingly to browse The corresponding element of the device page.
In the embodiment of the present invention, after first data are obtained, the electronic equipment can deposit first data Storage is in the buffer unit.
In the embodiment of the present invention, the electronic equipment can mutually should determine that the N after N number of browser page is loaded The cache contents corresponding to each browser page in individual browser page, you can mutually should determine that N number of cache contents, can also Referred to as N number of data.It is determined that after N number of data, the electronic equipment can be respectively provided with first mark for N number of data Remember information.So, the electronic equipment can be judged when needing to remove the data stored in the buffer unit, if Judge to determine that the data band that wherein has has first label information, for example, judge to determine wherein to have the first data band to have described the One label information, then can postpone removing first data, you can to preserve described first according to first label information Data, for example, other data without first label information can be removed first, are marked by other without described first After the data dump of note information is finished, if system resource is sufficient, first data are carried without removing, and if system Resource is still not enough, then can be further continued for removing the data with first label information.
Optionally, the electronic equipment can enter first before each data stored in removing the buffer unit Row judges, judges whether data to be purged are carried first label information by this.If it is determined that determining that this will be clear The data band removed has first label information, then the electronic equipment temporarily can not remove the data, you can be somebody's turn to do with preserving Data, and continue to remove other data.
Step 103:Input operation is obtained, and the input operation is responded, is that first data set first Label information.
The electronic equipment is loaded after first browser page, can be included first browser page in institute State in display module, user can check first browser page in the display module.
User is when checking first browser page, and may think that oneself needs regular to check that described first is clear Look at the device page, be required for re-starting loading if switching back into first browser page every time, it is clear that be inconvenient, it is necessary to Wait the long period.
Therefore, user can carry out the input operation for first browser page, and the electronic equipment is being obtained Obtain after the input operation, the input operation can be responded, be that first data set the first mark letter Breath.
For example, a kind of mode of the possible acquisition input operation can be:The electronic equipment can be carried to user For an Option Box, so that user chooses whether to set first label information for first browser page, wherein, First label information is set for first browser page, that is, first mark is set for first data Information.For example, can have following word content in the Option Box:" whether need to preserve the caching of the first browser page Content ", it is possible to be provided with two options, respectively "Yes" and "No", user can be selected, i.e., user can be carried out The input operation, and selection result is submitted, after user submits selection result, the electronic equipment can obtain the institute of user State input operation.If user have selected "Yes", the electronic equipment can be responded to the input operation, be described First data set the first label information, and if user have selected "No", then the electronic equipment can be grasped to the input As being responded, the first label information is not set for first data.
For example, a kind of mode of the possible acquisition input operation can be:Carried on the electronic equipment for user For the specific keys of a hardware, or provide the user on first browser page specific keys of a software, Either hardware button or software keys, as long as user presses the button, that is, are considered as user and have carried out the input operation, institute The input operation can be obtained by stating electronic equipment, it is possible to which the input operation is responded, and be that first data are set Put first label information.
Or, it is possibility to have others obtain the mode of the input operation, and the present invention is without limitation.
It is a kind of possible to set the mode of first label information be with for first data in the embodiment of the present invention It is:The each element included for first dom tree corresponding to first browser page sets the first mark letter Breath.
Wherein, in the embodiment of the present invention, each browser page can be corresponded to be included in a dom tree, a dom tree There is each element in corresponding browser page.When setting first label information for a data, can be should The each element that dom tree includes is respectively provided with first label information.
Preferably, in the embodiment of the present invention, first label information can include the son mark of at least one species Information, wherein the priority corresponding to the sub- label information of each species is different.For example, can be wrapped in first label information The first sub- label information and the second sub- label information are included, the priority of the first sub- label information is higher than the described second son mark Remember the priority of information.
So, can be the dom tree when each element included for a dom tree sets first label information The different elements included set different sub- label informations.If the electronic equipment is after other cache contents are removed Still deficiency is, it is necessary to remove each element that the dom tree with first label information includes for resource of uniting, then the electronics is set It is standby to be purged according to the priority of the sub- label information corresponding to each element in a dom tree.
For example, having two elements, respectively the first element and second element in the dom tree, first element is set There is the described first sub- label information, the second element is provided with the described second sub- label information, the first sub- label information Priority be higher than the described second sub- label information priority, then the electronic equipment can remove described second yuan first Element, after second element removing is finished, the electronic equipment can continue to judge whether system resource is sufficient, if will The second element removes that to finish rear system resource sufficient, then can be without remove first element again, if by institute State second element and remove that to finish rear system resource still not enough, then can continue to remove first element.Wherein, son is being set It during label information, can voluntarily be set, or can also automatically be set according to the significance level of each element by system by user Put.
For example, in a browser page, important content is probably word segment, and the content such as picture, video can It can be time part and parcel, then can be word segment corresponding of element setting first in dom tree in the browser page Label information, and corresponding element sets the second sub- label information in dom tree for Picture section in the browser page, it is described The priority of first sub- label information is higher than the priority of the described second sub- label information.For example, having two members in the dom tree Element, respectively the first element and second element, wherein first element is the corresponding element of word segment, first element The described first sub- label information is provided with, the second element is the corresponding element of Picture section, and the second element is provided with The second sub- label information.The electronic equipment can be removed described first in each element in needing the removing dom tree Second element, after second element removing is finished, the electronic equipment can continue to judge whether system resource is sufficient, If the second element removed, to finish rear system resource sufficient, can be without remove first element again, such as Fruit removes the second element that to finish rear system resource still not enough, then can continue to remove first element.
So, the data with first label information can be preserved, that is, postpones removing, can not be entered Row is removed or put it to and is finally purged, and on the one hand reduces the workload of the electronic equipment, mitigates system burden, separately On the one hand, user for a browser page when setting first label information, and selection can oneself be frequently necessary to Data corresponding to these browser pages are preserved, used by check or oneself more browser page interested Family is switched between browser page when checking, the electronic equipment, which is tried one's best, can ensure these browser pages without weight The new frequency for loading or reloading is relatively low, and the workload needed for the electronic equipment is less, and the stand-by period of user is shorter, Have switched directly to be checked, can more meet user's request.
Also, in the dom tree corresponding to a browser page, or different elements set different priorities First label information, so, can also root when needing to remove the cache contents with first label information It is purged, can be removed first for the element of low priority according to the different priorities of different elements, by low priority Element is removed finish after, can be without removing the element of high priority, low priority again if it is determined that determine that system resource is sufficient Element whether lack it is general do not interfere with user the browser page checked, so, even if there is Partial Elements clear Remove, user still can normally check the content of the browser page, and user's request is met as far as possible.
Step 104:When current browse webpage is switched to second browser page from first browser page, First data in the buffer unit are preserved based on first label information.
In the embodiment of the present invention, second browser is switched to from first browser page in current browse webpage During the page, such as described electronic equipment is by receiving the operation of user, by current browse webpage from first browser page Second browser page is switched to, then the electronic equipment can inquire described first in the buffer unit Corresponding first data of one browser page, after first data are inquired, the electronic equipment can be sentenced It is disconnected, judge whether first data have first label information.If it is determined that it is described to determine that first data have First label information, then the electronic equipment described the in the buffer unit can be preserved according to first label information One data.
In the embodiment of the present invention, after first data are preserved according to first label information, if the electronics Equipment receives the operation of user again, and current browse webpage has been switched back into described first from second browser page browses The device page, then the electronic equipment can directly according to first data display the first browser page, without again Loaded, display speed is very fast, and user can be made to view the content of oneself needs quickly.
Meanwhile, after first data are preserved according to first label information, if the electronic equipment is received again To the operation of user, current browse webpage first browser page is switched back into from second browser page, then The electronic equipment can inquire about the second data corresponding with second browser page in the buffer unit, in inquiry To after second data, the electronic equipment may determine that whether second data have first label information, such as Fruit judges that determination second data have first label information, then can be according to being preserved first label information Second data in buffer unit, if it is determined that determining that second data do not have first label information, then may be used So that second data stored in the buffer unit to be purged.
In the embodiment of the present invention, after first data are preserved according to first label information, if the electronics Equipment receives the operation of user again, and current browse webpage is switched into the 3rd browser page from second browser page Face, wherein, first browser page, second browser page and the 3rd browser page are different between two, Then the electronic equipment can be inquired about in the buffer unit the first data corresponding with first browser page and with Corresponding second data of second browser page, after first data and second data are inquired, the electricity Sub- equipment can judge whether first data have first label information respectively, and whether second data have First label information.If it is determined that determine that first data have first label information, then can be according to described First label information preserves first data in the buffer unit, if it is determined that determining that first data do not have institute The first label information is stated, then first data stored in the buffer unit can be purged.If likewise, sentenced It is disconnected to determine that second data have first label information, then the caching can be preserved according to first label information Second data in unit, then can be by if it is determined that determine that second data do not have first label information Second data stored in the buffer unit are purged.In the present embodiment, first data have described first Label information, then the electronic equipment described the stored in the buffer unit can be preserved according to first label information One data, and second data do not have first label information, then the electronic equipment can be by the buffer unit Second data of middle storage are purged.
And, after first data are preserved according to first label information, if the electronic equipment is received again The operation of user, is switched to the 3rd browser page, the electronics is set by current browse webpage from second browser page It is standby to inquire about whether have the 3rd data corresponding with the 3rd browser page in the buffer unit, if described slow Be stored with the 3rd data in memory cell, then the electronic equipment can be directly the 3rd according to the 3rd data display Browser page, if without the 3rd data are stored in the buffer unit, the electronic equipment needs loading described 3rd browser page, obtains the 3rd data corresponding with the 3rd browser page, it is possible to by described in acquisition In buffer unit described in 3rd data Cun Chudao.
Preferably, in the embodiment of the present invention, being preserved according to first label information after first data, if described Electronic equipment receives the operation of user again, and current browse webpage is switched into the 3rd browser from second browser page The page, the electronic equipment can preserve first data in the buffer unit according to first label information.And Before first data are preserved, the electronic equipment can first determine whether that the remaining space capacity in the buffer unit is The no capacity not less than corresponding 3rd data of the 3rd browser page, if it is determined that determining that the remaining space holds Amount is not less than the capacity of the 3rd data, then the electronic equipment can preserve first data, and can normally preserve 3rd data.If it is determined that determining that the remaining space capacity is less than the capacity of the 3rd data, then the electronics is set It is standby to need first data in the buffer unit being also purged.
Preferably, the first data described in the embodiment of the present invention correspond to the first dom tree.If the electronic equipment needs First data are removed, then each element that first dom tree includes can be purged.
Preferably, the first data described in the embodiment of the present invention correspond to the first dom tree, and the electronic equipment is for institute When each element that stating the first dom tree includes sets first label information, it can include not for first dom tree The sub- label information with different priorities is provided with according to its significance level with element.Then the electronic equipment is to described When one data are purged, the relatively low member of the priority of corresponding sub- label information in first dom tree can be removed first Element, after the relatively low element of the priority of corresponding sub- label information in first dom tree is purged, the electronics is set The standby capacity that can continue to judge whether the remaining space capacity is not less than the 3rd data, if now described remaining empty Between capacity be not less than the 3rd data capacity, then can stop in the removing to first data, first data Also retains Partial Elements, when user switches back into first browser page, the electronic equipment still ensure that by The main contents of first browser page are presented to user.And if described in now the remaining space capacity is also less than The capacity of 3rd data, then the electronic equipment can continue to remove the excellent of corresponding sub- label information in first dom tree The higher element of first level, by that analogy.
It is to ensure that the normal data to corresponding to the browser page newly opened are stored in the embodiment of the present invention Simultaneously, it is ensured that the corresponding data of browser page that user selects can be stored, so as to reduce the stand-by period of user, The opening of new browser page is not interfered with simultaneously yet.
The described information processing method in the present invention, the following examples master are introduced below by way of several specific embodiments Describe several possible application scenarios of methods described.It should be noted that the embodiment in the present invention is served only for explaining The present invention, and cannot be used for limitation the present invention, every embodiment for meeting inventive concept protection scope of the present invention it Interior, those skilled in the art know naturally how to carry out modification according to the thought of the present invention.
Embodiment one:
The electronic equipment is mobile phone, and the electronic equipment has buffer unit and display module, and the display module is For the display screen of mobile phone.A kind of browser is installed, user opens 3 browser pages in the display module in mobile phone Face, respectively the 1st browser page, the 2nd browser page and the 3rd browser page.
User is when opening the 3rd browser page, and the electronic equipment loads the 3rd browser page.Adding When carrying the 3rd browser page, the electronic equipment results in the 3rd number corresponding with the 3rd browser page According to, it is possible to by the 3rd data storage in the buffer unit.In the present embodiment, the 3rd data can be and institute State corresponding 3rd dom tree of the 3rd browser page.
User is after the 3rd browser page is opened, it is believed that oneself may need it is regular check described 3rd it is clear Look at the device page, be required for re-starting loading if switching back into the 3rd browser page every time, it is clear that be inconvenient, need Wait the long period.Therefore, user carries out the input operation, the electronic equipment for the 3rd browser page After the input operation is obtained, the input operation can be responded, be that the 3rd data set first mark Remember information.
In the present embodiment, the specific keys of a hardware are provided the user on the electronic equipment, user presses The button, that is, be considered as user and carried out the input operation, the electronic equipment can obtain the input operation, it is possible to right The input operation is responded, and is that the 3rd data set first label information.
In the present embodiment, the mode for being the 3rd data setting first label information can be:For described 3rd The each element that the 3rd dom tree corresponding to browser page includes sets first label information.
User may be operated again, and the electronic equipment is according to the operation of user, by current browse webpage from described 3rd browser page is switched to the 2nd browser page, and the electronic equipment can be in the buffer unit first Corresponding 3rd data of the 3rd browser page are inquired, after the 3rd data are inquired, the electronics is set It is standby to be judged, judge whether the 3rd data have first label information.If it is determined that determining the described 3rd Data have first label information, then the electronic equipment can preserve the caching list according to first label information First data in member, if it is determined that determine that the 3rd data do not have first label information, then the electronics The 3rd data stored in the buffer unit can be purged by equipment.In the present embodiment, judge to determine described the Three data have first label information, then the electronic equipment can preserve the caching according to first label information First data in unit.
Embodiment two:
The electronic equipment is PAD, and the electronic equipment has buffer unit and display module, and the display module is PAD display screen.A kind of browser is installed, user opens 3 browser pages in the display module in PAD, point Wei not the 1st browser page, the 2nd browser page and the 3rd browser page.
User is when opening the 3rd browser page, and the electronic equipment loads the 3rd browser page.Adding When carrying the 3rd browser page, the electronic equipment results in the 3rd number corresponding with the 3rd browser page According to, it is possible to by the 3rd data storage in the buffer unit.In the present embodiment, the 3rd data can be and institute State corresponding 3rd dom tree of the 3rd browser page.
User is after the 3rd browser page is opened, it is believed that oneself may need it is regular check described 3rd it is clear Look at the device page, be required for re-starting loading if switching back into the 3rd browser page every time, it is clear that be inconvenient, need Wait the long period.Therefore, user carries out the input operation, the electronic equipment for the 3rd browser page After the input operation is obtained, the input operation can be responded, be that the 3rd data set first mark Remember information.
In the present embodiment, the specific keys of a hardware are provided the user on the electronic equipment, user presses The button, that is, be considered as user and carried out the input operation, the electronic equipment can obtain the input operation, it is possible to right The input operation is responded, and is that the 3rd data set first label information.
In the present embodiment, the mode for being the 3rd data setting first label information can be:For described 3rd The each element that the 3rd dom tree corresponding to browser page includes sets first label information.
User may be operated again, and the electronic equipment is according to the operation of user, by current browse webpage from described 3rd browser page is switched to the 2nd browser page, and the electronic equipment can be in the buffer unit first Corresponding 3rd data of the 3rd browser page are inquired, after the 3rd data are inquired, the electronics is set It is standby to be judged, judge whether the 3rd data have first label information.If it is determined that determining the described 3rd Data have first label information, then the electronic equipment can preserve the caching list according to first label information First data in member, if it is determined that determine that the 3rd data do not have first label information, then the electronics The 3rd data stored in the buffer unit can be purged by equipment.In the present embodiment, judge to determine described the Three data have first label information, then the electronic equipment can preserve the caching according to first label information First data in unit.
Afterwards, the electronic equipment receives the operation of user again, by current browse webpage from the 2nd browser page Face is switched to the 1st browser page, now, if without preservation and the 1st browser in the buffer unit Corresponding first data of the page, then the electronic equipment need to reload the 1st browser page, obtain and described the Corresponding first data of 1 browser page, and first data are stored in the buffer unit.
And, when current browse webpage is switched into the 1st browser page from the 2nd browser page, The electronic equipment can be inquired about in the buffer unit the 3rd data corresponding with the 3rd browser page and Second data corresponding with the 2nd browser page, after the 3rd data and second data are inquired, The electronic equipment can judge whether the 3rd data and second data are respectively provided with first label information respectively, If it is determined that determining that the 3rd data have first label information, then the electronic equipment can be according to the described first mark Remember that information preserves the 3rd data in the buffer unit, if it is determined that determining that the 3rd data do not have described first Label information, then the electronic equipment the 3rd data stored in the buffer unit can be purged.This implementation In example, judge to determine that the 3rd data have first label information, then the electronic equipment can be according to described first Label information preserves the 3rd data stored in the buffer unit.Equally, if it is determined that determining the second data tool There is first label information, then the electronic equipment can be preserved in the buffer unit according to first label information Second data, if it is determined that determining that second data do not have first label information, then the electronic equipment can So that second data stored in the buffer unit to be purged.In the present embodiment, judge to determine second data Without first label information, then the electronic equipment can enter second data stored in the buffer unit Row is removed.
Embodiment three:
The electronic equipment is mobile phone, and the electronic equipment has buffer unit and display module, and the display module is For the display screen of mobile phone.Two kinds of browsers, respectively the first browser and the second browser are installed in mobile phone.User is described 3 browser pages are opened in display module, respectively the 1st browser page, the 2nd browser page and the 3rd are clear The device page is look at, wherein the 1st browser page and the 2nd browser page correspond to first browser, institute The 3rd browser page is stated corresponding to second browser.
User is when opening the 3rd browser page, and the electronic equipment loads the 3rd browser page.Adding When carrying the 3rd browser page, the electronic equipment results in the 3rd number corresponding with the 3rd browser page According to, it is possible to by the 3rd data storage in the buffer unit.In the present embodiment, the 3rd data can be and institute State corresponding 3rd dom tree of the 3rd browser page.
User is after the 3rd browser page is opened, it is believed that oneself may need it is regular check described 3rd it is clear Look at the device page, be required for re-starting loading if switching back into the 3rd browser page every time, it is clear that be inconvenient, need Wait the long period.Therefore, user carries out the input operation, the electronic equipment for the 3rd browser page After the input operation is obtained, the input operation can be responded, be that the 3rd data set first mark Remember information.
In the present embodiment, the specific keys of a hardware are provided the user on the electronic equipment, user presses The button, that is, be considered as user and carried out the input operation, the electronic equipment can obtain the input operation, it is possible to right The input operation is responded, and is that the 3rd data set first label information.
In the present embodiment, the mode for being the 3rd data setting first label information can be:For described 3rd The each element that the 3rd dom tree corresponding to browser page includes sets first label information.
User may be operated again, and the electronic equipment is according to the operation of user, by current browse webpage from described 3rd browser page is switched to the 2nd browser page, and the electronic equipment can be in the buffer unit first Corresponding 3rd data of the 3rd browser page are inquired, after the 3rd data are inquired, the electronics is set It is standby to be judged, judge whether the 3rd data have first label information.If it is determined that determining the described 3rd Data have first label information, then the electronic equipment can preserve the caching list according to first label information First data in member, if it is determined that determine that the 3rd data do not have first label information, then the electronics The 3rd data stored in the buffer unit can be purged by equipment.In the present embodiment, judge to determine described the Three data have first label information, then the electronic equipment can preserve the caching according to first label information First data in unit.
Afterwards, the electronic equipment receives the operation of user again, by current browse webpage from the 2nd browser page Face switches back into the 3rd browser page, and the electronic equipment can be the 3rd directly according to first data display Browser page, without re-starting loading, display speed is very fast, and user can be made to view the content of oneself needs quickly.
And, when current browse webpage is switched back into the 3rd browser page from the 2nd browser page, The electronic equipment can inquire about the second data corresponding with the 2nd browser page in the buffer unit, look into Ask after second data, the electronic equipment may determine that whether second data have first label information, If it is determined that determining that second data have first label information, then the electronic equipment can be according to the described first mark Remember that information preserves second data in the buffer unit, if it is determined that determining that second data do not have described first Label information, then the electronic equipment second data stored in the buffer unit can be purged.This implementation In example, judge to determine that second data do not have first label information, then the electronic equipment can be by the caching Second data stored in unit are purged.
Referring to Fig. 2, the embodiment of the present invention also provides a kind of information processing method, and methods described can apply to electronics and set Standby, can be provided with the electronic equipment in browser, the display module can show M browser page, and M can be with For the integer not less than 2.The main flow of methods described is as follows:
Step 201:When needing to remove M cache contents corresponding to the M browser page, the M are judged Whether there are N number of cache contents that there is the first label information in cache contents, N is no more than M positive integer.
When system resource is not enough, the electronic equipment may need to remove the M cache contents, that is, need to remove institute State each element that M dom tree includes.
Optionally, the electronic equipment, can be first before each cache contents in removing the M cache contents Judged, judge whether cache contents to be purged are carried first label information by this.
Optionally, the electronic equipment can first be judged before the M cache contents are removed, judge institute Whether state in the corresponding M cache contents of M browser page has the cache contents with first label information.
In the present embodiment, judge whether a cache contents are provided with first label information, can be specifically to judge Whether each element that the dom tree includes is provided with first label information.
Optionally, in the embodiment of the present invention, when setting first label information for a dom tree, usually should Corresponding each element is provided with first label information in dom tree, then the electronic equipment is sentenced to a dom tree When disconnected, as long as judging to determine that an element in the dom tree in corresponding each element is provided with first label information, you can Determine that the dom tree is provided with first label information.
Optionally, in the embodiment of the present invention, each element that the electronic equipment can also include to a dom tree is carried out Judge successively, whether each element included with determining whether the dom tree is provided with first label information, if it is determined that The each element that the dom tree includes is provided with first label information, you can determine that the dom tree is provided with first mark Remember information.
Step 202:When N number of cache contents have first label information, postpone removing in N number of caching Hold.
In the embodiment of the present invention, if it is determined that it is described to determine that N number of cache contents in the M cache contents have First label information, then the electronic equipment first can not remove N number of cache contents.
Preferably, in the embodiment of the present invention, if it is determined that determining N number of cache contents in the M cache contents With first label information, then the electronic equipment can first remove remaining M-N cache contents.By remaining M- After N number of cache contents removing is finished, if it is determined that determining that system resource is still not enough, then the electronic equipment can be further continued for clearly Except N number of cache contents.Wherein, when removing N number of cache contents, removing order can be any, or can also be by User is specified.
For example, the first cache contents carry first label information.A kind of possible situation is:In first caching Hold and correspond to the first dom tree, each element that first dom tree includes is provided with first label information, described the One label information only includes the sub- label information of a class, then the first label information all same set for each element, priority Also it is identical, when removing first cache contents, corresponding each element in first dom tree can simultaneously be carried out clear Remove.
For example, the first cache contents carry first label information.A kind of possible situation is:In first caching Hold and correspond to the first dom tree, each element that first dom tree includes is provided with first label information, described the One label information includes the sub- label information of at least two classes, and the corresponding priority of each sub- label information of class is different, and described first The priority for first label information that each element that dom tree includes is set is also corresponding different.Delay removing described first When depositing content, the electronic equipment can respectively be removed according to the different priorities of different elements, for example, can be clear first Except the element of low priority, after the removing of the element of low priority is finished, the electronic equipment can also judge system resource Whether sufficient, if system resource is enough, the electronic equipment can stop removing the element of high priority, not influence User avoids reloading as far as possible in the case of watching, and reduces the stand-by period of user, also reduces system workload.
The described information processing method in the present invention, the following examples master are introduced below by way of several specific embodiments Describe several possible application scenarios of methods described.It should be noted that the embodiment in the present invention is served only for explaining The present invention, and cannot be used for limitation the present invention, every embodiment for meeting inventive concept protection scope of the present invention it Interior, those skilled in the art know naturally how to carry out modification according to the thought of the present invention.
Embodiment four:
The electronic equipment is mobile phone, and the electronic equipment has display module, and the display module is the aobvious of mobile phone Display screen.A kind of browser is installed, user opens 3 browser pages in the display module in mobile phone, respectively One browser page, the second browser page and the 3rd browser page.
, it is necessary to remove in corresponding 3 cachings of 3 browser pages when the system resource of the electronic equipment is less Hold, wherein, the first browser page correspondence first cache contents, the second browser page correspondence described second Cache contents, the 3rd cache contents of the 3rd browser page correspondence.
The electronic equipment can first be judged before each cache contents are removed, judge that this will be to be purged Cache contents whether carry first label information.If it is determined that determining this by cache contents to be purged with described First label information, then the electronic equipment temporarily can not remove the cache contents, and continue to remove other cache contents.
In the present embodiment, the electronic equipment first determines whether that described first delays before first cache contents are removed Deposit content and whether carry in first label information, the present embodiment and judge to determine that first cache contents carry described first First cache contents are removed in label information, the then electronic equipment postponement, continue to remove second cache contents.
Before second cache contents are removed, first determine whether second cache contents whether with the described first mark Remember that judgement determination second cache contents are set with first label information, the then electronics in information, the present embodiment It is standby to postpone removing second cache contents, continue to remove the 3rd cache contents.
Before the 3rd cache contents are removed, first determine whether the 3rd cache contents whether with the described first mark Remember that judgement determination the 3rd cache contents are set without first label information, the then electronics in information, the present embodiment It is standby directly to remove the 3rd cache contents.
After the 3rd cache contents removing is finished, the electronic equipment may determine that whether system resource is enough, Electronic equipment described in the present embodiment judges to determine system resource enough, then the electronic equipment can not be cached to described first Content and second cache contents are purged.
Embodiment five:
The electronic equipment is PAD, and the electronic equipment has display module, and the display module is PAD display Screen.Two kinds of browsers are installed, user opens 3 browser pages in the display module, and respectively first is clear in PAD Look at the device page, the second browser page and the 3rd browser page, wherein, first browser page and described second is browsed The device page corresponds to the first browser, and the 3rd browser page corresponds to second of browser.
, it is necessary to remove in corresponding 3 cachings of 3 browser pages when the system resource of the electronic equipment is less Hold, wherein, the first browser page correspondence first cache contents, the second browser page correspondence described second Cache contents, the 3rd cache contents of the 3rd browser page correspondence.
The electronic equipment can first be judged before each cache contents are removed, judge that this will be to be purged Cache contents whether carry first label information.If it is determined that determining this by cache contents to be purged with described First label information, then the electronic equipment temporarily can not remove the cache contents, and continue to remove other cache contents.
In the present embodiment, the electronic equipment first determines whether that described first delays before first cache contents are removed Deposit content and whether carry in first label information, the present embodiment and judge to determine that first cache contents carry described first First cache contents are removed in label information, the then electronic equipment postponement, continue to remove second cache contents.
Before second cache contents are removed, first determine whether second cache contents whether with the described first mark Remember that judgement determination second cache contents are set with first label information, the then electronics in information, the present embodiment It is standby to postpone removing second cache contents, continue to remove the 3rd cache contents.
Before the 3rd cache contents are removed, first determine whether the 3rd cache contents whether with the described first mark Remember that judgement determination the 3rd cache contents are set without first label information, the then electronics in information, the present embodiment It is standby directly to remove the 3rd cache contents.
After the 3rd cache contents removing is finished, the electronic equipment may determine that whether system resource is enough, Electronic equipment described in the present embodiment judges that determination system resource is still not enough, then the electronic equipment can continue described in removing First cache contents and second cache contents.Wherein, first cache contents and second cache contents are being removed When, the electronic equipment can be purged in any order.When every removing finishes a cache contents, the electronics is set It is standby to may continue to be judged, judge whether system resource is enough, it is as long as judging to determine that system resource is enough, then described Electronic equipment can stop the removing to cache contents.
Embodiment six:
The electronic equipment is mobile phone, and the electronic equipment has display module, and the display module is the aobvious of mobile phone Display screen.Two kinds of browsers are installed, user opens 3 browser pages in the display module in mobile phone, respectively One browser page, the second browser page and the 3rd browser page, wherein, first browser page and described second Browser page corresponds to the first browser, and the 3rd browser page corresponds to second of browser.
, it is necessary to remove in corresponding 3 cachings of 3 browser pages when the system resource of the electronic equipment is less Hold, wherein, the first browser page correspondence first cache contents, the second browser page correspondence described second Cache contents, the 3rd cache contents of the 3rd browser page correspondence.
The electronic equipment can first be judged before each cache contents are removed, judge that this will be to be purged Cache contents whether carry first label information.If it is determined that determining this by cache contents to be purged with described First label information, then the electronic equipment temporarily can not remove the cache contents, and continue to remove other cache contents.
In the present embodiment, the electronic equipment first determines whether that described first delays before first cache contents are removed Deposit content and whether carry in first label information, the present embodiment and judge to determine that first cache contents carry described first First cache contents are removed in label information, the then electronic equipment postponement, continue to remove second cache contents.
Before second cache contents are removed, first determine whether second cache contents whether with the described first mark Remember that judgement determination second cache contents are set without first label information, the then electronics in information, the present embodiment It is standby can directly described second cache contents, after second cache contents removing is finished, the electronic equipment can be sentenced Whether disconnected system resource is enough, if it is determined that determining that system resource is enough, then the electronic equipment can stop slow to other The removing of content is deposited, if it is determined that determining that system resource is still not enough, then the electronic equipment can continue to remove the described 3rd Cache contents.Or, after second cache contents removing is finished, the electronic equipment can not also judge system resource Whether enough, the 3rd cache contents are directly removed.
Before the 3rd cache contents are removed, first determine whether the 3rd cache contents whether with the described first mark Remember that judgement determination the 3rd cache contents are set without first label information, the then electronics in information, the present embodiment It is standby directly to remove the 3rd cache contents.
After the 3rd cache contents removing is finished, the electronic equipment may determine that whether system resource is enough, Electronic equipment described in the present embodiment judges that determination system resource is still not enough, then the electronic equipment can continue described in removing First cache contents.
, can be with when each element that includes for first dom tree sets first label information in the present embodiment Distinguish different priority.In the present embodiment, first label information can include the sub- label information of three classes, and respectively One sub- label information, the second sub- label information and the 3rd sub- label information, the first sub- label information, the second son mark The priority of information and the priority orders of the 3rd sub- label information are:The priority > institutes of the first sub- label information State the priority of the 3rd sub- label information described in the priority > of the second sub- label information.
In the present embodiment, such as include three elements, respectively the first element, second element in described first dom tree And third element.First element is the corresponding element of word content, and the second element is the corresponding element of video content, The third element is the corresponding element of image content.
When setting first label information for first dom tree, the electronic equipment can be from described in behavior the One element sets the first sub- label information, is that the second element sets the second sub- label information, and is described the Three elements set the 3rd sub- label information.
Then, remove first cache contents when, the electronic equipment can according in first cache contents not With element, corresponding different priorities are purged.For example, the third element correspondence the 3rd sub- label information, described The corresponding priority of 3rd sub- label information is minimum, then can remove the third element first.The third element is clear After finishing, the electronic equipment can proceed to judge, judge whether system resource is enough, if it is determined that the system of determination money Source is enough, then the electronic equipment can stop the removing to remaining element, and if it is determined that determining system resource still Deficiency, then the electronic equipment can continue to remove the second element, likewise, the second element is removed after finishing, institute Stating electronic equipment can continue to judge whether system resource is enough, by that analogy.
Referring to Fig. 3, the embodiment of the present invention provides a kind of electronic equipment, and the electronic equipment can have buffer unit and aobvious At least one browser can be provided with by showing in module 301, the electronic equipment, at least one browser can support clear The browsing of the device page is look at, when the current browse webpage on the display module is switched to and described first from the first browser page During different the second browser page of browser page, it is corresponding that the electronic equipment can load second browser page Second data, while corresponding first data of the first browser page described in the buffer unit can be removed.The electronics Equipment can also include load-on module 302, acquisition module 303, setup module 304 and operation module 305.
Preferably, the electronic equipment can also include judge module 306 and handover module 307.
Load-on module 302 can be used for clear by a kind of browser loading described first at least one browser Look at the device page.
Acquisition module 303 can be used for obtaining the first data with first browser page, and described first is counted According to being buffered in the buffer unit.
Setup module 304 can be used for obtaining input operation, and the input operation is responded, and be first number According to setting the first label information.
Setup module 304 specifically can be used for setting first mark for each element that first dom tree includes Information.
Operation module 305 can be used for from first browser page being switched to described second in current browse webpage clear Look at the device page when, first data in the buffer unit are preserved based on first label information.
Operation module 305 specifically can be used for when first data have first label information, preserve described First data in buffer unit.
Operation module 305 specifically can be also used for removing second data in the buffer unit, and according to described First label information preserves first data in the buffer unit.
Operation module 305 specifically can be also used for when second data are not provided with first label information, remove Second data.
Judge module 306 can be used for from first browser page being switched to described second in current browse webpage clear Look at the device page when, judge first data whether have first label information.
Judge module 306 can be used for judging whether second data are provided with first label information.
In the embodiment of the present invention, first data can be the first dom tree.
Handover module 307 can be used for current browse webpage being switched to described first from second browser page clear Look at the device page.
Handover module 307 can be used for current browse webpage being switched to the 3rd browser from second browser page The page, first browser page, second browser page and the 3rd browser page are different between two.
Display module 301 can be used for the first browser page according to first data display.
Referring to Fig. 4, the embodiment of the present invention also provides a kind of electronic equipment, the electronic equipment can have buffer unit and It can be provided with least one browser, the display module that can to show M clear in display module, the electronic equipment Look at the device page, M can be the integer not less than 2.The electronic equipment can also include judge module 401 and operation module 402. Preferably, the electronic equipment in the present embodiment and the electronic equipment described in Fig. 3 embodiments can be same electronic equipment.
Judge module 401 can be used for when needing to remove M cache contents corresponding to the M browser page, Judge whether there are N number of cache contents that there is the first label information in the M cache contents, N is no more than M positive integer.
Judge module 401 specifically can be used for judging whether have N number of in M dom tree corresponding to the M cache contents First label information is provided with each element that dom tree includes.
Operation module 402 can be used for when N number of cache contents have first label information, postpone removing institute State N number of cache contents.
Operation module 402 can be also used for when N number of cache contents have first label information, remove described Remaining M-N cache contents in M cache contents.
Information processing method in the embodiment of the present invention can apply to the electronics with buffer unit and display module and set It is standby, at least one browser is installed, at least one browser can support browser page in the electronic equipment Browse, when the current browse webpage on the display module is switched to and first browser page from the first browser page During different second browser page, the electronic equipment can load corresponding second data of second browser page, Corresponding first data of first browser page on the buffer unit can be removed simultaneously, and methods described can include: First browser page is loaded by a kind of browser at least one browser;Acquisition is browsed with described first First data of the device page, and by first data buffer storage in the buffer unit;Input operation is obtained, and to the input Operation is responded, and is that first data set the first label information;Current browse webpage from first browser page When face is switched to second browser page, described first in the buffer unit is preserved based on first label information Data.
In the embodiment of the present invention, when obtaining first data corresponding with first browser page, Ke Yiwei First data set first label information, the so current browse webpage in the display module of the electronic equipment When being switched to second browser page from first browser page, institute can be preserved according to first label information First data stored in buffer unit are stated, i.e., are not purged first data, for example can be by described first Data are put into finally to be purged again, or can not remove first data, so, is easy to user to check described at any time One browser page, the electronic equipment from other browser pages without switching back into first browser page every time When reload first browser page, reduce the workload of the electronic equipment, alleviate the electronic equipment Burden, it is also more convenient for a user, it will not run into or less run into again when checking first browser page The situation of loading, reduces the stand-by period of user, improves Consumer's Experience.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the present invention can be used in one or more computers for wherein including computer usable program code The shape for the computer program product that usable storage medium is implemented on (including but is not limited to magnetic disk storage and optical memory etc.) Formula.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram are described.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and modification.

Claims (18)

1. a kind of information processing method, methods described is applied to the electronic equipment with buffer unit and display module, the electricity At least one browser is installed, at least one browser can support browsing for browser page, work as institute in sub- equipment The current browse webpage stated on display module is switched to different from first browser page from the first browser page During two browser pages, the electronic equipment can load corresponding second data of second browser page, while can Remove corresponding first data of the first browser page described in the buffer unit, it is characterised in that methods described include with Lower step:
First browser page is loaded by a kind of browser at least one browser;
The first data with first browser page are obtained, and by first data buffer storage in the buffer unit;
Input operation is obtained, and the input operation is responded, is that first data set the first label information;
When current browse webpage is switched to second browser page from first browser page, based on described first Label information preserves first data in the buffer unit;
Wherein, first browser page and second browser page correspond to same browser, or correspond to respectively In different browsers.
2. the method as described in claim 1, it is characterised in that the buffer unit is being preserved based on first label information In first data before also include step:In current browse webpage described is switched to from first browser page During two browser pages, judge whether first data have first label information;
The step of preserving first data in the buffer unit based on first label information includes:When described first When data have first label information, first data in the buffer unit are preserved.
3. the method as described in claim 1, it is characterised in that first data are the first document object model dom tree.
4. method as claimed in claim 3, it is characterised in that the step of setting the first label information for first data is wrapped Include:The each element included for the first document object model dom tree sets first label information.
5. the method as described in claim 1, it is characterised in that the buffer unit is being preserved based on first label information In first data after also include step:
Current browse webpage is switched to first browser page from second browser page;
The first browser page according to first data display.
6. the method as described in claim 1, it is characterised in that the buffer unit is being preserved based on first label information In first data after also include step:
Current browse webpage is switched to the 3rd browser page, the first browser page from second browser page Face, second browser page and the 3rd browser page are different between two;
Second data in the buffer unit are removed, and are preserved according to first label information in the buffer unit First data.
7. method as claimed in claim 6, it is characterised in that before second data in removing the buffer unit Also include step:Judge whether second data are provided with first label information;
The step of removing second data in the buffer unit includes:When second data are not provided with first mark When remembering information, second data are removed.
8. method as claimed in claim 6, it is characterised in that the buffer unit is being preserved according to first label information In first data before also include step:Judge whether the remaining space capacity in the buffer unit is not less than and institute State the capacity of the 3rd data corresponding to the 3rd browser page;
The step of preserving first data in the buffer unit according to first label information includes:When the residue When spatial content is not less than the capacity of the 3rd data, the institute in the buffer unit is preserved according to first label information State the first data.
9. method as claimed in claim 8, it is characterised in that whether the remaining space capacity in the buffer unit is judged Not less than with also including step after the capacity of the 3rd data corresponding to the 3rd browser page:When the remaining space When capacity is less than the capacity of the 3rd data, the 3rd data are removed, or remove each included by the 3rd data Partial Elements in element, so that the buffer unit can store the 3rd data.
10. a kind of electronic equipment, the electronic equipment have be provided with buffer unit and display module, the electronic equipment to A kind of few browser, at least one browser can support browsing for browser page, when working as on the display module Preceding browsing pages from the first browser page be switched to second browser pages different from first browser page when, institute Corresponding second data of second browser page can be loaded by stating electronic equipment, while can remove in the buffer unit Corresponding first data of first browser page, it is characterised in that the electronic equipment includes:
Load-on module, for loading first browser page by a kind of browser at least one browser;
Acquisition module, for obtaining the first data with first browser page, and by first data buffer storage in institute State buffer unit;
Setup module, is responded for obtaining input operation, and to the input operation, is that first data set first Label information;
Operation module, for being switched to second browser page from first browser page in current browse webpage When, first data in the buffer unit are preserved based on first label information;
Wherein, first browser page and second browser page correspond to same browser, or correspond to respectively In different browsers.
11. electronic equipment as claimed in claim 10, it is characterised in that the electronic equipment also includes judge module, is used for When current browse webpage is switched to second browser page from first browser page, first data are judged Whether there is first label information;
The operation module specifically for:When first data have first label information, the caching is preserved single First data in member.
12. electronic equipment as claimed in claim 10, it is characterised in that first data are the first document object model Dom tree.
13. electronic equipment as claimed in claim 12, it is characterised in that the setup module specifically for:For described first The each element that document object model dom tree includes sets first label information.
14. electronic equipment as claimed in claim 10, it is characterised in that the electronic equipment also includes handover module, is used for Current browse webpage is switched to first browser page from second browser page;
The display module is used for the first browser page according to first data display.
15. electronic equipment as claimed in claim 10, it is characterised in that the electronic equipment also includes handover module, is used for Current browse webpage is switched to the 3rd browser page, first browser page, institute from second browser page State the second browser page and the 3rd browser page is different between two;
The operation module is specifically additionally operable to:Second data in the buffer unit are removed, and according to the described first mark Remember that information preserves first data in the buffer unit.
16. electronic equipment as claimed in claim 15, it is characterised in that the electronic equipment also includes judge module, is used for Judge whether second data are provided with first label information;
The operation module is specifically additionally operable to:When second data are not provided with first label information, described the is removed Two data.
17. electronic equipment as claimed in claim 15, it is characterised in that the electronic equipment also includes judge module, is used for Judge whether the remaining space capacity in the buffer unit is not less than and the 3rd number corresponding to the 3rd browser page According to capacity;
The operation module is specifically additionally operable to:When the remaining space capacity is not less than the capacity of the 3rd data, according to First label information preserves first data in the buffer unit.
18. electronic equipment as claimed in claim 17, it is characterised in that the operation module is specifically additionally operable to:When described surplus When complementary space capacity is less than the capacity of the 3rd data, removes and wrapped in the 3rd data, or removing the 3rd data Partial Elements in each element included, so that the buffer unit can store 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 CN104035921A (en) 2014-09-10
CN104035921B true 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)

Families Citing this family (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
CN107066524B (en) * 2017-02-20 2020-01-07 平安科技(深圳)有限公司 Method and device for displaying product items
CN108280105B (en) * 2017-03-08 2020-12-04 阿里巴巴(中国)有限公司 HTTP caching method and device and user terminal
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
CN116431233B (en) * 2023-02-28 2024-04-09 北京思明启创科技有限公司 Resource loading method, device, equipment and storage medium

Citations (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
CN101150803A (en) * 2007-10-24 2008-03-26 优视动景(北京)技术服务有限公司 Method for micro-browser to process network data, micro-browser and its server
CN101251858A (en) * 2008-03-12 2008-08-27 腾讯科技(深圳)有限公司 Data managing method in multiple page browsers and browsers
CN102841901A (en) * 2011-06-23 2012-12-26 腾讯科技(深圳)有限公司 Web page display method and device

Patent Citations (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
CN101150803A (en) * 2007-10-24 2008-03-26 优视动景(北京)技术服务有限公司 Method for micro-browser to process network data, micro-browser and its server
CN101251858A (en) * 2008-03-12 2008-08-27 腾讯科技(深圳)有限公司 Data managing method in multiple page browsers and browsers
CN102841901A (en) * 2011-06-23 2012-12-26 腾讯科技(深圳)有限公司 Web page display method and device

Also Published As

Publication number Publication date
CN104035921A (en) 2014-09-10

Similar Documents

Publication Publication Date Title
CN104035921B (en) A kind of information processing method and electronic equipment
CN105094557B (en) A kind of display control method and device, electronic equipment
CN103677942B (en) A kind of method and apparatus of movable terminal to browse network pictures
CN103189853B (en) For the method and apparatus providing efficient context classification
CN107463627A (en) A kind of picture loading method and terminal
CN107077663A (en) To the processing based on cloud and local annex in communications applications
CN107256155A (en) Menu adaptation method, server and the readable storage medium storing program for executing of background management system
CN108804188A (en) Changing an interface skin method and device
CN106776036A (en) A kind of resource allocation methods and device
CN105283845A (en) Display object pre-generation
CN106649639A (en) Page display method and device
CN107944000A (en) Flight freight rate update method, device, electronic equipment, storage medium
CN106468984A (en) A kind of method of item associations picture rapid preview and device
CN104937551B (en) Computer implemented method for the power in management equipment and the system for the power in management equipment
CN106331178A (en) Information sharing method and mobile terminal
CN104503831A (en) Equipment optimization method and device
CN108171783A (en) Image rendering method, system and electronic equipment
CN107302666A (en) Photographic method, mobile terminal and computer-readable recording medium
CN106201224A (en) The method and device that a kind of batch data processes
CN109361947A (en) Internet resources batch loading method, smart television, storage medium and device
CN106775394B (en) Content revealing method, device and electronic equipment, storage medium
CN107515907B (en) The display methods and device of browser page
CN104346463A (en) Loading method and device of page label and browser client
CN103543901B (en) The method and apparatus generating menu
CN104272712B (en) Subscriber equipment and method of controlling operation thereof thereof

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