Data processing method, device, equipment and storage medium

文档序号:1782717 发布日期:2019-12-06 浏览:9次 中文

阅读说明:本技术 一种数据处理方法、装置、设备及存储介质 (Data processing method, device, equipment and storage medium ) 是由 吕世豪 于 2019-09-05 设计创作,主要内容包括:本公开实施例公开了一种数据处理方法、装置、设备及存储介质,该方法包括:获取当前时刻在预设输入框中输入的第一参数,并确定第一参数对应的第一位置信息;基于第一参数对应的参数输入方式,确定第一参数对应的第一标识,其中,参数输入方式为键盘输入方式或点击标识框插入方式;将第一位置信息和第一标识作为一个元素信息,顺序存储至第一参数对应的第一数据集合中;当检测到输入结束指令时,根据预设输入框中输入的各个参数所对应的数据集合,生成由各个参数构成的输入内容对应的编码数据。本公开实施例的技术方案,可以在解决多标识冲突的情况下实现键盘输入方式,从而在保证编码数据生成准确性的同时也提高了用户体验。(The embodiment of the disclosure discloses a data processing method, a device, equipment and a storage medium, wherein the method comprises the following steps: acquiring a first parameter input in a preset input frame at the current moment, and determining first position information corresponding to the first parameter; determining a first identifier corresponding to the first parameter based on a parameter input mode corresponding to the first parameter, wherein the parameter input mode is a keyboard input mode or a click identifier box insertion mode; the first position information and the first identification are used as element information and are sequentially stored in a first data set corresponding to the first parameter; and when an input ending instruction is detected, generating coded data corresponding to input contents formed by all parameters according to the data set corresponding to all parameters input in the preset input frame. According to the technical scheme of the embodiment of the disclosure, the keyboard input mode can be realized under the condition of solving the multi-identification conflict, so that the accuracy of coded data generation is ensured, and the user experience is improved.)

1. a data processing method, comprising:

Acquiring a first parameter input in a preset input frame at the current moment, and determining first position information corresponding to the first parameter;

determining a first identifier corresponding to the first parameter based on a parameter input mode corresponding to the first parameter, wherein the parameter input mode is a keyboard input mode or a click identifier box insertion mode;

Taking the first position information and the first identifier as element information, and sequentially storing the element information and the first identifier into a first data set corresponding to the first parameters, so that the element arrangement sequence corresponding to each first parameter in the first data set is consistent with the appearance sequence of the first parameters in the preset input box;

And when an input ending instruction is detected, generating coded data corresponding to input contents formed by the parameters according to the data set corresponding to the parameters input in the preset input frame.

2. the method of claim 1, wherein the first location information comprises a parameter location start point and a parameter location end point corresponding to the first parameter;

Correspondingly, determining the first position information corresponding to the first parameter includes:

Acquiring a starting input position of the first parameter, and taking the starting input position as a starting point of the parameter position;

and determining a parameter position end point corresponding to the first parameter according to the parameter position start point and the character length corresponding to the first parameter.

3. The method of claim 1, wherein determining the first identifier corresponding to the first parameter based on the parameter input mode corresponding to the first parameter comprises:

When the parameter input mode corresponding to the first parameter is a keyboard input mode, directly determining the parameter name of the first parameter as a first identifier corresponding to the first parameter;

and when the current input mode corresponding to the first parameter is a click identification frame insertion mode, determining a first identification corresponding to the currently clicked first parameter based on a preset mapping relation between each parameter and the identification.

4. The method according to claim 1, wherein the step of sequentially storing the first position information and the first identifier as one piece of element information into a first data set corresponding to the first parameter, so that an element arrangement order corresponding to each first parameter in the first data set is consistent with an appearance order of the first parameter in the preset input box, includes:

if the first data set corresponding to the first parameter does not exist, creating the first data set, and storing the first position information and the first identifier as element information to the created first data set;

if the first data set corresponding to the first parameter exists, determining a first element position corresponding to the first position information according to the existing position information and the first position information in each existing element in the first data set, and storing the first position information and the first identifier as one element information to the first element position in the first data set.

5. The method according to claim 1, wherein generating encoded data corresponding to input content constituted by each parameter according to a data set corresponding to each parameter input in the preset input box comprises:

Determining an identifier corresponding to each parameter in the preset input frame according to the data set corresponding to each parameter input in the preset input frame;

And replacing each parameter input in the preset input frame with a corresponding identifier to generate coded data corresponding to the input content formed by each parameter.

6. the method of claim 1, prior to detecting the input of the end instruction, further comprising:

When detecting that the parameters in the preset input frame are deleted, determining second position information corresponding to the currently deleted second parameters;

and determining a second element position where the second position information is located in a second data set corresponding to the second parameter, and deleting element information stored in the second element position to update the second data set.

7. The method of claim 1, prior to detecting the input of the end instruction, further comprising:

Detecting whether a third parameter with a changed position exists when the first parameter is input in a preset input frame;

if so, determining third position information of the third parameter before position change and fourth position information after position change;

and determining a third element position where the third position information is located in a third data set corresponding to the third parameter, and updating the third position information stored in the third element position to fourth position information.

8. The method of claim 1, wherein when the first parameter is input in the preset input box, the method further comprises:

when the parameter input mode corresponding to the first parameter is a keyboard input mode, displaying the first parameter in a first display mode in the preset input frame;

And when the parameter input mode corresponding to the first parameter is a click identification box insertion mode, displaying the first parameter in a second display mode in the preset input box.

9. the method of claim 1, further comprising:

if the fact that the copying operation of at least one fourth parameter in the preset input frame is detected, determining fifth position information corresponding to each fourth parameter;

Determining a fourth element position where each fifth position information is located in a fourth parameter set corresponding to each fourth parameter, and determining prefix information corresponding to the fourth parameter according to element information stored in the fourth element position;

and adding corresponding prefix information at the front position of each fourth parameter, and taking the fourth parameter carrying the prefix information as the copied fourth parameter.

10. The method of claim 9, further comprising:

If the fact that pasting operation is carried out on at least one fourth parameter in a preset input frame is detected, prefix information corresponding to each fourth parameter is obtained;

According to each prefix information, determining a fourth identifier corresponding to each fourth parameter, and determining sixth position information corresponding to each pasted fourth parameter;

and sequentially storing the fourth identifier and the sixth position information as element information into a fourth data set corresponding to the fourth parameter.

11. The method according to any one of claims 1-10, further comprising:

if a formatting instruction is detected, replacing each fifth parameter in a preset input frame with a sixth parameter based on a preset replacement rule, obtaining data to be formatted, and storing a corresponding relation between the fifth parameter and the sixth parameter;

Formatting the data to be formatted to obtain first target data in a preset data format;

And replacing each sixth parameter in the first target data with a corresponding fifth parameter based on the corresponding relationship, obtaining second target data in the preset data format, and displaying the second target data in the preset input box.

12. a data processing apparatus, comprising:

the first position information determining module is used for acquiring a first parameter input in a preset input box at the current moment and determining first position information corresponding to the first parameter;

The first identifier determining module is used for determining a first identifier corresponding to the first parameter based on a parameter input mode corresponding to the first parameter, wherein the parameter input mode is a keyboard input mode or a click identifier box inserting mode;

the element information storage module is used for sequentially storing the first position information and the first identifier as element information into a first data set corresponding to the first parameter, so that the element arrangement sequence corresponding to each first parameter in the first data set is consistent with the appearance sequence of the first parameter in the preset input box;

And the coded data generating module is used for generating coded data corresponding to input contents formed by all the parameters according to the data set corresponding to all the parameters input in the preset input frame when an input ending instruction is detected.

13. an apparatus, characterized in that the apparatus comprises:

one or more processors;

A storage device for storing one or more programs,

when executed by the one or more processors, cause the one or more processors to implement a data processing method as claimed in any one of claims 1-11.

14. a storage medium containing computer-executable instructions for performing the data processing method of any one of claims 1-11 when executed by a computer processor.

Technical Field

The embodiments of the present disclosure relate to the field of computer technologies, and in particular, to a data processing method, apparatus, device, and storage medium.

background

With the rapid development of computer technology, more and more application functions are developed to meet the increasing demands of users. For example, data input by the user in the input box may be processed to generate required encoded data, so as to store the encoded data in the backend server.

generally, a plurality of input parameters with the same name but different types may exist in the input box at the same time, for example, an input parameter "beijing" in a "social security city" type and an input parameter "beijing" in an "employment city" type exist in the input box at the same time, and identifications corresponding to the same parameter are different in different types, so that the same parameter in the input box corresponds to a plurality of identifications, and there is a case of identification conflict, and further, encoded data cannot be accurately generated based on the identifications.

At present, the existing data processing method is as follows: the identification frame corresponding to each parameter is added in advance in the input interface, so that a user can click the identification frame corresponding to the required parameter through a mouse, the required parameter is inserted into the input frame, and input data is stored in a DOM (Document Object Model) tree mode in the click input process, so that the identification corresponding to each input parameter can be obtained, the problem of multi-identification conflict is solved, and encoded data can be accurately generated.

Therefore, although the problem of multi-identifier conflict is solved in the conventional data processing mode, the input can be performed only by clicking the identifier box with a mouse, the input cannot be performed randomly by using a keyboard, and the user experience is reduced.

disclosure of Invention

the embodiment of the disclosure provides a data processing method, a data processing device, a data processing apparatus and a storage medium, so as to implement a keyboard input mode under the condition of solving multiple identifier conflicts, thereby ensuring the generation accuracy of encoded data and improving user experience.

In a first aspect, an embodiment of the present disclosure provides a data processing method, where the method includes:

Acquiring a first parameter input in a preset input frame at the current moment, and determining first position information corresponding to the first parameter;

Determining a first identifier corresponding to the first parameter based on a parameter input mode corresponding to the first parameter, wherein the parameter input mode is a keyboard input mode or a click identifier box insertion mode;

taking the first position information and the first identifier as element information, and sequentially storing the element information and the first identifier into a first data set corresponding to the first parameters, so that the element arrangement sequence corresponding to each first parameter in the first data set is consistent with the appearance sequence of the first parameters in the preset input box;

and when an input ending instruction is detected, generating coded data corresponding to input contents formed by the parameters according to the data set corresponding to the parameters input in the preset input frame.

in a second aspect, an embodiment of the present disclosure further provides a data processing apparatus, where the apparatus includes:

The first position information determining module is used for acquiring a first parameter input in a preset input box at the current moment and determining first position information corresponding to the first parameter;

the first identifier determining module is used for determining a first identifier corresponding to the first parameter based on a parameter input mode corresponding to the first parameter, wherein the parameter input mode is a keyboard input mode or a click identifier box inserting mode;

The element information storage module is used for sequentially storing the first position information and the first identifier as element information into a first data set corresponding to the first parameter, so that the element arrangement sequence corresponding to each first parameter in the first data set is consistent with the appearance sequence of the first parameter in the preset input box;

and the coded data generating module is used for generating coded data corresponding to input contents formed by all the parameters according to the data set corresponding to all the parameters input in the preset input frame when an input ending instruction is detected.

In a third aspect, an embodiment of the present disclosure further provides an apparatus, where the apparatus includes:

One or more processors;

a storage device for storing one or more programs,

when executed by the one or more processors, cause the one or more processors to implement a data processing method as provided by any of the embodiments of the present disclosure.

in a fourth aspect, embodiments of the present disclosure also provide a storage medium containing computer-executable instructions for performing a data processing method as provided by any of the embodiments of the present disclosure when executed by a computer processor.

According to the technical scheme of the embodiment of the disclosure, the required parameters can be input in the preset input box in a keyboard input mode or a click identification box insertion mode, so that the keyboard input mode is realized, and the user experience is improved. And when the parameters are input, the position information and the identification of each input parameter need to be determined in real time, and the position information and the identification are sequentially stored into a data set corresponding to the parameters as element information. That is, if the first parameter is input in the preset identification frame at the current moment, the position information of the currently input first parameter is determined in real time, determining a first identifier corresponding to the first parameter according to a parameter input mode corresponding to the first parameter, sequentially storing the position information and the identifier of the first parameter as element information to corresponding positions in each data set corresponding to the first parameter, the element arrangement sequence corresponding to each first parameter in the first data set is consistent with the appearance sequence of the first parameter in the preset input box, so that the identification corresponding to each first parameter appearing in the preset input box can be determined based on the position information and the identification stored in the first data set, the problems that the identification conflicts are caused by corresponding a plurality of identifications to the same parameter, and the coded data cannot be accurately generated are solved, therefore, the technical effect of improving the user experience is achieved while the generation accuracy of the coded data is ensured.

Drawings

the above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.

Fig. 1 is a schematic flow chart of a data processing method according to a first embodiment of the disclosure;

Fig. 2 is a schematic flowchart of a data processing method according to a second embodiment of the disclosure;

fig. 3 is a schematic structural diagram of a data processing apparatus according to a third embodiment of the present disclosure;

fig. 4 is a schematic structural diagram of an apparatus provided in the fourth embodiment of the present disclosure.

Detailed Description

embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.

it should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.

The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.

it should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.

It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.

25页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:球形摩擦发电及压电型自供电无线鼠标

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!

技术分类