Unlock instant, AI-driven research and patent intelligence for your innovation.

Data processing method and device in web page

A processing method and web technology, applied in data processing applications, office automation, computing, etc., can solve the problems of multiple resources, occupying servers, slow data interaction, etc., and achieve the effect of reducing interaction frequency, improving cache speed, and improving speed.

Active Publication Date: 2017-07-21
XIAOMI INC
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present disclosure provide a method and device for processing data in a web page, which is used to overcome the problems in the related art that the browser can only obtain data in an intermediate state from the server, occupying more resources of the server, and slow data interaction

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data processing method and device in web page
  • Data processing method and device in web page
  • Data processing method and device in web page

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0112] Taking the caching and editing operation information as an example when the browser supports local caching technology, the method for processing data in the webpage in the embodiment of the present disclosure will be described in detail, as follows: figure 2 As shown, the method includes:

[0113] In step S201, it is detected whether the browser supports local caching technology.

[0114] In step S202, when the browser supports the local caching technology, the editing operation performed on the data in the webpage is monitored to obtain editing operation information.

[0115] In step S203, the editing operation information is cached locally.

[0116] The embodiments of the present disclosure realize whether the browser supports the local caching technology, so as to lay a solid foundation for caching the editing operation information, and facilitate caching the editing operation information in the local cache.

Embodiment 2

[0118] Taking the editing operation information cached locally to be sent to the server when the information amount of the editing operation information is equal to or greater than the preset threshold as an example, the method for processing data in the web page in the embodiment of the present disclosure is described in detail, as follows: image 3 As shown, the method includes:

[0119] In step S301, the editing operation performed on the data in the web page is monitored to obtain editing operation information.

[0120] In step S302, the editing operation information is cached locally.

[0121] In step S303, it is judged whether the amount of editing operation information cached locally is equal to or greater than a preset threshold, if yes, execute step S304, otherwise end.

[0122] In one embodiment, a timer is used to periodically check whether the editing operation information in the local cache is equal to or greater than a preset threshold.

[0123] Wherein, the pr...

Embodiment 3

[0128] Taking the corresponding caching of the operation identification information and the editing operation identification to the local as an example, the method for processing data in the web page in the embodiment of the present disclosure is described in detail, as follows: Figure 4 As shown, the method includes:

[0129] In step S401, the editing operation performed on the data in the web page is monitored to obtain editing operation information.

[0130] In step S402, an edit operation identifier corresponding to the edit operation information is generated.

[0131] In an embodiment, the edit operation identifier may include: the time of the edit operation or the sequence number of the edit operation, and the like.

[0132] In step S403, the editing operation information and the editing operation identifier are cached locally.

[0133] The embodiments of the present disclosure differentiate editing operations by using editing operation identifiers, so as to facilitat...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a data processing method and device in a webpage. The method includes: monitoring the editing operation performed on the data in the webpage to obtain editing operation information; and storing the editing operation information locally. The method provided by the present disclosure caches the editing operation information in the local storage, which can improve the cache speed compared to storing the editing operation information in the server; on the other hand, when receiving a request to read the editing operation information, the Read the edit operation information for the request, thus improving the speed of reading the edit operation information. Therefore, by caching the editing operation information in the local cache, the interaction between the terminal and the server is reduced, and the resource consumption of the server is reduced. On the other hand, by clearing the editing operation information in the local cache, leakage of user information is prevented, and the purpose of protecting user information is achieved.

Description

technical field [0001] The present disclosure relates to the technical field of computers and electronic equipment, in particular to a method and device for processing data in webpages. Background technique [0002] With the development of the Internet industry, the form of web pages is also constantly changing with the needs of users. During this process, the interaction between the client and the server becomes more and more frequent, and there are many web applications involving user operation records. For example, the draft box of mail, or the time machine of user data, etc. The characteristic of this type of web application is that it will record the whole process of the user's data operation on the server side, and write multiple data copies on the server side, and the basis for each data copy is the user's operation behavior on the data in the web page. When users need to restore data to an intermediate state, they need to read the corresponding data copy saved on th...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06Q10/10
Inventor 任远江岱霖漆昱恒
Owner XIAOMI INC