CN110347465A - A kind of data maintaining method and device - Google Patents
A kind of data maintaining method and device Download PDFInfo
- Publication number
- CN110347465A CN110347465A CN201910584199.XA CN201910584199A CN110347465A CN 110347465 A CN110347465 A CN 110347465A CN 201910584199 A CN201910584199 A CN 201910584199A CN 110347465 A CN110347465 A CN 110347465A
- Authority
- CN
- China
- Prior art keywords
- data
- tab
- bookmark
- content
- list
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention provides a kind of data maintaining method and devices, wherein this method comprises: receiving the data that multiple Tab bookmarks generate in the page from same entrance, wherein the data include Data Identification ID, data content and the corresponding Tab bookmark ID of data;According to the Data Identification ID, the data content and the corresponding Tab bookmark ID of the data are updated pre-set data list, wherein, the data list includes the Tab bookmark ID of current presentation, the set of Tab bookmark, data acquisition system and data statistics result, the data acquisition system includes the data ID occurred in Tab bookmark and the set of corresponding data content, the data statistics result is the number that data occur in the multiple Tab bookmark, therefore, it can solve the data sequence that back end interface layer is provided, by way of the formatting of front end, it is reassembled as the data format that rendering needs, in the case where data volume is big, it is possible that the problem of rendering delay.
Description
Technical field
The present invention relates to field of computer technology, in particular to a kind of data maintaining method and device.
Background technique
With the development of big data era, the visualization of data, graphical interaction become a kind of inevitable trend, in front end
The page carries out the displaying and analysis of data by the different type of data, different dimensions, but data only do increment, and volume can be excessively
It is huge, cause the EMS memory occupation of browser excessive, page Caton.Especially public security, in terms of, have many demands
Scene.
It is in the related technology transverse direction Tab bookmark, the mode display data content of longitudinal data list.Each Tab bookmark can
It is considered as a data acquisition system, each data can check detailed content again, and same data is likely to appear in multiple Tab bookmarks
In.When can solve page switching and the switching of Tab bookmark, the data mode checked before jumping out can be retained.
For the demand for solving multiple scenes, the data sequence that back end interface layer is provided passes through the side of the formatting of front end
Formula is reassembled as the data format that rendering needs.Solve the problems, such as that overlapping development, release develop and need to put into when safeguarding artificial
The drawbacks of cost, this solution is that the data returned in front end need to recombinate, may in the case where data volume is big
The problem of will appear rendering delay.
Big for web data amount in the related technology, volume is excessively huge, leads to the excessive page card of browser EMS memory occupation
The problem of pausing, not yet proposition solution.
Summary of the invention
The embodiment of the invention provides a kind of data maintaining method and devices, at least to solve web data in the related technology
The problem of amount is big, and volume is excessively huge, leads to browser EMS memory occupation excessive page Caton.
According to one embodiment of present invention, a kind of data maintaining method is provided, comprising:
The data that multiple Tab bookmarks generate in the page are received from same entrance, wherein the data include Data Identification
ID, data content and the corresponding Tab bookmark ID of data;
According to the Data Identification ID, the data content and the corresponding Tab bookmark ID of the data to presetting
Data list be updated, wherein the data list includes the set of Tab bookmark ID, the Tab bookmark of current presentation, number
According to set and data statistics as a result, the data acquisition system includes the data ID occurred in Tab bookmark and corresponding data content
Set, the data statistics result are the number that data occur in the multiple Tab bookmark.
Optionally, according to the Data Identification ID, the data content and the corresponding Tab bookmark ID of the data to pre-
The data list being first arranged, which is updated, includes:
When the data content is new content, by the Data Identification ID, the data content and the data
At least one of corresponding Tab bookmark ID is added in the data list;
When the data content is to delete content, the correspondence of data ID described in the data statistics result is updated or deleted
Number.
Optionally, by the Data Identification ID, the data content and the corresponding Tab bookmark ID of the data at least
One of be added in the data list and include:
Judge that the data ID and corresponding Tab bookmark ID of the data whether there is in the data list;
According to the result of judgement by the Data Identification ID, the data content and the corresponding Tab bookmark of the data
At least one of ID is added in the data list.
Optionally, according to the result of judgement that the Data Identification ID, the data content and the data are corresponding
At least one of Tab bookmark ID, which is added in the data list, includes:
In the case where judging result is is no, the data ID is added to the data with corresponding data content
In set, the Tab bookmark ID is added in the set of the Tab bookmark, and add institute in the data statistics result
State the corresponding number of data ID;
In the case where judging result is is to be, the corresponding number of data ID described in the data statistics result is added
1;
It is present in the data list in the data ID, the Tab bookmark ID is not present in the data list
In the case of, the corresponding number of data ID described in the data statistics result is added 1, and the Tab bookmark ID is added to institute
In the set for stating Tab bookmark;
It is not present in the data list in the data ID, the Tab bookmark ID is present in the data list
In the case of, the data ID is added in the data acquisition system with corresponding data content, and in the data statistics result
It is middle to add the corresponding number of the data ID.
Optionally, it updates or deletes the corresponding number of data ID described in the data statistics result and include:
Judge whether the corresponding number of data ID described in the data statistics result is greater than 1;
In the case where the judgment result is yes, the corresponding number of the data ID is subtracted 1 in the data statistics result;
If the determination result is NO, data ID described in the data statistics result is deleted with corresponding number
It removes, and the data ID in the data acquisition system is deleted with corresponding data content.
Optionally, ID pairs of Tab bookmark corresponding according to the Data Identification ID, the data content and the data
After pre-set data list is updated, the method also includes:
Traverse the data list;
Inquire the data ID that data statistics result is 0 in the data list;
Delete the corresponding data content of data ID described in the data acquisition system.
Optionally, the set of the Tab bookmark includes: Tab bookmark ID and the corresponding content of the Tab bookmark ID,
In, the corresponding content of the Tab bookmark ID includes the title of Tab bookmark ID, Tab bookmark, data type, each Tab bookmark packet
The data acquisition system contained, the data ID of current presentation in Tab bookmark.
According to another embodiment of the invention, a kind of data maintaining apparatus is additionally provided, comprising:
Receiving module, for receiving the data that multiple Tab bookmarks generate in the page from same entrance, wherein the data
Including Data Identification ID, data content and the corresponding Tab bookmark ID of data;
Update module, for according to the Data Identification ID, the data content and the corresponding Tab bookmark of the data
ID is updated pre-set data list, wherein and the data list includes the Tab bookmark ID of current presentation, and Tab pages
The set of label, data acquisition system and data statistics as a result, the data acquisition system include the data ID that occurs in Tab bookmark with it is corresponding
The set of data content, the data statistics result are the number that data occur in the multiple Tab bookmark.
Optionally, the update module includes:
Submodule is added, is used for when the data content is new content, it will be in the Data Identification ID, the data
At least one of appearance and the corresponding Tab bookmark ID of the data are added in the data list;
Submodule is updated, for updating or deleting the data statistics result when the data content is to delete content
Described in the corresponding number of data ID.
Optionally, the addition submodule includes:
First judging unit, for judging that the data ID and corresponding Tab bookmark ID of the data whether there is in institute
It states in data list;
Adding unit, for according to the result of judgement by the Data Identification ID, the data content and the data
At least one of corresponding Tab bookmark ID is added in the data list.
Optionally, the adding unit, is also used to
In the case where judging result is is no, the data ID is added to the data with corresponding data content
In set, the Tab bookmark ID is added in the set of the Tab bookmark, and add institute in the data statistics result
State the corresponding number of data ID;
In the case where judging result is is to be, the corresponding number of data ID described in the data statistics result is added
1;
It is present in the data list in the data ID, the Tab bookmark ID is not present in the data list
In the case of, the corresponding number of data ID described in the data statistics result is added 1, and the Tab bookmark ID is added to institute
In the set for stating Tab bookmark;
It is not present in the data list in the data ID, the Tab bookmark ID is present in the data list
In the case of, the data ID is added in the data acquisition system with corresponding data content, and in the data statistics result
It is middle to add the corresponding number of the data ID.
Optionally, the update submodule includes:
Second judgment unit, for judging whether the corresponding number of data ID described in the data statistics result is greater than 1;
Unit is reduced, is used in the case where the judgment result is yes, by the data ID in the data statistics result
Corresponding number subtracts 1;
Delete unit, for if the determination result is NO, by data ID described in the data statistics result with
Corresponding number is deleted, and the data ID in the data acquisition system is deleted with corresponding data content.
Optionally, described device further include:
Spider module, for traversing the data list;
Enquiry module, for inquiring the data ID that data statistics result is 0 in the data list;
Removing module, for deleting the corresponding data content of data ID described in the data acquisition system.
Optionally, the set of the Tab bookmark includes: Tab bookmark ID and the corresponding content of the Tab bookmark ID,
In, the corresponding content of the Tab bookmark ID includes the title of Tab bookmark ID, Tab bookmark, data type, each Tab bookmark packet
The data acquisition system contained, the data ID of current presentation in Tab bookmark.
According to still another embodiment of the invention, a kind of storage medium is additionally provided, meter is stored in the storage medium
Calculation machine program, wherein the computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
According to still another embodiment of the invention, a kind of electronic device, including memory and processor are additionally provided, it is described
Computer program is stored in memory, the processor is arranged to run the computer program to execute any of the above-described
Step in embodiment of the method.
Through the invention, it by receiving the data that multiple Tab bookmarks generate in the page from same entrance, and updates to preparatory
In the data list of setting, wherein the data list includes the set of Tab bookmark ID, the Tab bookmark of current presentation, data
Set and data statistics as a result, due in data list identical data ID corresponding data content only save once, only in number
Increase the number of appearance in result according to statistics, is stored so as to avoid the repetition of identical data, so that data volume relative decrease,
Therefore, it can solve that web data amount in the related technology is big, and volume is excessively huge, lead to the excessive page card of browser EMS memory occupation
The problem of pausing.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of hardware block diagram of the mobile terminal of data maintaining method of the embodiment of the present invention;
Fig. 2 is the flow chart of data maintaining method according to an embodiment of the present invention;
Fig. 3 is the block diagram of data maintaining apparatus according to an embodiment of the present invention;
Fig. 4 is the block diagram one of data maintaining apparatus according to the preferred embodiment of the invention;
Fig. 5 is the block diagram two of data maintaining apparatus according to the preferred embodiment of the invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting
In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
Embodiment 1
Embodiment of the method provided by the embodiment of the present application one can be in mobile terminal, terminal or similar fortune
It calculates and is executed in device.For running on mobile terminals, Fig. 1 is a kind of movement of data maintaining method of the embodiment of the present invention
The hardware block diagram of terminal, as shown in Figure 1, mobile terminal 10 may include at one or more (only showing one in Fig. 1)
It manages device 102 (processing unit that processor 102 can include but is not limited to Micro-processor MCV or programmable logic device FPGA etc.)
Memory 104 for storing data, optionally, above-mentioned mobile terminal can also include the transmission device for communication function
106 and input-output equipment 108.It will appreciated by the skilled person that structure shown in FIG. 1 is only to illustrate, simultaneously
The structure of above-mentioned mobile terminal is not caused to limit.For example, mobile terminal 10 may also include it is more than shown in Fig. 1 or less
Component, or with the configuration different from shown in Fig. 1.
Memory 104 can be used for storing computer program, for example, the software program and module of application software, such as this hair
The corresponding computer program of message method of reseptance in bright embodiment, processor 102 are stored in memory 104 by operation
Computer program realizes above-mentioned method thereby executing various function application and data processing.Memory 104 may include
High speed random access memory, may also include nonvolatile memory, as one or more magnetic storage device, flash memory or its
His non-volatile solid state memory.In some instances, memory 104 can further comprise remotely setting relative to processor 102
The memory set, these remote memories can pass through network connection to mobile terminal 10.The example of above-mentioned network includes but not
It is limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Transmitting device 106 is used to that data to be received or sent via a network.Above-mentioned network specific example may include
The wireless network that the communication providers of mobile terminal 10 provide.In an example, transmitting device 106 includes a Network adaptation
Device (Network Interface Controller, referred to as NIC), can be connected by base station with other network equipments to
It can be communicated with internet.In an example, transmitting device 106 can for radio frequency (Radio Frequency, referred to as
RF) module is used to wirelessly be communicated with internet.
Based on above-mentioned mobile terminal, a kind of data maintaining method is present embodiments provided, Fig. 2 is to implement according to the present invention
The flow chart of the data maintaining method of example, as shown in Fig. 2, the process includes the following steps:
Step S202 receives the data that multiple Tab bookmarks generate in the page from same entrance, wherein the data include
Data Identification ID, data content and the corresponding Tab bookmark ID of data;
Step S204, it is ID pairs of Tab bookmark corresponding according to the Data Identification ID, the data content and the data
Pre-set data list is updated, wherein the data list includes Tab bookmark ID, the Tab bookmark of current presentation
Set, data acquisition system and data statistics are as a result, the data acquisition system includes the data ID and corresponding data occurred in Tab bookmark
The set of content, the data statistics result are the number that data occur in the multiple Tab bookmark.
S202 to S204 through the above steps, by receiving the data that multiple Tab bookmarks generate in the page from same entrance,
And update into pre-set data list, wherein the data list includes Tab bookmark ID, the Tab bookmark of current presentation
Set, data acquisition system and data statistics as a result, due in data list identical data ID corresponding data content only save one
It is secondary, only increase the number of appearance in data statistics result, is stored so as to avoid the repetition of identical data, so that data volume
Therefore product relative decrease can solve that web data amount in the related technology is big, and volume is excessively huge, browser memory is caused to account for
The problem of used big page Caton.
In the embodiment of the present invention, above-mentioned steps S204 be can specifically include:
S2041, when the data content is new content, by the Data Identification ID, the data content and institute
At least one of corresponding Tab bookmark ID of data is stated to be added in the data list;
S2042 updates or deletes data described in the data statistics result when the data content is to delete content
The corresponding number of ID.
Optionally, above-mentioned steps S2041 can specifically include:
Judge that the data ID and corresponding Tab bookmark ID of the data whether there is in the data list;
According to the result of judgement by the Data Identification ID, the data content and the corresponding Tab bookmark of the data
At least one of ID is added in the data list.
Further, in the case where judging result is is no, the data ID is added with corresponding data content
Into the data acquisition system, the Tab bookmark ID is added in the set of the Tab bookmark, and in the data statistics knot
The corresponding number of the data ID is added in fruit;
In the case where judging result is is to be, the corresponding number of data ID described in the data statistics result is added
1;
It is present in the data list in the data ID, the Tab bookmark ID is not present in the data list
In the case of, the corresponding number of data ID described in the data statistics result is added 1, and the Tab bookmark ID is added to institute
In the set for stating Tab bookmark;
It is not present in the data list in the data ID, the Tab bookmark ID is present in the data list
In the case of, the data ID is added in the data acquisition system with corresponding data content, and in the data statistics result
It is middle to add the corresponding number of the data ID.
Optionally, above-mentioned steps S2042 can specifically include:
Judge whether the corresponding number of data ID described in the data statistics result is greater than 1;
In the case where the judgment result is yes, the corresponding number of the data ID is subtracted 1 in the data statistics result;
If the determination result is NO, data ID described in the data statistics result is deleted with corresponding number
It removes, and the data ID in the data acquisition system is deleted with corresponding data content.
The embodiment of the present invention, for be further reduced data occupancy memory, by data list in multiple tab page label
It is not deleted in the data ID of appearance and corresponding content, specifically, traverses the data list, inquire in the data list
The data ID that data statistics result is 0, deletes the corresponding data content of data ID described in the data acquisition system.
The set of above-mentioned Tab bookmark in the embodiment of the present invention may include: the Tab bookmark ID and Tab bookmark ID
Corresponding content, wherein the corresponding content of the Tab bookmark ID includes the title of Tab bookmark ID, Tab bookmark, data type,
The data acquisition system that each Tab bookmark includes, the data ID of current presentation in Tab bookmark.
The embodiment of the present invention is completed storage using data input server and is calculated, and user can pass through APP, page end, letter
The modes such as breath push, mail push obtain monitoring data.
Through the embodiment of the present invention, can mouse kind situation in intellectual analysis monitoring range, auxiliary mouse suffers from control personnel and opens
Targeted rat destruction is opened up, kills rats and takes action, proposes the success rate of high rodent infestation preventing and controlling to a certain extent.
Various dimensions, the local data maintenance scheme for reducing volume use JSON format (JavaScript Object
Notation, JS Format Object store and indicate data using the steady format for being totally independent of programming language), data packet
The set of Tab bookmark Id, Tab bookmark containing current presentation, data acquisition system, data statistics are as follows:
In above example, current is that Tab the bookmark Id, navtabs of current presentation are the set of Tab bookmark,
Filedat is data acquisition system, and filecount is data statistics result.
Navtabs: using the Id of Tab bookmark as Key, value includes tabid (Tab bookmark Id), and (Tab pages of tabtitle
The title of label, for showing), tabtype (data type), filelist (data acquisition system that each Tab bookmark includes),
Grouplist (population data that each Tab bookmark includes), current (the data Id that displaying is defaulted in the Tab bookmark).
Filedata: using data Id as key, value is the corresponding detailed content of data.
Filecount: using data Id as key, value is the summation that the data occur in different Tab bookmarks, when certain
When data statistics result is 0, corresponding data are deleted, from filedata to achieve the purpose that releasing memory.
By taking functional module is related to the operations such as data set in Tab bookmark and Tab is newly-increased, deletes, switches as an example, to simplify data
Formatting step safeguards data format using the mode of sole inlet:
/**
*@name Utils#updateFileData
*@function
*@param { Object } data[must be filled out]
*@param { String } type:
ChangeTab/changeItem/del/addItem/add/changeKey[must be filled out]
*@param { String } tabData:tabId[is optional]
*@desc safeguards profile page data structure.
*/
updateFileData:function(type,arg,callback){
switch(type){
case'del':
Single data in // deletion Tab data set
break;
case'changeTab':
Data set changes in //Tab, such as switches transverse direction Tab and shows
break;
case'changeItem':
Data variation in //Tab data set such as switches longitudinal data and shows
break;
case'addItem':
In //Tab data set, increase data
break;
case'changeKey':
The display data variation of // default
break;
default:
// increase Tab data set
break;
}
}
After the data for assembling needs, being transmitted to specific page progress data parsing can show for different types of data etc.
Different page effect out.
Data are passed to by unified entrance, by different situations, data enter respective process flow, as follows:
updateFileData(‘add’,data{},func)
addTabDataAction(snapshot,data{},func)
Illustrate:
UpdateFileData is that data unify entrance;
The operation is as increasing Tab data set in data;
AddTabDataAction is the process that processing increases Tab data set, and wherein snapshot is already present at present
Data;
The data handled well are stored in the local cache of browser;
localStorage(key,data)
After data are stored in local cache, callback is called to trigger page re-rendered;
For different type and the data of dimension, rendering effect.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing
The part that technology contributes can be embodied in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate
Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
The embodiment of the present invention additionally provides a kind of data maintaining apparatus, and the device is for realizing above-described embodiment and preferably
Embodiment, the descriptions that have already been made will not be repeated.As used below, predetermined function may be implemented in term " module "
The combination of software and/or hardware.Although device described in following embodiment is preferably realized with software, hardware, or
The realization of the combination of person's software and hardware is also that may and be contemplated.
Fig. 3 is the block diagram of data maintaining apparatus according to an embodiment of the present invention, as shown in Figure 3, comprising:
Receiving module 32, for receiving the data that multiple Tab bookmarks generate in the page from same entrance, wherein the number
According to including Data Identification ID, data content and the corresponding Tab bookmark ID of data;
Update module 34, for Tab pages corresponding according to the Data Identification ID, the data content and the data
Label ID is updated pre-set data list, wherein the data list includes Tab the bookmark ID, Tab of current presentation
The set of bookmark, data acquisition system and data statistics as a result, the data acquisition system include the data ID that occurs in Tab bookmark with it is right
The set of data content is answered, the data statistics result is the number that data occur in the multiple Tab bookmark.
Fig. 4 is the block diagram one of data maintaining apparatus according to the preferred embodiment of the invention, as shown in figure 4, the update mould
Block 34 includes:
Submodule 42 is added, is used for when the data content is new content, by the Data Identification ID, the data
At least one of content and the corresponding Tab bookmark ID of the data are added in the data list;
Submodule 44 is updated, for updating or deleting the data statistics knot when the data content is to delete content
The corresponding number of data ID described in fruit.
Optionally, the addition submodule 42 includes:
First judging unit, for judging that the data ID and corresponding Tab bookmark ID of the data whether there is in institute
It states in data list;
Adding unit, for according to the result of judgement by the Data Identification ID, the data content and the data
At least one of corresponding Tab bookmark ID is added in the data list.
Optionally, the adding unit 54, is also used to
In the case where judging result is is no, the data ID is added to the data with corresponding data content
In set, the Tab bookmark ID is added in the set of the Tab bookmark, and add institute in the data statistics result
State the corresponding number of data ID;
In the case where judging result is is to be, the corresponding number of data ID described in the data statistics result is added
1;
It is present in the data list in the data ID, the Tab bookmark ID is not present in the data list
In the case of, the corresponding number of data ID described in the data statistics result is added 1, and the Tab bookmark ID is added to institute
In the set for stating Tab bookmark;
It is not present in the data list in the data ID, the Tab bookmark ID is present in the data list
In the case of, the data ID is added in the data acquisition system with corresponding data content, and in the data statistics result
It is middle to add the corresponding number of the data ID.
Optionally, the update submodule 44 includes:
Second judgment unit, for judging whether the corresponding number of data ID described in the data statistics result is greater than 1;
Unit is reduced, is used in the case where the judgment result is yes, by the data ID in the data statistics result
Corresponding number subtracts 1;
Delete unit, for if the determination result is NO, by data ID described in the data statistics result with
Corresponding number is deleted, and the data ID in the data acquisition system is deleted with corresponding data content.
Fig. 5 is the block diagram two of data maintaining apparatus according to the preferred embodiment of the invention, as shown in figure 5, shown, the dress
It sets further include:
Spider module 52, for traversing the data list;
Enquiry module 54, for inquiring the data ID that data statistics result is 0 in the data list;
Removing module 56, for deleting the corresponding data content of data ID described in the data acquisition system.
Optionally, the set of the Tab bookmark includes: Tab bookmark ID and the corresponding content of the Tab bookmark ID,
In, the corresponding content of the Tab bookmark ID includes the title of Tab bookmark ID, Tab bookmark, data type, each Tab bookmark packet
The data acquisition system contained, the data ID of current presentation in Tab bookmark.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong
Following manner realization is crossed, but not limited to this: above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned modules are with any
Combined form is located in different processors.
Embodiment 3
The embodiments of the present invention also provide a kind of storage medium, computer program is stored in the storage medium, wherein
The computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store by executing based on following steps
Calculation machine program:
S11 receives the data that multiple Tab bookmarks generate in the page from same entrance, wherein the data include data mark
Know ID, data content and the corresponding Tab bookmark ID of data;
S12, according to the Data Identification ID, the data content and the corresponding Tab bookmark ID of the data to preparatory
The data list of setting is updated, wherein the data list includes the collection of Tab bookmark ID, the Tab bookmark of current presentation
It closes, data acquisition system and data statistics are as a result, the data acquisition system includes in the data ID and corresponding data occurred in Tab bookmark
The set of appearance, the data statistics result are the number that data occur in the multiple Tab bookmark.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (Read-
Only Memory, referred to as ROM), it is random access memory (Random Access Memory, referred to as RAM), mobile hard
The various media that can store computer program such as disk, magnetic or disk.
Embodiment 4
The embodiments of the present invention also provide a kind of electronic device, including memory and processor, stored in the memory
There is computer program, which is arranged to run computer program to execute the step in any of the above-described embodiment of the method
Suddenly.
Optionally, above-mentioned electronic device can also include transmission device and input-output equipment, wherein the transmission device
It is connected with above-mentioned processor, which connects with above-mentioned processor.
Optionally, in the present embodiment, above-mentioned processor can be set to execute following steps by computer program:
S11 receives the data that multiple Tab bookmarks generate in the page from same entrance, wherein the data include data mark
Know ID, data content and the corresponding Tab bookmark ID of data;
S12, according to the Data Identification ID, the data content and the corresponding Tab bookmark ID of the data to preparatory
The data list of setting is updated, wherein the data list includes the collection of Tab bookmark ID, the Tab bookmark of current presentation
It closes, data acquisition system and data statistics are as a result, the data acquisition system includes in the data ID and corresponding data occurred in Tab bookmark
The set of appearance, the data statistics result are the number that data occur in the multiple Tab bookmark.
Optionally, the specific example in the present embodiment can be with reference to described in above-described embodiment and optional embodiment
Example, details are not described herein for the present embodiment.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general
Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed
Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein
Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or
Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.It is all within principle of the invention, it is made it is any modification, etc.
With replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of data maintaining method characterized by comprising
The data that multiple Tab bookmarks generate in the page are received from same entrance, wherein the data include Data Identification ID, number
According to content and the corresponding Tab bookmark ID of data;
According to the Data Identification ID, the data content and the corresponding Tab bookmark ID of the data to pre-set number
It is updated according to list, wherein the data list includes the set of Tab bookmark ID, the Tab bookmark of current presentation, data set
It closes and data statistics is as a result, the data acquisition system includes the data ID occurred in Tab bookmark and the set of corresponding data content,
The data statistics result is the number that data occur in the multiple Tab bookmark.
2. the method according to claim 1, wherein according to the Data Identification ID, the data content and
The corresponding Tab bookmark ID of the data, which is updated pre-set data list, includes:
It is when the data content is new content, the Data Identification ID, the data content and the data are corresponding
At least one of Tab bookmark ID be added in the data list;
When the data content is to delete content, updates or delete data ID described in the data statistics result corresponding time
Number.
3. according to the method described in claim 2, it is characterized in that, by the Data Identification ID, the data content and institute
It states at least one of corresponding Tab bookmark ID of data and is added in the data list and include:
Judge that the data ID and corresponding Tab bookmark ID of the data whether there is in the data list;
It will be in the Data Identification ID, the data content and the corresponding Tab bookmark ID of the data according to the result of judgement
At least one be added in the data list.
4. according to the method described in claim 3, it is characterized in that, according to the result of judgement by the Data Identification ID, described
At least one of data content and the corresponding Tab bookmark ID of the data, which are added in the data list, includes:
In the case where judging result is is no, the data ID is added to the data acquisition system with corresponding data content
In, the Tab bookmark ID is added in the set of the Tab bookmark, and add the number in the data statistics result
According to the corresponding number of ID;
In the case where judging result is is to be, the corresponding number of data ID described in the data statistics result is added 1;
It is present in the data list in the data ID, the Tab bookmark ID is not present in the situation in the data list
Under, the corresponding number of data ID described in the data statistics result is added 1, and the Tab bookmark ID is added to the Tab
In the set of bookmark;
It is not present in the data list in the data ID, the Tab bookmark ID is present in the situation in the data list
Under, the data ID is added in the data acquisition system with corresponding data content, and adds in the data statistics result
Add the corresponding number of the data ID.
5. according to the method described in claim 2, it is characterized in that, updating or deleting data described in the data statistics result
The corresponding number of ID includes:
Judge whether the corresponding number of data ID described in the data statistics result is greater than 1;
In the case where the judgment result is yes, the corresponding number of the data ID is subtracted 1 in the data statistics result;
If the determination result is NO, data ID described in the data statistics result is deleted with corresponding number, and
The data ID in the data acquisition system is deleted with corresponding data content.
6. method according to any one of claim 1 to 6, which is characterized in that according to the Data Identification ID, described
After data content and the corresponding Tab bookmark ID of the data are updated pre-set data list, the method
Further include:
Traverse the data list;
Inquire the data ID that data statistics result is 0 in the data list;
Delete the corresponding data content of data ID described in the data acquisition system.
7. according to the method described in claim 6, it is characterized in that,
The set of the Tab bookmark includes: Tab bookmark ID and the corresponding content of the Tab bookmark ID, wherein described Tab pages
Title of the corresponding content of label ID comprising Tab bookmark ID, Tab bookmark, data type, the data acquisition system that each Tab bookmark includes,
The data ID of current presentation in Tab bookmark.
8. a kind of data maintaining apparatus characterized by comprising
Receiving module, for receiving the data that multiple Tab bookmarks generate in the page from same entrance, wherein the data include
Data Identification ID, data content and the corresponding Tab bookmark ID of data;
Update module, for ID pairs of Tab bookmark corresponding according to the Data Identification ID, the data content and the data
Pre-set data list is updated, wherein the data list includes Tab bookmark ID, the Tab bookmark of current presentation
Set, data acquisition system and data statistics are as a result, the data acquisition system includes the data ID and corresponding data occurred in Tab bookmark
The set of content, the data statistics result are the number that data occur in the multiple Tab bookmark.
9. a kind of storage medium, which is characterized in that be stored with computer program in the storage medium, wherein the computer
Program is arranged to execute method described in described any one of claims 1 to 7 when operation.
10. a kind of electronic device, including memory and processor, which is characterized in that be stored with computer journey in the memory
Sequence, the processor are arranged to run the computer program to execute side described in described any one of claims 1 to 7
Method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910584199.XA CN110347465A (en) | 2019-06-28 | 2019-06-28 | A kind of data maintaining method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910584199.XA CN110347465A (en) | 2019-06-28 | 2019-06-28 | A kind of data maintaining method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110347465A true CN110347465A (en) | 2019-10-18 |
Family
ID=68177720
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910584199.XA Pending CN110347465A (en) | 2019-06-28 | 2019-06-28 | A kind of data maintaining method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110347465A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080243761A1 (en) * | 2007-03-26 | 2008-10-02 | Shuanglin Guo | Method and system for quantifying a data page repetition pattern for a database index in a database management system |
CN104021185A (en) * | 2014-06-11 | 2014-09-03 | 北京奇虎科技有限公司 | Method and device for identifying information attributes of data in web pages |
CN104102636A (en) * | 2013-04-02 | 2014-10-15 | 阿里巴巴集团控股有限公司 | Method and device for counting and presenting page data |
CN104156487A (en) * | 2014-08-28 | 2014-11-19 | 北京国双科技有限公司 | Webpage data statistics method and device |
CN105183853A (en) * | 2015-09-08 | 2015-12-23 | 百度在线网络技术(北京)有限公司 | Method and device used for presenting label page |
CN106547764A (en) * | 2015-09-18 | 2017-03-29 | 北京国双科技有限公司 | The method and device of web data duplicate removal |
US20180059956A1 (en) * | 2016-08-30 | 2018-03-01 | Red Hat Israel, Ltd. | Memory deduplication based on guest page hints |
-
2019
- 2019-06-28 CN CN201910584199.XA patent/CN110347465A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080243761A1 (en) * | 2007-03-26 | 2008-10-02 | Shuanglin Guo | Method and system for quantifying a data page repetition pattern for a database index in a database management system |
CN104102636A (en) * | 2013-04-02 | 2014-10-15 | 阿里巴巴集团控股有限公司 | Method and device for counting and presenting page data |
CN104021185A (en) * | 2014-06-11 | 2014-09-03 | 北京奇虎科技有限公司 | Method and device for identifying information attributes of data in web pages |
CN104156487A (en) * | 2014-08-28 | 2014-11-19 | 北京国双科技有限公司 | Webpage data statistics method and device |
CN105183853A (en) * | 2015-09-08 | 2015-12-23 | 百度在线网络技术(北京)有限公司 | Method and device used for presenting label page |
CN106547764A (en) * | 2015-09-18 | 2017-03-29 | 北京国双科技有限公司 | The method and device of web data duplicate removal |
US20180059956A1 (en) * | 2016-08-30 | 2018-03-01 | Red Hat Israel, Ltd. | Memory deduplication based on guest page hints |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
DE60313071T2 (en) | Mobile communication terminal, relay server device, information processing device, method and system | |
CN107391626B (en) | Land the creation method and device of page | |
CN108282342A (en) | Accounting management method, user plane functions entity and control plane functional entity | |
CN109710348A (en) | The method and device of page jump, computer equipment, storage medium | |
CN107222753A (en) | Virtual present loading method and device | |
CN109947795A (en) | The acquisition methods and device of target data | |
CN104778178B (en) | A kind of application class method, apparatus and service server | |
CN109246741A (en) | Wireless network connecting method for terminal | |
CN101273578A (en) | Method for interception of GTP-C information | |
CN105808714B (en) | Method and device for acquiring network file resources and electronic equipment | |
CN105847366A (en) | Method and apparatus for sharing push service | |
CN106656989A (en) | Flow monitoring method and terminal | |
CN108600331A (en) | Interactive interface rendering method, client, terminal and system | |
CN109067816A (en) | A kind of game resource method for pushing, server and client | |
CN109976634A (en) | A kind of game APP screenshot method and equipment | |
CN113568674A (en) | Page data loading method, page data loading device and electronic equipment | |
CN109670094A (en) | Processing method, device, computer equipment and the storage medium of ad data | |
CN110347465A (en) | A kind of data maintaining method and device | |
CN110362771A (en) | Method and device, storage medium and the electronic device of page cache | |
CN112860579A (en) | Service testing method, device, storage medium and equipment | |
CN107769947A (en) | A kind of method, apparatus and equipment for changing customization skin | |
CN106385451A (en) | Method and system for service correlation among multiple platforms | |
CN109999495A (en) | The processing method and system of artificial intelligence AI location mode information | |
CN115037654A (en) | Flow statistical method and device, electronic equipment and readable storage medium | |
CN108920328A (en) | It was found that the method and device of terminal applies change |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191018 |
|
RJ01 | Rejection of invention patent application after publication |