CN103870955B - The processing method and processing device of data in webpage - Google Patents

The processing method and processing device of data in webpage Download PDF

Info

Publication number
CN103870955B
CN103870955B CN201410112786.6A CN201410112786A CN103870955B CN 103870955 B CN103870955 B CN 103870955B CN 201410112786 A CN201410112786 A CN 201410112786A CN 103870955 B CN103870955 B CN 103870955B
Authority
CN
China
Prior art keywords
edit operation
operation information
local
cache
webpage
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
CN201410112786.6A
Other languages
Chinese (zh)
Other versions
CN103870955A (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.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410112786.6A priority Critical patent/CN103870955B/en
Publication of CN103870955A publication Critical patent/CN103870955A/en
Application granted granted Critical
Publication of CN103870955B publication Critical patent/CN103870955B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses the processing method and processing device of data in webpage, methods described includes:The edit operation performed to the data in webpage is monitored, edit operation information is obtained;By the edit operation information cache to local.The method that the disclosure is provided is by the way that edit operation information cache, to being locally stored, is relatively stored edit operation information to server, it is possible to increase caching speed;On the other hand, receive read edit operation information request when, can from local cache read requests edit operation information so that improve read edit operation information speed.Therefore, by the way that by edit operation information cache to local cache, reduction terminal is interacted with server, reduces the resource loss of server.Another further aspect, prevents user profile from revealing by the edit operation information realization emptied in local cache, reaches the purpose of protection user profile.

Description

The processing method and processing device of data in webpage
Technical field
This disclosure relates in computer and technical field of electronic equipment, more particularly to webpage data processing method and dress Put.
Background technology
With the industry development of internet, the form of webpage constantly changes also with the demand of user, at this During the interaction of client and server become more and more frequently, should wherein being no lack of many webpages for being related to user operation records With.The draft of such as mail, or user data when ray machine etc..The characteristics of such web application is to record user The overall process operated to servers' data, and in the multiple data trnascriptions of server end write-in, and what each data trnascription write Foundation is exactly operation behavior of the user to data in webpage.When user needs to recover data to some intermediateness, it is necessary to read Take the corresponding data trnascription preserved on server.
In correlation technique, such as it is similar in the such application of mail rough draft, one side server can be at interval of a period of time A data are stored, record is once changed while can leave.When user wishes some intermediateness for returning to editing process, Send request to obtain corresponding data content to server.On the other hand, user can preserve historical snapshot manually, with this A data record is produced on server, while when user wishes to return to some intermediateness, sending and asking to server To obtain corresponding data content.
However, storing a data at interval of a period of time, it is unfavorable for the resource effectively using server, if at one section In store the meaning of a data again and little without content modification or fewer content modification, server.Make The mode preserved manually with user, although server end resource can be saved, but just had a greatly reduced quality for Consumer's Experience, very User can forget to preserve in the process of the editor to data when many, and this just easily causes the loss of data.Above two side All historical data must be obtained in method from server end.The data for being related to a large amount of and server are handed over during this generic operation Mutually, the more resource for taking server, and data interaction is slower.
The content of the invention
The embodiment of the present disclosure provides a kind of processing method and processing device of data in webpage, is browsed for overcoming in correlation technique Device can only obtain the data of intermediateness from server end, occupy the more resource of server, the problem of data interaction is slower.
According to the first aspect of the embodiment of the present disclosure there is provided a kind of processing method of data in webpage, including:
The edit operation performed to the data in webpage is monitored, edit operation information is obtained;
By the edit operation information cache to local.
The embodiment of the present disclosure was realized edit operation information cache to local, and the mediant of edit operation is needed in user According to when, data can be read from local, the speed for reading data is improved with this, the resource consumption to server is reduced.
Before the acquisition edit operation information, methods described also includes:
Whether detection browser supports local buffer technology;
The edit operation that the monitoring is performed to the data in webpage, obtains edit operation information, including:
When the browser supports local buffer technology, the edit operation performed to the data in webpage is monitored, is obtained Edit operation information.
The embodiment of the present disclosure realize whether support local buffer technology to detect browser, in order to be caching edit Operation information is laid a solid foundation, and is easy to implement the caching edit operation information in local cache.
Methods described also includes:
Judge whether the information content of the edit operation information of local cache is equal to or more than predetermined threshold value;
When the information content of the edit operation information is equal to or more than the predetermined threshold value, by the volume of local cache Collect operation information to send to server, the edit operation information as described in the server storage.
The embodiment of the present disclosure is realized when the information content of local cache storage is more than or equal to predetermined threshold value, is deposited by server Edit operation information is stored up, the edit operation information that information content is more than or equal to predetermined threshold value is preserved by server from realizing, carried High server preserves the meaning and efficiency of edit operation information.
Described to send the edit operation information of local cache to server, methods described also includes:
Empty the edit operation information of local cache.
The embodiment of the present disclosure realizes the edit operation information emptied in local cache so that local cache can continue to caching Data, reach effective recycling local cache, but also do not lose edit operation information.
It is described by the edit operation information cache to before local, methods described also includes:
Generate the corresponding edit operation mark of the edit operation information;
It is described by the edit operation information cache to locally including:
By edit operation information caching corresponding with edit operation mark to local.
The embodiment of the present disclosure is realized edit operation information caching corresponding with edit operation mark to local, in order to distinguish Each self-corresponding edit operation information of edit operation each time.For example, the edit operation each time of browser has respective editor Operation mark so that edit operation mark and edit operation information correspond so that user can be according to each time Edit operation, gives the corresponding edit operation information of the edit operation for change, and the caching method is more reasonable.
Methods described also includes:
The request for reading edit operation information is received, the request includes edit operation mark;
The edit operation that the request is read from local cache to be included identifies corresponding edit operation information.
The embodiment of the present disclosure is realized reads edit operation information from local cache, long-range from the local speed for reading data In reading data from server, therefore the embodiment of the present disclosure improves the speed for reading edit operation information.Meanwhile, also reduce Frequency of interaction between browser and server, improves Consumer's Experience.
Methods described also includes:
When the webpage is closed or when receiving flush instructions, the edit operation information of local cache is emptied.
The embodiment of the present disclosure can prevent user profile from revealing by emptying the edit operation information of local cache, to Family information plays a protective role.
According to the second aspect of the embodiment of the present disclosure there is provided a kind of processing unit of data in webpage, including:
Monitoring module, for monitoring the edit operation performed to the data in webpage, obtains edit operation information;
Cache module, for by the edit operation information cache to local.
Described device also includes:
Detection module, for before the monitoring module obtains edit operation information, whether detection browser to support this Ground caching technology;
The monitoring module, including:
Monitoring unit, for when the browser supports local buffer technology, monitoring what is performed to the data in webpage Edit operation, obtains edit operation information.
Described device also includes:
Judge module, for judging it is default whether the information content of the edit operation information of local cache is equal to or more than Threshold value;
Sending module, for when the information content of the edit operation information is equal to or more than the predetermined threshold value, incite somebody to action this The edit operation information of ground caching is sent to server, the edit operation information as described in the server storage.
Described device also includes:
First empties module, sends the edit operation information of local cache to server for the sending module Afterwards, the edit operation information of local cache is emptied.
Described device also includes:
Generation module, in the cache module by the edit operation information cache to before local, generation is described The corresponding edit operation mark of edit operation information;
The cache module includes:
Buffer unit, for by edit operation information caching corresponding with edit operation mark to local.
Described device also includes:
Receiving module, the request of edit operation information is read for receiving, and the request includes edit operation mark;
Read module, for reading the corresponding volume of edit operation mark that the request includes from local cache Collect operation information.
Described device also includes:
Second empties module, for when the webpage is closed or when receiving flush instructions, emptying local cache The edit operation information.
According to the third aspect of the embodiment of the present disclosure there is provided a kind of processing unit of data in webpage, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
The edit operation performed to the data in webpage is monitored, edit operation information is obtained;
By the edit operation information cache to local.
The technical scheme provided by this disclosed embodiment can include the following benefits:By the way that edit operation information is delayed Deposit to being locally stored, it is relative to store edit operation information to server, it is possible to increase caching speed;On the other hand, receiving To read edit operation information request when, can from local cache read requests edit operation information, so as to improve Read the speed of edit operation information.Therefore, by by edit operation information cache to local cache, reducing terminal and server Interaction, reduce server resource loss.Another further aspect, is prevented by the edit operation information realization emptied in local cache User profile is revealed, and reaches the purpose of protection user profile.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not The disclosure can be limited.
The further feature and advantage of the disclosure will be illustrated in the following description, also, partly be become from specification Obtain it is clear that or being understood by implementing the disclosure.The purpose of the disclosure and other advantages can be by the explanations write Specifically noted structure is realized and obtained in book, claims and accompanying drawing.
Below by drawings and examples, technical scheme of this disclosure is described in further detail.It should be understood that It is that the general description of the above and detailed description hereinafter are only exemplary, can not limit the disclosure.
Brief description of the drawings
Accompanying drawing is used for providing further understanding of the disclosure, and constitutes a part for specification, the reality with the disclosure Applying example is used to explain the disclosure together, does not constitute limitation of this disclosure.In the accompanying drawings:
Fig. 1 is the exemplary process diagram of the processing method of data in a kind of webpage according to an exemplary embodiment;
Fig. 2 is the exemplary flow of the processing method of data in a kind of webpage according to another exemplary embodiment Figure;
Fig. 3 is the exemplary flow of the processing method of data in a kind of webpage according to another exemplary embodiment Figure;
Fig. 4 is the exemplary flow of the processing method of data in a kind of webpage according to another exemplary embodiment Figure;
Fig. 5 is the exemplary flow of the processing method of data in a kind of webpage according to another exemplary embodiment Figure;
Fig. 6 is a kind of exemplary signal at the interface of acquisition edit operation information according to an exemplary embodiment Figure;
Fig. 7 is the exemplary flow of the processing method of data in a kind of webpage according to another exemplary embodiment Figure;
Fig. 8 is the exemplary flow of the processing method of data in a kind of webpage according to another exemplary embodiment Figure;
Fig. 9 is the illustrative diagram of the processing unit of data in a kind of webpage according to an exemplary embodiment;
Figure 10 is that the another exemplary of the processing unit of data in a kind of webpage according to an exemplary embodiment is shown It is intended to;
Figure 11 is showing for the monitoring module of the processing unit of data in a kind of webpage according to an exemplary embodiment Example property schematic diagram;
Figure 12 is that the another exemplary of the processing unit of data in a kind of webpage according to an exemplary embodiment is shown It is intended to;
Figure 13 is that the another exemplary of the processing unit of data in a kind of webpage according to an exemplary embodiment is shown It is intended to;
Figure 14 is that the another exemplary of the processing unit of data in a kind of webpage according to an exemplary embodiment is shown It is intended to;
Figure 15 is showing for the cache module of the processing unit of data in a kind of webpage according to an exemplary embodiment Example property schematic diagram;
Figure 16 is that the another exemplary of the processing unit of data in a kind of webpage according to an exemplary embodiment is shown It is intended to;
Figure 17 is that the another exemplary of the processing unit of data in a kind of webpage according to an exemplary embodiment is shown It is intended to;
Figure 18 is that the another exemplary of the processing unit of data in a kind of webpage according to an exemplary embodiment is shown It is intended to.
Pass through above-mentioned accompanying drawing, it has been shown that the clear and definite embodiment of the disclosure, will hereinafter be described in more detail.These accompanying drawings It is not intended to limit the scope that the disclosure is conceived by any mode with word description, but is by reference to specific embodiment Those skilled in the art illustrate the concept of the disclosure.
Embodiment
Illustrated below in conjunction with accompanying drawing preferred embodiment of this disclosure, it will be appreciated that preferred reality described herein Apply example and be merely to illustrate and explain the disclosure, be not used to limit the disclosure.
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
The embodiment of the present disclosure provides a kind of processing method and processing device of data in webpage.In the technical scheme, work as monitoring During the edit operation that data in webpage are performed, edit operation information is obtained, and by edit operation information cache to local. By the way that to local, edit operation information cache is improved into the speed of access edit operation information.For example, needing editor in user During the intermediate data of operation, data, the relative acquisition edit operation information from server, from local cache can be read from local Middle acquisition edit operation information is faster.On the other hand, the processing method of data in the webpage provided in the disclosure, also reduce with The interaction of server, while also reducing the resource consumption to server.
The processing method of data can be used in the terminal device equipped with browser in the webpage that the disclosure is provided, such as mobile phone, Computer, tablet personal computer etc..
Fig. 1 is the flow chart of the processing method of data in a kind of webpage according to an exemplary embodiment, such as Fig. 1 institutes Show, comprise the following steps:
In step S101, the edit operation performed to the data in webpage is monitored, edit operation information is obtained.
In step s 102, by edit operation information cache to local.
In one embodiment, edit operation includes:Interpolation data, the data replaced in webpage, deletion net into webpage The operation of any of data in page or a variety of operations, can also be other types of edit operation.Edit operation information is Refer to the data message changed before and after edit operation in webpage, for example, when the character " March 6 " in webpage is revised as " 4 by user The moon 7 ", then include " March 6 " before editor, the position in webpage where character " March 6 " in the edit operation information The edit operation that information and user are carried out is modification.These information are in local correspondence caching.
In one embodiment, webpage that can be to receive edit operation will be carried out as mark to the data in the webpage The storage corresponding with the mark of the webpage of the obtained edit operation information of edit operation;Can also be by edit operation information cache To before local, one piece of special memory space is assigned with to receive the webpage of edit operation, the special space is used to store The edit operation information of the webpage.
In one embodiment, before step S101, it can also detect whether browser supports client memory technology, Such as local buffer technology(LocalStorage), IE userdata, sessionStorage either HTML5 indexDB; Now, step S101, which can be performed specifically, is:When browser supports local buffer technology, monitor what the data in webpage were performed Edit operation, obtains edit operation information.
Wherein it is possible to detect whether browser supports local buffer technology by script file, browser can also be passed through Title and the version of the browser judge whether the browser supports local buffer technology.
The embodiment of the present disclosure realize whether support local buffer technology to detect browser, in order to be caching edit Operation information is laid a solid foundation, and is easy to implement the caching edit operation information in local cache.
In one embodiment, before step S102, the corresponding edit operation mark of edit operation information can also be generated Know;Now, step S102, which can be performed specifically, is:By edit operation information caching corresponding with edit operation mark to local, so as to In differentiation each self-corresponding edit operation information of edit operation each time.For example, the edit operation each time of browser has each Edit operation mark so that edit operation mark and edit operation information one-to-one corresponding get up so that user can be according to every Edit operation once, gives the corresponding edit operation information of the edit operation for change, therefore the caching method is more reasonable.
In one embodiment, when by edit operation information caching corresponding with edit operation mark to can also read after local The edit operation information of local cache is taken, comprises the following steps A1-A2:
In step A1, the request for reading edit operation information is received, the request includes edit operation mark B.
In step A2, the corresponding edit operation letters of edit operation mark B that read requests include from local cache Breath.
The embodiment of the present disclosure is realized reads edit operation information from local cache, long-range from the local speed for reading data In reading data from server, therefore the embodiment of the present disclosure improves the speed for reading edit operation information.Meanwhile, also reduce Frequency of interaction between browser and server, improves Consumer's Experience.
In one embodiment, can also be from server when the edit operation information of request is stored in the server Read the edit operation information.For example, browser can identify edit operation corresponding with edit operation information, it is stored in In local cache.When user frequently carries out edit operation to the data in webpage, cause the edit operation information stored in caching During equal to or more than predetermined threshold value, browser local cache sends edit operation information to server, in order to local cache It can continue to store new edit operation information.During user carries out edit operation to the data in webpage, it is desirable to look for During the edit operation information of the pre-editing returned, browser is identified by edit operation corresponding with the edit operation information, is searched Stored to the edit operation information into server, then browser reads the edit operation information and shown from server.
In one embodiment, following operation can also be performed according to the information content of the edit operation information of local cache, Comprise the following steps B1-B2:
In step bl is determined., judge whether the information content of the edit operation information of local cache is equal to or more than predetermined threshold value.
In step B2, when the information content of the edit operation information of local cache is equal to or more than predetermined threshold value, it incite somebody to action this The edit operation information of ground caching is sent to server, by server storage edit operation information.
The embodiment of the present disclosure is realized when the information content of local cache storage is more than or equal to predetermined threshold value, is deposited by server Edit operation information is stored up, server resource is effectively make use of.
In one embodiment, the edit operation information of local cache is sent to server, can also emptied local The edit operation information of caching.The embodiment of the present disclosure realizes the edit operation information emptied in local cache so that local cache It can continue to data cached, reach effective recycling local cache, but also do not lose edit operation information.
In one embodiment, when webpage is closed or when receiving flush instructions, local cache can also be emptied Edit operation information.The embodiment of the present disclosure can prevent user profile from revealing by emptying the edit operation information of local cache, User profile is played a protective role.
The embodiment of the present disclosure is realized edit operation information cache to local, and the intermediate data of edit operation is needed in user When, data can be read from local, so as to improve the speed for reading data, reduce the resource consumption to server.
Illustrate the technical scheme of the embodiment of the present disclosure with several embodiments below.
Embodiment one
With when browser supports local buffer technology, exemplified by caching edit operation information, to net in the embodiment of the present disclosure The processing method of data is described in detail in page, as shown in Fig. 2 this method includes:
In step s 201, whether detection browser supports local buffer technology.
In step S202, when browser supports local buffer technology, the editor performed to the data in webpage is monitored Operation, obtains edit operation information.
In step S203, by edit operation information cache to local.
The embodiment of the present disclosure realize whether support local buffer technology to detect browser, in order to be caching edit Operation information is laid a solid foundation, and is easy to implement the caching edit operation information in local cache.
Embodiment two
With when the information content of edit operation information is equal to or more than predetermined threshold value, by the edit operation information of local cache Send to server, the processing method to data in webpage in the embodiment of the present disclosure is described in detail, as shown in figure 3, This method includes:
In step S301, the edit operation performed to the data in webpage is monitored, edit operation information is obtained.
In step s 302, by edit operation information cache to local.
In step S303, judge whether the information content of the edit operation information of local cache is equal to or more than default threshold Value, if so, step S304 is then performed, if otherwise terminating.
In one embodiment, whether it is equal to by the edit operation information in timer regular check local cache or greatly In predetermined threshold value.
Wherein, predetermined threshold value can be set according to number of characters, for example 1000 characters, generally when user is in webpage Data carry out edit operation character be equal to or more than 1000 when, the volume for entering edlin to the data in webpage can be considered as Volume operation information should be sent to be stored into server so that the utilization that the resource to server can be effective.
Wherein, predetermined threshold value can be set according to the capacity of local cache, and the capacity of such as local cache is 5M When, in order to effectively utilize local cache, it can say that predetermined threshold value is set to 4M, so as to avoid asking caused by local cache is not enough Topic, the problem for example causes cache failure.
In step s 304, the edit operation information of local cache is sent to server, by server storage, editor grasps Make information.
The embodiment of the present disclosure is realized when the information content of local cache storage is more than or equal to predetermined threshold value, is deposited by server Edit operation information is stored up, the edit operation information that information content is more than or equal to predetermined threshold value is preserved by server from realizing, had The utilization server resource of effect, improves meaning and efficiency that server preserves edit operation information.
Embodiment three,
By the caching corresponding with edit operation mark by operation identification information to exemplified by local, to webpage in the embodiment of the present disclosure The processing method of middle data is described in detail, as shown in figure 4, this method includes:
In step S401, the edit operation performed to the data in webpage is monitored, edit operation information is obtained.
In step S402, the corresponding edit operation mark of generation edit operation information.
In one embodiment, it can include in edit operation mark:The time of the edit operation or the edit operation Sequence number etc..
In step S403, by edit operation information caching corresponding with edit operation mark to local.
The embodiment of the present disclosure is identified by edit operation, and edit operation is made a distinction, and is edited with beneficial to rational caching Operation information.For example, the edit operation each time of user is all identified so that edit operation mark and edit operation information pair It should get up so that user can give the corresponding edit operation information of the edit operation for change, therefore according to edit operation each time The caching method is more reasonable.
Example IV
Exemplified by obtaining edit operation information, the processing method to data in webpage in the embodiment of the present disclosure is carried out specifically It is bright, as shown in figure 5, this method includes:
In step S501, the edit operation performed to the data in webpage is monitored, edit operation information is obtained.
In step S502, the corresponding edit operation mark C of generation edit operation information.
In step S503, edit operation information and edit operation identify to C is corresponding to be cached to local.
In step S504, the request for reading edit operation information is received, request includes edit operation mark C.
In one embodiment, for example, as shown in fig. 6, user can obtain edit operation letter by the interface shown in Fig. 6 Breath.Each edit operation information shows (referring to " modification is recorded " in Fig. 6) in the way of list in figure 6, in the list Every record in can mark executive editor operation time.The data before and after modification are dashed forward in every record of the list Go out display.For example the data obtained after modification are shown with black matrix, the obtained data before modification are in parenthetic display.User can By the record in selective listing, to obtain edit operation information.
In one embodiment, the return operation of webpage can be considered as and receives request.
In step S505, the corresponding edit operations of edit operation mark C that read requests include from local cache Information.
The embodiment of the present disclosure is realized reads edit operation information from local cache, long-range from the local speed for reading data In reading data from server, therefore the embodiment of the present disclosure improves the speed for reading edit operation information.Meanwhile, also reduce Frequency of interaction between browser and server, improves Consumer's Experience.
Embodiment five
It is right exemplified by edit operation information when webpage is closed or when receiving flush instructions, to empty local cache The processing method of data is described in detail in webpage in the embodiment of the present disclosure, as shown in fig. 7, this method includes:
In step s 701, the edit operation that monitoring is performed to the data in webpage, obtains edit operation information.
In step S702, by edit operation information cache to local.
In step S703, when webpage is closed or when receiving flush instructions, the edit operation of local cache is emptied Information.
In one embodiment, flush instructions are received, are, for example, to press operation to what default shortcut was performed, or it is right What the return control in webpage was performed presses operation etc..
The embodiment of the present disclosure can prevent user profile from revealing by emptying the edit operation information of local cache, to Family information plays a protective role.
Embodiment six
When writing mail by webpage with user, the edit operation carried out according to user to Mail Contents is to the data in webpage Exemplified by being handled, the processing method to data in webpage in the embodiment of the present disclosure is described in detail, as shown in figure 8, including:
In step S801, browser detects whether the browser supports local buffer technology, if so, then performing step S802, if it is not, then terminating.
In step S802, the edit operation that browser monitoring is performed to the outbox content in newly-built mail web is obtained Edit operation information.
In step S803, the corresponding edit operation mark D of browser generation edit operation information.
In step S804, browser identifies edit operation information and edit operation that D is corresponding to be cached to local.
In step S805, browser receives the request for reading edit operation information, and request includes edit operation mark D。
In step S806, the corresponding volumes of edit operation mark D that browser read requests from local cache include Collect operation information.
In step S807, when newly-built mail web is closed, browser empties the edit operation information of local cache.
The embodiment of the present disclosure is realized when user writes mail, and the Mail Contents that user changes are buffered in local cache, When user needs to return to the corresponding edit operation information of certain edit operation, the edit operation can be read from local cache length Information.
Fig. 9 is the illustrative diagram of the processing unit of data in a kind of webpage according to an exemplary embodiment, As shown in figure 9, the device includes monitoring module 901 and cache module 902, wherein,
Monitoring module 901, is configured to, for monitoring the edit operation for performing the data in webpage, obtain Edit operation information;
Cache module 902, is configurable for edit operation information cache to local.
In one embodiment, as shown in Figure 10, the device also includes:
Detection module 903, is configured in before monitoring module acquisition edit operation information, whether detection browser Support local buffer technology;
As shown in figure 11, above-mentioned monitoring module 901, including:
Monitoring unit 904, is configurable for, when browser supports local buffer technology, monitoring to the data in webpage The edit operation of execution, obtains edit operation information.
In one embodiment, as shown in figure 12, the device also includes:
Judge module 905, be configurable for judging the edit operation information of local cache information content whether be equal to or More than predetermined threshold value;
Sending module 906, is configurable for when the information content of edit operation information is equal to or more than predetermined threshold value, will The edit operation information of local cache is sent to server, by server storage edit operation information.
In one embodiment, as shown in figure 13, the device also includes:
First empties module 907, is configurable for sending module and sends the edit operation information of local cache to clothes It is engaged in after device, empties the edit operation information of local cache.
In one embodiment, as shown in figure 14, the device also includes:
Generation module 908, is configured in cache module by edit operation information cache to before local, generation is compiled Collect the corresponding edit operation mark of operation information;
As shown in figure 15, cache module 902 includes:
Buffer unit 909, is configurable for edit operation information caching corresponding with edit operation mark to local.
In one embodiment, as shown in figure 16, the device also includes:
Receiving module 910, is configurable for receiving the request for reading edit operation information, request includes edit operation Mark;
Read module 911, is configurable for the edit operation mark correspondence that the read requests from local cache include Edit operation information.
In one embodiment, as shown in figure 17, the device also includes:
Second empties module 912, when being configurable for when webpage is closed or receiving flush instructions, empties local The edit operation information of caching.
Figure 18 is a kind of block diagram for the processing unit 8000 of data in webpage according to an exemplary embodiment. For example, device 8000 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, flat board Equipment, Medical Devices, body-building equipment, personal digital assistant etc..
Reference picture 18, device 8000 can include following one or more assemblies:Processing assembly 8002, memory 8004, Power supply module 8006, multimedia groupware 8008, audio-frequency assembly 8010, input/output(I/O)Interface 8012, sensor cluster 8014, and communication component 8016.
The integrated operation of the usual control device 8000 of processing assembly 8002, such as with display, call, data communication, The camera operation operation associated with record operation.Treatment element 8002 can include one or more processors 8020 to perform Instruction, to complete all or part of step of above-mentioned method.In addition, processing assembly 8002 can include one or more moulds Block, is easy to the interaction between processing assembly 8002 and other assemblies.For example, processing component 8002 can include multi-media module, To facilitate the interaction between multimedia groupware 8008 and processing assembly 8002.
Memory 8004 is configured as storing various types of data supporting the operation in equipment 8000.These data Example includes the instruction of any application program or method for being used to operate on device 8000, contact data, telephone book data, Message, picture, video etc..Memory 8004 can by any kind of volatibility or non-volatile memory device or they Combination realization, such as static RAM(SRAM), Electrically Erasable Read Only Memory(EEPROM), it is erasable can Program read-only memory(EPROM), programmable read only memory(PROM), read-only storage(ROM), magnetic memory, flash memory Reservoir, disk or CD.
Electric power assembly 8006 provides electric power for the various assemblies of device 8000.Electric power assembly 8006 can include power management System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 8000.
Multimedia groupware 8008 is included in the screen of one output interface of offer between device 8000 and user.At some In embodiment, screen can include liquid crystal display(LCD)And touch panel(TP).If screen includes touch panel, screen Touch-screen is may be implemented as, to receive the input signal from user.Touch panel includes one or more touch sensors With the gesture on sensing touch, slip and touch panel.Touch sensor can not only sensing touch or sliding action border, But also the detection duration related to touch or slide and pressure.In certain embodiments, multimedia groupware 8008 Including a front camera and/or rear camera.When equipment 8000 is in operator scheme, such as screening-mode or video mode When, front camera and/or rear camera can receive the multi-medium data of outside.Each front camera and rearmounted shooting Head can be a fixed optical lens system or with focusing and optical zoom capabilities.
Audio-frequency assembly 8010 is configured as output and/or input audio signal.For example, audio-frequency assembly 8010 includes a wheat Gram wind(MIC), when device 8000 is in operator scheme, when such as call model, logging mode and speech recognition mode, microphone quilt It is configured to receive external audio signal.The audio signal received can be further stored in memory 8004 or via communication Component 8016 is sent.In certain embodiments, audio-frequency assembly 8010 also includes a loudspeaker, for exports audio signal.
I/O interfaces 8012 are that interface, above-mentioned peripheral interface module are provided between processing assembly 8002 and peripheral interface module Can be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and Locking press button.
Sensor cluster 8014 includes one or more sensors, and the state for providing various aspects for device 8000 is commented Estimate.For example, sensor cluster 8014 can detect opening/closed mode of equipment 8000, the relative positioning of component, such as institute Display and keypad that component is device 8000 are stated, sensor cluster 8014 can be with detection means 8000 or device 8,000 1 The position of individual component changes, the existence or non-existence that user contacts with device 8000, the orientation of device 8000 or acceleration/deceleration and dress Put 8000 temperature change.Sensor cluster 8014 can include proximity transducer, be configured in not any physics The presence of object nearby is detected during contact.Sensor cluster 8014 can also include optical sensor, such as CMOS or ccd image sensing Device, for being used in imaging applications.In certain embodiments, the sensor cluster 8014 can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 8016 is configured to facilitate the communication of wired or wireless way between device 8000 and other equipment.Dress The wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof can be accessed by putting 8000.It is exemplary at one In embodiment, communication component 8016 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, the communication component 8016 also includes near-field communication(NFC)Module, to promote short distance Communication.For example, radio frequency identification can be based in NFC module(RFID)Technology, Infrared Data Association(IrDA)Technology, ultra wide band (UWB)Technology, bluetooth(BT)Technology and other technologies are realized.
In the exemplary embodiment, device 8000 can be by one or more application specific integrated circuits(ASIC), numeral Signal processor(DSP), digital signal processing appts(DSPD), PLD(PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components realize, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 8004 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 8020 of device 8000.Example Such as, the non-transitorycomputer readable storage medium can be ROM, random access memory(RAM), it is CD-ROM, tape, soft Disk and optical data storage devices etc..
The processing unit of data in a kind of webpage, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, processor is configured as:
The edit operation performed to the data in webpage is monitored, edit operation information is obtained;
By edit operation information cache to local.
The processor is additionally configured to:
Obtain before edit operation information, whether detection browser supports local buffer technology;
When browser supports local buffer technology, the edit operation performed to the data in webpage is monitored, is edited Operation information.
The processor is additionally configured to:
Judge whether the information content of the edit operation information of local cache is equal to or more than predetermined threshold value;
When the information content of edit operation information is equal to or more than predetermined threshold value, the edit operation information of local cache is sent out Server is delivered to, by server storage edit operation information.
The processor is additionally configured to:
The edit operation information of local cache is sent to server, the edit operation information of local cache is emptied.
The processor is additionally configured to:
By edit operation information cache to before local, the corresponding edit operation mark of generation edit operation information;
By edit operation information caching corresponding with edit operation mark to local.
The processor is additionally configured to:
The request for reading edit operation information is received, request includes edit operation mark;
The edit operation that read requests include from local cache identifies corresponding edit operation information.
The processor is additionally configured to:
When webpage is closed or when receiving flush instructions, the edit operation information of local cache is emptied.
The embodiment of the present disclosure realize by by edit operation information cache to being locally stored, it is relative by edit operation information Store to server, it is possible to increase caching speed;On the other hand, can be with when receiving the request for reading edit operation information The edit operation information of read requests from local cache, so as to improve the speed for reading edit operation information.Therefore, pass through By edit operation information cache to local cache, reduction terminal is interacted with server, reduces the resource loss of server.Further Aspect, prevents user profile from revealing by the edit operation information realization emptied in local cache, reaches protection user profile Purpose.
A kind of non-transitorycomputer readable storage medium, when the instruction in storage medium is by the computing device of terminal When so that terminal is able to carry out a kind of processing method of data in webpage, and method includes:
The edit operation performed to the data in webpage is monitored, edit operation information is obtained;
By edit operation information cache to local.
The storage medium is also stored with:
Obtain before edit operation information, whether detection browser supports local buffer technology;
When browser supports local buffer technology, the edit operation performed to the data in webpage is monitored, is edited Operation information.
The storage medium is also stored with:
Judge whether the information content of the edit operation information of local cache is equal to or more than predetermined threshold value;
When the information content of edit operation information is equal to or more than predetermined threshold value, the edit operation information of local cache is sent out Server is delivered to, by server storage edit operation information.
The storage medium is also stored with:
The edit operation information of local cache is sent to server, the edit operation information of local cache is emptied.
The storage medium is also stored with:
By edit operation information cache to before local, the corresponding edit operation mark of generation edit operation information;
By edit operation information caching corresponding with edit operation mark to local.
The storage medium is also stored with:
The request for reading edit operation information is received, request includes edit operation mark;
The edit operation that read requests include from local cache identifies corresponding edit operation information.
The storage medium is also stored with:
When webpage is closed or when receiving flush instructions, the edit operation information of local cache is emptied.
The embodiment of the present disclosure realize by by edit operation information cache to being locally stored, it is relative by edit operation information Store to server, it is possible to increase caching speed;On the other hand, can be with when receiving the request for reading edit operation information The edit operation information of read requests from local cache, so as to improve the speed for reading edit operation information.Therefore, pass through By edit operation information cache to local cache, reduction terminal is interacted with server, reduces the resource loss of server.Further Aspect, prevents user profile from revealing by the edit operation information realization emptied in local cache, reaches protection user profile Purpose.
Those skilled in the art will readily occur to its of the disclosure after considering specification and putting into practice invention disclosed herein Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following Claim is pointed out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.

Claims (11)

1. the processing method of data in a kind of webpage, it is characterised in that including:
The edit operation performed to the data in webpage is monitored, edit operation information is obtained;
By the edit operation information cache to local;
It is described by the edit operation information cache to before local, methods described also includes:
Generate the corresponding edit operation mark of the edit operation information;
It is described by the edit operation information cache to locally including:
By edit operation information caching corresponding with edit operation mark to local;
The request for reading edit operation information is received, the request includes edit operation mark;
The edit operation that the request is read from local cache to be included identifies corresponding edit operation information.
2. according to the method described in claim 1, it is characterised in that before the acquisition edit operation information, methods described is also Including:
Whether detection browser supports local buffer technology;
The edit operation that the monitoring is performed to the data in webpage, obtains edit operation information, including:
When the browser supports local buffer technology, the edit operation performed to the data in webpage is monitored, is edited Operation information.
3. method according to claim 2, it is characterised in that methods described also includes:
Judge whether the information content of the edit operation information of local cache is equal to or more than predetermined threshold value;
When the information content of the edit operation information is equal to or more than the predetermined threshold value, the editor of local cache is grasped Sent as information to server, the edit operation information as described in the server storage.
4. method according to claim 3, it is characterised in that
Described to send the edit operation information of local cache to server, methods described also includes:
Empty the edit operation information of local cache.
5. according to the method described in claim 1, it is characterised in that methods described also includes:
When the webpage is closed or when receiving flush instructions, the edit operation information of local cache is emptied.
6. the processing unit of data in a kind of webpage, it is characterised in that including:
Monitoring module, for monitoring the edit operation performed to the data in webpage, obtains edit operation information;
Cache module, for by the edit operation information cache to local;
Generation module, in the cache module by the edit operation information cache to before local, generate the editor The corresponding edit operation mark of operation information;
The cache module includes:
Buffer unit, for by edit operation information caching corresponding with edit operation mark to local;
Receiving module, the request of edit operation information is read for receiving, and the request includes edit operation mark;
Read module, the edit operation included for reading the request from local cache identifies corresponding edit operation letter Breath.
7. device according to claim 6, it is characterised in that described device also includes:
Detection module, for before monitoring module monitoring obtains edit operation information, whether detection browser to support this Ground caching technology;
The monitoring module, including:
Monitoring unit, for when the browser supports local buffer technology, monitoring the editor performed to the data in webpage Operation, obtains edit operation information.
8. device according to claim 7, it is characterised in that described device also includes:
Judge module, for judging whether the information content of the edit operation information of local cache is equal to or more than default threshold Value;
Sending module, for when the information content of the edit operation information is equal to or more than the predetermined threshold value, will locally delay The edit operation information deposited is sent to server, the edit operation information as described in the server storage.
9. device according to claim 8, it is characterised in that described device also includes:
First empties module, for the sending module by the edit operation information of local cache send to server it Afterwards, the edit operation information of local cache is emptied.
10. device according to claim 6, it is characterised in that described device also includes:
Second empties module, for when the webpage is closed or when receiving flush instructions, emptying the described of local cache Edit operation information.
11. the processing unit of data in a kind of webpage, it is characterised in that including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
The edit operation performed to the data in webpage is monitored, edit operation information is obtained;
By the edit operation information cache to local;
It is described by the edit operation information cache to before local, in addition to:
Generate the corresponding edit operation mark of the edit operation information;
It is described by the edit operation information cache to locally including:
By edit operation information caching corresponding with edit operation mark to local;
The request for reading edit operation information is received, the request includes edit operation mark;
The edit operation that the request is read from local cache to be included identifies corresponding edit operation information.
CN201410112786.6A 2014-03-24 2014-03-24 The processing method and processing device of data in webpage Active CN103870955B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410112786.6A CN103870955B (en) 2014-03-24 2014-03-24 The processing method and processing device of data in webpage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410112786.6A CN103870955B (en) 2014-03-24 2014-03-24 The processing method and processing device of data in webpage

Publications (2)

Publication Number Publication Date
CN103870955A CN103870955A (en) 2014-06-18
CN103870955B true CN103870955B (en) 2017-07-21

Family

ID=50909467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410112786.6A Active CN103870955B (en) 2014-03-24 2014-03-24 The processing method and processing device of data in webpage

Country Status (1)

Country Link
CN (1) CN103870955B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104394227B (en) * 2014-12-05 2018-03-27 北京奇虎科技有限公司 User data transmission method, system and the browser of browser
CN105183920B (en) * 2015-10-20 2018-12-11 广东欧珀移动通信有限公司 Playlist information processing method and processing device
CN110222516A (en) * 2019-04-26 2019-09-10 中国软件与技术服务股份有限公司 A kind of safe reading method and system based on server side code
CN110321515B (en) * 2019-07-12 2021-07-27 北京字节跳动网络技术有限公司 Webpage data storage method, device, equipment and storage medium
CN112019617B (en) * 2020-08-26 2022-09-27 蚂蚁胜信(上海)信息技术有限公司 Data storage method, device and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103034724A (en) * 2012-12-14 2013-04-10 北京奇虎科技有限公司 Method and device for carrying out input data recovery in browser
CN103034568A (en) * 2012-12-14 2013-04-10 北京奇虎科技有限公司 Method and device for recovering input data of browser
CN103383691A (en) * 2012-05-04 2013-11-06 阿里巴巴集团控股有限公司 Webpage online editing method and device
CN103455603A (en) * 2013-09-03 2013-12-18 小米科技有限责任公司 Method and device for caching webpage content and loading webpage and terminal device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103383691A (en) * 2012-05-04 2013-11-06 阿里巴巴集团控股有限公司 Webpage online editing method and device
CN103034724A (en) * 2012-12-14 2013-04-10 北京奇虎科技有限公司 Method and device for carrying out input data recovery in browser
CN103034568A (en) * 2012-12-14 2013-04-10 北京奇虎科技有限公司 Method and device for recovering input data of browser
CN103455603A (en) * 2013-09-03 2013-12-18 小米科技有限责任公司 Method and device for caching webpage content and loading webpage and terminal device

Also Published As

Publication number Publication date
CN103870955A (en) 2014-06-18

Similar Documents

Publication Publication Date Title
CN113360238A (en) Message processing method and device, electronic equipment and storage medium
CN103870955B (en) The processing method and processing device of data in webpage
CN104503740A (en) Memory management method and device
CN104536935B (en) Calculate display methods, calculate edit methods and device
CN105955766A (en) Method and device for application preloading
CN104991752B (en) Control the method and device of screen rotation
CN105224349A (en) The deletion reminding method of application program and device
CN104834435A (en) Method and device for playing audio comments
CN104811821B (en) The method and device of screen frame per second is painted in adjustment
CN107390932A (en) Edge false-touch prevention method and device, computer-readable recording medium
CN104954549A (en) Electronic device and messaging method
CN105677314A (en) Processing method and apparatus of scroll events, and device
CN107040591A (en) A kind of method and device being controlled to client
CN104503690A (en) Arrangement method and device for application icons
CN106528735A (en) Method and device for controlling browser to play media resources
CN104391878A (en) Book search method and book search device
EP2487572A1 (en) Systems and methods for screen data management
CN104536787A (en) Resource preloading method and device
CN104407981B (en) EMS memory management process and device
CN105487758A (en) Method and device for popup control of application software, and terminal equipment
CN104951184A (en) Application program downloading method and device
CN105550213A (en) Picture browsing method and device
CN105205153A (en) File storage method and device
CN107729098A (en) Method for displaying user interface and device
CN106503167A (en) The display methods of subject content, device and terminal

Legal Events

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