Data processing method and device

文档序号:1113331 发布日期:2020-09-29 浏览:24次 中文

阅读说明:本技术 一种数据处理方法及装置 (Data processing method and device ) 是由 韦乃莎 于 2020-05-26 设计创作,主要内容包括:本申请示出了一种数据处理方法及装置。通过本申请,即使存储表单数据的存储过程出现异常,也可以自动地尝试解决异常,以使尽可能地可以成功地在浏览器中存储表单数据,如此,本申请可以提高能够成功地在浏览器中存储表单数的可能性,在用户再次填写在浏览器的页面上填写表单时,可以使得浏览器能够获取已存储的表单数据,并自动在页面中之前获取的表单数据,这个表单数据为用户之前在页面上填写过的表单数据,这样就不需要用户在页面中重新填写所有内容,从而可以提高用户体验,提高填写表单的效率。例如,在本申请中,可以自动将不为预设数据类型的表单数据转换为预设数据类型的表单数据。从而可以简化用户操作以及降低存储表单数据的门槛。(The application discloses a data processing method and device. According to the method and the device, even if the storage process of the stored form data is abnormal, the abnormal problem can be automatically tried to be solved, so that the form data can be successfully stored in the browser as far as possible, the possibility that the form single number can be successfully stored in the browser can be improved, when a user fills in the form on the page of the browser again, the browser can acquire the stored form data and automatically acquire the form data in the page, the form data is the form data which is filled in the page before by the user, and therefore the user does not need to refill all contents in the page, user experience can be improved, and the efficiency of filling in the form is improved. For example, in the present application, form data that is not of a preset data type may be automatically converted into form data of a preset data type. Thereby simplifying user operation and reducing the threshold for storing form data.)

1. A method of data processing, the method comprising:

detecting whether the storage process for storing the first form data is abnormal or not;

determining whether the number of times of solving the abnormality for storing the first form data reaches a preset number of times, if the abnormality occurs;

under the condition that the solved times do not reach preset times, solving the abnormity based on at least one abnormity solving function in a preset function set;

determining whether the data type of the first form data is a preset data type or not under the condition that the abnormity is successfully solved;

under the condition that the data type is not the preset data type, converting the first form data into second form data of the preset data type;

and storing the second form data in the browser.

2. The method of claim 1, further comprising:

reading the second form data stored in the browser under the condition that the first form data needs to be filled in on the page of the browser;

converting the second form data into the first form data;

and filling the first form data on the page.

3. The method according to claim 1, wherein after the resolving the anomaly based on at least one anomaly resolving function in the preset function set, further comprising:

increasing a number of times an exception has been resolved to store the first form data.

4. The method of claim 1, wherein the first form data includes a data identifier and a data content;

the detecting whether the storage process for storing the first form data is abnormal includes:

searching whether form data comprising the data identification exists in the form data stored in the browser;

and in the case of the form data comprising the data identification, determining that an exception occurs in the storage process for storing the first form data.

5. The method of claim 4, wherein the resolving the anomaly based on at least one anomaly resolution function in a preset set of functions comprises:

acquiring an identifier resetting function in the preset function set;

and resetting the data identifier in the first form data based on the identifier resetting function, so that the reset data identifier is different from the data identifier in the form data stored in the browser.

6. The method of claim 1, wherein detecting whether the stored process storing the first form data is anomalous comprises

Acquiring a residual storage space corresponding to the browser;

determining whether the remaining storage space is smaller than the space occupied by the first form data;

and determining that the storage process for storing the first form data is abnormal under the condition that the residual storage space is smaller than the occupied space of the first form data.

7. The method of claim 6, wherein the resolving the anomaly based on at least one anomaly resolution function in a preset set of functions comprises:

acquiring a data deleting function in the preset function set;

and deleting at least one form datum stored in the browser based on the data deleting function, so that the residual storage space after the form datum is deleted is larger than or equal to the space occupied by the first form datum.

8. The method of claim 7, wherein deleting at least one form data stored in the browser based on the data deletion function comprises:

acquiring the storage time of each form data stored in the browser when the form data is stored in the browser;

and deleting at least one stored form data according to the sequence of the storage time from early to late.

9. A data processing apparatus, characterized in that the apparatus comprises:

the detection module is used for detecting whether the storage process of storing the first form data is abnormal or not;

the first determining module is used for determining whether the solved times for storing the first form data to solve the abnormity reach the preset times or not under the condition that the abnormity occurs;

the solving module is used for solving the abnormity based on at least one abnormity solving function in a preset function set under the condition that the solved times do not reach preset times;

the second determining module is used for determining whether the data type of the first form data is a preset data type or not under the condition that the abnormity is successfully solved;

the first conversion module is used for converting the first form data into second form data of a preset data type under the condition that the first form data is not of the preset data type;

and the storage module is used for storing the second form data in the browser.

10. The apparatus of claim 9, further comprising:

the reading module is used for reading the second form data stored in the browser under the condition that the first form data needs to be filled in on the page of the browser;

the second conversion module is used for converting the second form data into the first form data;

and the filling module is used for filling the first form data on the page.

11. The apparatus of claim 9, further comprising:

an increase module to increase a number of times an exception has been resolved to store the first form data.

12. The apparatus of claim 9, wherein the first form data comprises a data identifier and a data content;

the detection module comprises:

the searching unit is used for searching whether form data comprising the data identification exists in the form data stored in the browser;

and the first determination unit is used for determining that an abnormality occurs in the storage process of storing the first form data under the condition that the form data comprising the data identification exists.

13. The apparatus of claim 12, wherein the resolution module comprises:

a first obtaining unit, configured to obtain an identifier resetting function in the preset function set;

and the resetting unit is used for resetting the data identifier in the first form data based on the identifier resetting function so as to enable the reset data identifier to be different from the data identifier in the form data stored in the browser.

14. The apparatus of claim 9, wherein the detection module comprises

The second acquisition unit is used for acquiring the residual storage space corresponding to the browser;

a second determination unit configured to determine whether the remaining storage space is smaller than a space occupied by the first form data;

and the third determining unit is used for determining that the storage process for storing the first form data is abnormal under the condition that the residual storage space is smaller than the occupied space of the first form data.

15. The apparatus of claim 14, wherein the resolution module comprises:

a third obtaining unit, configured to obtain a data deletion function in the preset function set;

and the deleting unit is used for deleting at least one form data stored in the browser based on the data deleting function so that the residual storage space after the form data is deleted is larger than or equal to the space occupied by the first form data.

16. The apparatus of claim 14, wherein the deleting unit comprises:

the acquisition subunit is configured to acquire a storage time when each form data stored in the browser is stored in the browser;

and the deleting subunit is used for deleting at least one stored form data according to the sequence of the storage time from early to late.

17. An electronic device, characterized in that the electronic device comprises:

a processor;

a memory for storing processor-executable instructions;

wherein the processor is configured to perform the data processing method of any one of claims 1-8.

18. A non-transitory computer readable storage medium, instructions in which, when executed by a processor of an electronic device, enable the electronic device to perform the data processing method of any one of claims 1-8.

Technical Field

The present application relates to the field of computer technologies, and in particular, to a data processing method and apparatus.

Background

In the process of browsing a page by a user using a browser, it is sometimes necessary to fill a form in the page, for example, fill an account and a password in a login scene and fill personal information in a registration scene.

In the process of filling out the form, sometimes the user needs to interrupt filling out due to the fact that the user is temporarily in need, the user may need to close the browser and then process other things, and the user can fill out the form again after the other things are processed.

The user has filled in part before interrupting filling in the form, and in order to avoid the user from repeatedly filling in the form again, the browser may store the content the user has filled in the form before the user manages the browser.

Therefore, when the user needs to fill the form on the page again, the browser can automatically fill the filled contents in the form, and the user only needs to fill the unfilled contents again, so that the user is prevented from filling repeatedly, and the efficiency of filling the form is improved.

However, sometimes, when the browser stores the content already filled in the form, storage failure may occur, so that when the user fills in the form again, the already filled content cannot be automatically filled in the form, and the user needs to refill all the content in the form, which results in low user experience and reduces efficiency of filling in the form.

Disclosure of Invention

In order to improve user experience, the application shows a data processing method and device.

In a first aspect, the present application shows a data processing method, comprising:

detecting whether the storage process for storing the first form data is abnormal or not;

determining whether the number of times of solving the abnormality for storing the first form data reaches a preset number of times, if the abnormality occurs;

under the condition that the solved times do not reach preset times, solving the abnormity based on at least one abnormity solving function in a preset function set;

determining whether the data type of the first form data is a preset data type or not under the condition that the abnormity is successfully solved;

under the condition that the data type is not the preset data type, converting the first form data into second form data of the preset data type;

and storing the second form data in the browser.

In an optional implementation, the method further includes:

reading the second form data stored in the browser under the condition that the first form data needs to be filled in on the page of the browser;

converting the second form data into the first form data;

and filling the first form data on the page.

In an optional implementation manner, after the resolving the exception based on at least one exception resolution function in the preset function set, the method further includes:

increasing a number of times an exception has been resolved to store the first form data.

In an optional implementation manner, the first form data comprises a data identifier and data content;

the detecting whether the storage process for storing the first form data is abnormal includes:

searching whether form data comprising the data identification exists in the form data stored in the browser;

and in the case of the form data comprising the data identification, determining that an exception occurs in the storage process for storing the first form data.

In an optional implementation manner, the resolving the exception based on at least one exception resolution function in the preset function set includes:

acquiring an identifier resetting function in the preset function set;

and resetting the data identifier in the first form data based on the identifier resetting function, so that the reset data identifier is different from the data identifier in the form data stored in the browser.

In an optional implementation manner, the detecting whether the storage process for storing the first form data is abnormal includes

Acquiring a residual storage space corresponding to the browser;

determining whether the remaining storage space is smaller than the space occupied by the first form data;

and determining that the storage process for storing the first form data is abnormal under the condition that the residual storage space is smaller than the occupied space of the first form data.

In an optional implementation manner, the resolving the exception based on at least one exception resolution function in the preset function set includes:

acquiring a data deleting function in the preset function set;

and deleting at least one form datum stored in the browser based on the data deleting function, so that the residual storage space after the form datum is deleted is larger than or equal to the space occupied by the first form datum.

In an optional implementation manner, the deleting at least one form data stored in the browser based on the data deleting function includes:

acquiring the storage time of each form data stored in the browser when the form data is stored in the browser;

and deleting at least one stored form data according to the sequence of the storage time from early to late.

In a second aspect, the present application shows a data processing apparatus comprising:

the detection module is used for detecting whether the storage process of storing the first form data is abnormal or not;

the first determining module is used for determining whether the solved times for storing the first form data to solve the abnormity reach the preset times or not under the condition that the abnormity occurs;

the solving module is used for solving the abnormity based on at least one abnormity solving function in a preset function set under the condition that the solved times do not reach preset times;

the second determining module is used for determining whether the data type of the first form data is a preset data type or not under the condition that the abnormity is successfully solved;

the first conversion module is used for converting the first form data into second form data of a preset data type under the condition that the first form data is not of the preset data type;

and the storage module is used for storing the second form data in the browser.

In an optional implementation, the apparatus further comprises:

the reading module is used for reading the second form data stored in the browser under the condition that the first form data needs to be filled in on the page of the browser;

the second conversion module is used for converting the second form data into the first form data;

and the filling module is used for filling the first form data on the page.

In an optional implementation, the apparatus further comprises:

an increase module to increase a number of times an exception has been resolved to store the first form data.

In an optional implementation manner, the first form data comprises a data identifier and data content;

the detection module comprises:

the searching unit is used for searching whether form data comprising the data identification exists in the form data stored in the browser;

and the first determination unit is used for determining that an abnormality occurs in the storage process of storing the first form data under the condition that the form data comprising the data identification exists.

In an alternative implementation, the solving module includes:

a first obtaining unit, configured to obtain an identifier resetting function in the preset function set;

and the resetting unit is used for resetting the data identifier in the first form data based on the identifier resetting function so as to enable the reset data identifier to be different from the data identifier in the form data stored in the browser.

In an alternative implementation, the detection module includes

The second acquisition unit is used for acquiring the residual storage space corresponding to the browser;

a second determination unit configured to determine whether the remaining storage space is smaller than a space occupied by the first form data;

and the third determining unit is used for determining that the storage process for storing the first form data is abnormal under the condition that the residual storage space is smaller than the occupied space of the first form data.

In an alternative implementation, the solving module includes:

a third obtaining unit, configured to obtain a data deletion function in the preset function set;

and the deleting unit is used for deleting at least one form data stored in the browser based on the data deleting function so that the residual storage space after the form data is deleted is larger than or equal to the space occupied by the first form data.

In an optional implementation manner, the deleting unit includes:

the acquisition subunit is configured to acquire a storage time when each form data stored in the browser is stored in the browser;

and the deleting subunit is used for deleting at least one stored form data according to the sequence of the storage time from early to late.

In a third aspect, the present application shows an electronic device comprising:

a processor;

a memory for storing processor-executable instructions;

wherein the processor is configured to perform the data processing method of the first aspect.

In a fourth aspect, the present application shows a non-transitory computer readable storage medium having instructions which, when executed by a processor of an electronic device, enable the electronic device to perform the data processing method of the first aspect.

In a fifth aspect, the present application shows a computer program product, in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the data processing method according to the first aspect.

The technical scheme provided by the application can comprise the following beneficial effects:

in the method, whether the storage process of storing the first form data is abnormal or not is detected; determining whether the number of times of solving the abnormality for storing the first form data reaches a preset number of times under the condition that the abnormality occurs in the storing process of storing the first form data; under the condition that the solved times do not reach the preset times, solving the abnormity based on at least one abnormity solving function in the preset function set; determining whether the data type of the first form data is a preset data type; converting the first form data into second form data of a preset data type under the condition that the data type of the first form data is not a preset data type; the second form data is stored in the browser.

According to the method and the device, even if the storage process of the stored form data is abnormal, the method and the device can automatically try to solve the abnormality so that the form data can be successfully stored in the browser as far as possible, therefore, the possibility that the form singular number can be successfully stored in the browser can be improved, when a user fills in the form on the page of the browser again, the browser can obtain the stored form data and automatically obtain the form data in the page, the form data is the form data which is filled in the page before by the user, and therefore the user does not need to refill all the contents in the page, user experience can be improved, and the efficiency of filling in the form is improved.

In addition, in the application, when the form data is stored in the browser, the form data of the preset data type can be stored, and the form data of the non-preset data type can not be supported.

In order to avoid that a user manually converts first form data into second form data of a preset data type, further avoid the user operation complexity, avoid the need for the user to master the technology of converting the data type, and further avoid the higher threshold of storing the form data. The application supports automatic conversion of data types of form data, for example, in the application, form data which is not a preset data type can be automatically converted into form data of a preset data type. Thereby simplifying user operation and reducing the threshold for storing form data.

In one mode, the form data may be stored in the cloud when stored, but then the form data is downloaded from the cloud when the form data needs to be filled in on the page, which consumes more network resources and longer time, and has lower overall efficiency. In the application, the form data can be stored locally in the browser, data interaction with a cloud end is not needed, network resources can be saved successfully, and the overall efficiency can be improved.

Drawings

FIG. 1 is a flow chart of the steps of a data processing method of the present application;

FIG. 2 is a block diagram of a data processing apparatus of the present application;

FIG. 3 is a block diagram of an electronic device shown in the present application;

fig. 4 is a block diagram of an electronic device shown in the present application.

Detailed Description

In order to make the aforementioned objects, features and advantages of the present application more comprehensible, the present application is described in further detail with reference to the accompanying drawings and the detailed description.

Referring to fig. 1, a flowchart illustrating steps of a data processing method according to the present application is shown, where the method may specifically include the following steps:

in step S101, detecting whether a storage process for storing the first form data is abnormal;

in the present application, the first form data includes at least two parts, for example, at least data identification and data content; when a user fills in data content of form data on a page, data content is usually filled in an input box, the page includes the input box and prompt text corresponding to the input box, the prompt text is displayed around the input box, the prompt text is used for prompting the user what data content can be input in the input box, for example, a user name, a password, a name and an identity card number are input, and the prompt text can be a data identifier.

Therefore, the electronic device may obtain the data content input by the user in the input box, then obtain the prompt text corresponding to the input box as the data identifier, and then may generate the first form data according to the obtained data identifier and the data content, for example, in one example, the data identifier and the data content may be combined into the first form data, and the like.

The inventor finds that, if an exception occurs in the storage process for storing the first form data, there are at least two general cases:

one situation is: form data including the data identifier exists in the form data stored in the browser, and the browser or an operating system of the electronic device where the browser is located does not support simultaneous storage of a plurality of form data with the same data identifier.

The other situation is that: the remaining storage space corresponding to the browser is less than the space occupied by the first form data, resulting in insufficient remaining storage space to accommodate the first form data.

Of course, other conditions causing the exception may also be included, and the application is not exemplified, and any condition causing the exception to occur in the storage process for storing the first form data is within the protection scope of the application.

For the first case listed above, it may be found whether form data including data identifier exists in form data already stored in the browser; and determining that an exception occurs in the storage process of the first form data when the form data comprising the data identification exists in the form data stored in the browser.

For the second case listed above, the remaining storage space corresponding to the browser may be obtained; determining whether the remaining storage space is smaller than the space occupied by the first form data; and determining that the storage process for storing the first form data is abnormal under the condition that the residual storage space corresponding to the browser is smaller than the occupied space of the first form data.

In a case where an abnormality occurs in a storage process of storing first form data, in step S102, it is determined whether a number of times of resolving the abnormality for storing the first form data reaches a preset number of times;

in the present application, when the first form data is stored for the first time, the first form data may be set to be stored with the number of times of resolving the anomaly being 0, and then the data identifier of the first form data and the number of times of resolving 0 are stored in the correspondence relationship between the data identifier of the form data and the number of times of resolving.

Then, every time an exception is resolved for storing the first form data, the resolved number of times corresponding to the data identification of the first form data is added to the correspondence between the data identification of the form data and the resolved number of times.

In this way, when the number of times of resolution of an abnormality for storing the first form data is acquired, the number of times of resolution corresponding to the data identification of the first form data can be searched for in the correspondence between the data identification of the form data and the number of times of resolution. It may then be determined whether the number of resolved times reaches a preset number.

In the case where no abnormality occurs in the storage process of storing the first form data, it may directly jump to step S104.

In the case where the solved number of times does not reach the preset number of times, in step S103, an abnormality is solved based on at least one abnormality solving function in the preset function set;

in this application, for the two cases listed in step S101, the preset function set may include at least an identifier resetting function and a data deleting function, where the identifier resetting function is used to reset the data identifier in the form data, and the data deleting function is used to delete the form data stored in the browser.

The preset times may include the number of the exception resolution functions included in the preset function set.

In an embodiment of the present application, for the first case listed in step S101, an identifier resetting function in a preset function set may be obtained; and then resetting the data identifier in the first form data based on an identifier resetting function so that the reset data identifier is different from the data identifier in the form data stored in the browser, thereby storing the first form data in the browser.

In another embodiment of the present application, for the second case listed in step S101, a data deletion function in a preset function set may be obtained; and then deleting at least one form data stored in the browser based on the data deleting function, so that the remaining storage space after the form data is deleted is larger than or equal to the occupied space of the first form data, and the first form data can be stored in the browser.

In the present application, the storage time when each form data stored in the browser is initially stored in the browser is different, and in general, the user often uses the stored form data within a short time after storing the form data in the browser, and often rarely uses the form data again after using the form data.

Therefore, the lower the possibility that the form data stored in the browser and stored at the time farther from the current time will be used again by the user, the higher the possibility that the form data stored in the browser and stored at the time closer to the current time will be used again by the user.

Therefore, when deleting at least one form data stored in the browser, if form data that needs to be used by other users is deleted, the other users need to manually refill the form data when filling in the form on the page, which brings much trouble to other users and reduces the efficiency of filling in the form.

Therefore, in order to avoid reducing the efficiency of filling in forms as much as possible, when at least one form data stored in the browser is deleted based on the data deletion function, the storage time when each form data stored in the browser is stored in the browser may be acquired; and then deleting at least one stored form data according to the sequence of the storage time from early to late.

In the application, in the history process, each time a form data is stored in the browser, the storage time of the form data may be stored in the browser, for example, in the correspondence between the data identifier of the form data and the storage time, the data identifier of the form data and the storage time may be stored.

In this way, when the storage time when each form data stored in the browser is obtained, the storage time corresponding to the data identifier of each stored form data can be searched in the corresponding relationship between the data identifier of the form data and the storage time.

Further, after the abnormality is resolved based on at least one abnormality resolving function in the preset function set, the number of times the abnormality has been resolved to store the first form data may also be increased, for example, the number of times the abnormality has been resolved corresponding to the data identification of the first form data is increased in the correspondence between the data identification of the form data and the number of times the abnormality has been resolved.

When the solved times reach the preset times, the process of storing the first form data in the browser can be ended, and the user can be prompted that the first form data is not successfully stored in the browser, so that the user can know that the first form data is not successfully stored in the browser. After knowing that the first form data is not successfully stored in the browser, the user can check the abnormal reason by himself or ask a technician to check the abnormal reason for assistance, so as to find the abnormal reason as soon as possible, solve the abnormality according to the abnormal reason, and recover the form data to be stored as soon as possible.

In step S104, in the case that the exception is successfully resolved, determining whether the data type of the first form data is a preset data type;

in the application, when the form data is stored in the browser, the form data of the preset data type can be stored, and the form data of the non-preset data type can not be supported.

Thus, in one mode, before storing the first form data, if the data type of the first form data is not the preset data type, the user needs to manually convert the first form data into the second form data of the preset data type, and then store the second form data in the browser.

However, in the above method, the user is required to manually convert the first form data into the second form data of the preset data type, which results in a complicated user operation, and the user is required to master the technology of converting the data type, thereby resulting in a higher threshold for storing the form data.

Therefore, in order to simplify the user operation and reduce the threshold of storing the form data, the present application supports the data type of the automatic conversion form data, for example, in the present application, the form data which is not the preset data type may be automatically converted into the form data of the preset data type.

In general, a type identifier of a data type of form data may be stored in a preset field in the form data, so that, when it is determined whether the data type of the first form data is the preset data type, the type identifier stored in the preset field in the first form data may be obtained, and it is determined whether the type identifier is the type identifier of the preset data type.

If the exception is not successfully solved, the process of storing the first form data in the browser may be ended, and the user may be prompted that the first form data is not successfully stored in the browser, so that the user may know that the first form data is not successfully stored in the browser. After knowing that the first form data is not successfully stored in the browser, the user can check the abnormal reason by himself or ask a technician to check the abnormal reason for assistance, so as to find the abnormal reason as soon as possible, solve the abnormality according to the abnormal reason, and recover the form data to be stored as soon as possible.

In step S105, under the condition that the data type of the first form data is not the preset data type, converting the first form data into second form data of the preset data type;

the first form data can be converted into the second form data of the preset data type by using any data type conversion mode in the prior art, and the data type conversion mode is not limited in the application.

In step S106, the second form data is stored in the browser.

In the case where the data type of the first form data is a preset data type, in step S107, the first form data is stored in the browser.

In the method, whether the storage process of storing the first form data is abnormal or not is detected; determining whether the number of times of solving the abnormality for storing the first form data reaches a preset number of times under the condition that the abnormality occurs in the storing process of storing the first form data; under the condition that the solved times do not reach the preset times, solving the abnormity based on at least one abnormity solving function in the preset function set; determining whether the data type of the first form data is a preset data type; converting the first form data into second form data of a preset data type under the condition that the data type of the first form data is not a preset data type; the second form data is stored in the browser.

According to the method and the device, even if the storage process of the stored form data is abnormal, the method and the device can automatically try to solve the abnormality so that the form data can be successfully stored in the browser as far as possible, therefore, the possibility that the form singular number can be successfully stored in the browser can be improved, when a user fills in the form on the page of the browser again, the browser can obtain the stored form data and automatically obtain the form data in the page, the form data is the form data which is filled in the page before by the user, and therefore the user does not need to refill all the contents in the page, user experience can be improved, and the efficiency of filling in the form is improved.

In addition, in the application, when the form data is stored in the browser, the form data of the preset data type can be stored, and the form data of the non-preset data type can not be supported.

In order to avoid that a user manually converts first form data into second form data of a preset data type, further avoid the user operation complexity, avoid the need for the user to master the technology of converting the data type, and further avoid the higher threshold of storing the form data. The application supports automatic conversion of data types of form data, for example, in the application, form data which is not a preset data type can be automatically converted into form data of a preset data type. Thereby simplifying user operation and reducing the threshold for storing form data.

In one mode, the form data may be stored in the cloud when stored, but then the form data is downloaded from the cloud when the form data needs to be filled in on the page, which consumes more network resources and longer time, and has lower overall efficiency. In the application, the form data can be stored locally in the browser, data interaction with a cloud end is not needed, network resources can be saved successfully, and the overall efficiency can be improved.

Further, after the second form data is stored in the browser, a storage time at which the second form data is stored in the browser may be acquired, and then the storage time at which the second form data is stored in the browser is recorded, for example, in a correspondence relationship between the data identification of the form data and the storage time, the data identification of the second form data and the storage time are stored.

In the application, the data identifier of the second form data is the same as the data identifier of the first form data, and the data type of the second form data is different from the data type of the first form data.

In another embodiment of the present application, a storage space corresponding to a browser may also be periodically cleaned, where the storage space corresponding to the browser includes a storage space in a hardware format allocated by the electronic device for the browser, and the like.

For example, when the interval duration between the storage time when some form data stored in the browser is stored in the browser at first and the current time is longer than the preset duration, it is often indicated that the possibility that the form data is used by the user later is very low, and thus, the form data can be deleted from the browser, thereby saving the storage space.

In order to avoid the user from repeatedly manually filling in the first form data that has been previously filled in on the page of the browser in the case where the first form data needs to be filled in on the page of the browser later, the second form data that has been stored in the browser may be read, and then the second form data may be converted into the first form data, and the first form data may be filled in on the page of the browser.

After the second form data is stored in the browser in step S106, the data types of the second form data and the first form data may also be stored in the corresponding relationship between the form data and the type identifier of the data type in the browser, so as to record which data type of the form data is converted from the second form data.

In this way, when the second form data is converted into the first form data, the type identifier corresponding to the second form data can be searched in the corresponding relationship between the form data and the type identifier of the data type in the browser, so that it can be determined that the second form data is obtained by converting the form data of the data type corresponding to the searched type identifier, and therefore, at this time, the second form data needs to be converted into the form data of the data type corresponding to the searched type identifier, for example, the second form data is converted into the first form data of the data type corresponding to the searched type identifier.

It is noted that, for simplicity of explanation, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will appreciate that the present application is not limited by the order of acts, as some steps may, in accordance with the present application, occur in other orders and concurrently. Further, those skilled in the art will also appreciate that the embodiments described in the specification are exemplary and that no action is necessarily required in this application.

Referring to fig. 2, a block diagram of a data processing apparatus according to the present application is shown, and the apparatus may specifically include the following modules:

the detection module 11 is configured to detect whether a storage process for storing the first form data is abnormal;

a first determining module 12, configured to determine, when an exception occurs, whether a number of times that an exception has been resolved to store the first form data reaches a preset number of times;

a solving module 13, configured to solve the exception based on at least one exception solving function in a preset function set when the solved number of times does not reach a preset number of times;

a second determining module 14, configured to determine whether a data type of the first form data is a preset data type under the condition that the exception is successfully solved;

a first conversion module 15, configured to, if the first form data is not of the preset data type, convert the first form data into second form data of the preset data type;

and the storage module 16 is used for storing the second form data in the browser.

In an optional implementation, the apparatus further comprises:

the reading module is used for reading the second form data stored in the browser under the condition that the first form data needs to be filled in on the page of the browser;

the second conversion module is used for converting the second form data into the first form data;

and the filling module is used for filling the first form data on the page.

In an optional implementation, the apparatus further comprises:

an increase module to increase a number of times an exception has been resolved to store the first form data.

In an optional implementation manner, the first form data comprises a data identifier and data content;

the detection module comprises:

the searching unit is used for searching whether form data comprising the data identification exists in the form data stored in the browser;

and the first determination unit is used for determining that an abnormality occurs in the storage process of storing the first form data under the condition that the form data comprising the data identification exists.

In an alternative implementation, the solving module includes:

a first obtaining unit, configured to obtain an identifier resetting function in the preset function set;

and the resetting unit is used for resetting the data identifier in the first form data based on the identifier resetting function so as to enable the reset data identifier to be different from the data identifier in the form data stored in the browser.

In an alternative implementation, the detection module includes

The second acquisition unit is used for acquiring the residual storage space corresponding to the browser;

a second determination unit configured to determine whether the remaining storage space is smaller than a space occupied by the first form data;

and the third determining unit is used for determining that the storage process for storing the first form data is abnormal under the condition that the residual storage space is smaller than the occupied space of the first form data.

In an alternative implementation, the solving module includes:

a third obtaining unit, configured to obtain a data deletion function in the preset function set;

and the deleting unit is used for deleting at least one form data stored in the browser based on the data deleting function so that the residual storage space after the form data is deleted is larger than or equal to the space occupied by the first form data.

In an optional implementation manner, the deleting unit includes:

the acquisition subunit is configured to acquire a storage time when each form data stored in the browser is stored in the browser;

and the deleting subunit is used for deleting at least one stored form data according to the sequence of the storage time from early to late.

In the method, whether the storage process of storing the first form data is abnormal or not is detected; determining whether the number of times of solving the abnormality for storing the first form data reaches a preset number of times under the condition that the abnormality occurs in the storing process of storing the first form data; under the condition that the solved times do not reach the preset times, solving the abnormity based on at least one abnormity solving function in the preset function set; determining whether the data type of the first form data is a preset data type; converting the first form data into second form data of a preset data type under the condition that the data type of the first form data is not a preset data type; the second form data is stored in the browser.

According to the method and the device, even if the storage process of the stored form data is abnormal, the method and the device can automatically try to solve the abnormality so that the form data can be successfully stored in the browser as far as possible, therefore, the possibility that the form singular number can be successfully stored in the browser can be improved, when a user fills in the form on the page of the browser again, the browser can obtain the stored form data and automatically obtain the form data in the page, the form data is the form data which is filled in the page before by the user, and therefore the user does not need to refill all the contents in the page, user experience can be improved, and the efficiency of filling in the form is improved.

In addition, in the application, when the form data is stored in the browser, the form data of the preset data type can be stored, and the form data of the non-preset data type can not be supported.

In order to avoid that a user manually converts first form data into second form data of a preset data type, further avoid the user operation complexity, avoid the need for the user to master the technology of converting the data type, and further avoid the higher threshold of storing the form data. The application supports automatic conversion of data types of form data, for example, in the application, form data which is not a preset data type can be automatically converted into form data of a preset data type. Thereby simplifying user operation and reducing the threshold for storing form data.

In one mode, the form data may be stored in the cloud when stored, but then the form data is downloaded from the cloud when the form data needs to be filled in on the page, which consumes more network resources and longer time, and has lower overall efficiency. In the application, the form data can be stored locally in the browser, data interaction with a cloud end is not needed, network resources can be saved successfully, and the overall efficiency can be improved.

For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.

Fig. 3 is a block diagram of an electronic device 800 shown in the present application. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.

Referring to fig. 3, electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.

The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.

The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, images, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.

The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.

The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.

The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.

The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives broadcast signals or broadcast operation information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.

In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the electronic device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

Fig. 4 is a block diagram of an electronic device 1900 shown in the present application. For example, the electronic device 1900 may be provided as a server.

Referring to fig. 4, electronic device 1900 includes a processing component 1922 further including one or more processors and memory resources, represented by memory 1932, for storing instructions, e.g., applications, executable by processing component 1922. The application programs stored in memory 1932 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1922 is configured to execute instructions to perform the above-described method.

The electronic device 1900 may also include a power component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input/output (I/O) interface 1958. The electronic device 1900 may operate based on an operating system stored in memory 1932, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.

The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.

As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

The present application is described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.

Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.

The data processing method and apparatus provided by the present application are introduced in detail, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

21页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种确定触摸设备文本编辑位置的方法和装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!