CN111221603A - Information input method and device based on input box - Google Patents
Information input method and device based on input box Download PDFInfo
- Publication number
- CN111221603A CN111221603A CN201911047277.9A CN201911047277A CN111221603A CN 111221603 A CN111221603 A CN 111221603A CN 201911047277 A CN201911047277 A CN 201911047277A CN 111221603 A CN111221603 A CN 111221603A
- Authority
- CN
- China
- Prior art keywords
- input value
- input
- value
- historical
- current input
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the invention provides an information input method and device based on an input frame, wherein when the input frame is in a focusing state, a preset input detection process of the input frame is obtained; detecting according to an input detection process for each input of a user in an input box until the input box is in an out-of-focus state; wherein, detecting according to the input detection flow comprises: when the current input value and the historical input value in the input box accord with the detection elements of the input detection process, updating the historical input value into the current input value; and when the current input value does not accord with the detection element of the input detection flow, keeping the historical input value unchanged. Therefore, the numerical value input by the user is limited by setting the detection element in the detection process, the numerical value conforming to the detection element can be obtained, the numerical value input by the user is prevented from having an error, an error result is obtained, and the accuracy of information input is improved.
Description
Technical Field
The invention relates to the technical field of financial technology (Fintech), in particular to an information input method and device based on an input box.
Background
With the development of computer technology, more and more technologies (such as distributed, Blockchain, artificial intelligence, etc.) are applied in the financial field, the traditional financial industry is gradually changing to financial technology (Fintech), and more technologies are applied in the financial industry. For example, recently emerging Online Banking Service (Online Banking Service) is a virtual counter established in the internet by each bank, and the bank provides clients with account opening, account cancellation, inquiry, account checking, in-line transfer, inter-line transfer, credit, Online securities, investment and financing and the like through the internet by using a network technology, so that the clients can safely and conveniently enter the Online Banking to process transactions through the internet all over the world as long as the clients possess account numbers and passwords; compared with the traditional banking business, the method not only greatly reduces the banking cost and enables the client to handle business at any time and place, but also can provide various and personalized services for the client.
Various businesses which can be selected by users are respectively arranged in each project in the existing online banking, for example, various businesses such as savings business, bond business, fund business, stock business, insurance business, gold business and the like which can be selected by the customers are contained in the investment and financing project. Because the accuracy of the investment amount in each service is different, the client is easy to lose the amount by mistake when investing and managing the money, and the loss of the user is caused, so the input numerical value cannot be accurately defined by the existing input box, and the accuracy of information input is lower.
Therefore, there is a need for an information input method and apparatus based on an input box, which are used to define the input accuracy of the input box and improve the accuracy of information input.
Disclosure of Invention
The embodiment of the invention provides an information input method and device based on an input box, which are used for improving the accuracy of information input.
In a first aspect, an embodiment of the present invention provides a method for inputting information based on an input box, where the method includes: when the input frame is in a focusing state, acquiring a preset input detection process of the input frame; detecting according to the input detection process for each input of a user in the input box until the input box is in an out-of-focus state; wherein detecting according to the input detection flow comprises: when the current input value and the historical input value in the input box accord with the detection elements of the input detection process, updating the historical input value to the current input value; and when the current input value does not accord with the detection element of the input detection process, keeping the historical input value unchanged.
By adopting the method, the input frame is preset with the corresponding input detection process, so that the user can carry out detection according to the input detection process when inputting information in the input frame every time, and the numerical value input by the user is limited by setting the detection element in the input detection process, so that the numerical value conforming to the detection element can be obtained, the numerical value input by the user is prevented from generating errors, an error result is obtained, and the accuracy of information input is improved.
In one possible design, when the current input value does not conform to the detection element of the input detection process, keeping the historical input value unchanged includes: the detection elements are effective numbers; upon determining that the current input value is not a valid number, determining whether the current input value is a scientific notation; if yes, keeping the historical input value unchanged and sending prompt information; and when the current input value is determined not to be a valid number, determining that the current input value contains a plurality of decimal points, and keeping the historical input value unchanged.
By adopting the method, whether the input information contains the scientific counting method or whether the decimal point is repeatedly input in the input information can be judged, the scientific counting method can be applied to calculation when the input box allows the scientific counting method to be used, characters of the scientific counting method can be filtered when the scientific counting method is not allowed to be used, or a user can be prompted when a plurality of decimal points are input by mistake in the input information, so that the accuracy of information input is improved.
In one possible design, when the current input value does not conform to the detection element of the input detection process, keeping the historical input value unchanged includes: the detection elements are effective numbers, and the number of the effective number digits after decimal point is N bits; and after the current input value is determined to be a valid number, if the number of the valid number after the decimal point of the current input value is determined to be greater than N, keeping the historical input value unchanged and sending a prompt message.
By adopting the method, characters except the effective digits are filtered out by judging whether the current input value is the effective digits; and by setting the detection element N, if the decimal place number of the current input value is greater than N, the current input value input at this time is judged to be invalid, so that the user can be reminded when the user mistakenly inputs multiple decimal places, the accuracy of the current input value is improved by limiting the input of the current input value, and the accuracy of information input is improved.
In one possible design, determining the current input value to be a significant number includes: determining that the current input value is a decimal; determining the historical input value as a decimal; determining the number of effective digits after the decimal point of the current input value is less than or equal to N; and determining the decimal point digit of the current input value as one digit.
In one possible design, when the current input value and the historical input value in the input box conform to the detection element of the input detection process, updating the historical input value to the current input value includes: the detection elements are effective numbers, and the effective digits after decimal point are N bits; updating the historical input value to the current input value upon determining that the current input value is a significant digit and that the post-decimal significant digit of the current input value is not greater than N; or updating the historical input value to the current input value if the current input value is determined to be a decimal, the historical input value is a decimal, and the number of significant digits after the decimal point of the current input value is determined to be N.
In a second aspect, an embodiment of the present invention provides an information input apparatus based on an input box, where the apparatus includes: the processing module is used for acquiring a preset input detection process of the input frame when the input frame is in a focusing state; detecting according to the input detection process for each input of a user in the input box until the input box is in an out-of-focus state; wherein detecting according to the input detection flow comprises: when the current input value and the historical input value in the input box accord with the detection elements of the input detection process, updating the historical input value to the current input value; and when the current input value does not accord with the detection element of the input detection process, keeping the historical input value unchanged.
In one possible design, when the current input value does not conform to the detection element of the input detection process, the historical input value is kept unchanged, and the determining module is configured to: the detection elements are effective numbers; upon determining that the current input value is not a valid number, determining whether the current input value is a scientific notation; if yes, keeping the historical input value unchanged and sending prompt information; and when the current input value is determined not to be a valid number, determining that the current input value contains a plurality of decimal points, and keeping the historical input value unchanged.
In one possible design, when the current input value does not conform to the detection element of the input detection process, the determination module is configured to keep the historical input value unchanged, and: the detection elements are effective numbers, and the number of the effective number digits after decimal point is N bits; and after the current input value is determined to be a valid number, determining that the number of the valid number is greater than N after the decimal point of the current input value is determined, keeping the historical input value unchanged and sending a prompt message.
In one possible design, prior to determining whether the current input value is a significant digit, the determination module is further to: determining whether the current input value is a decimal; determining the historical input value as a decimal; and determining whether the number of significant digits after the decimal point of the current input value is N and the number of decimal point digits of the current input value is one.
In one possible design, when the current input value and the historical input value in the input box conform to the detection element of the input detection process, the historical input value is updated to the current input value, and the determining module is further configured to: the detection elements are effective numbers, and the effective digits after decimal point are N bits; updating the historical input value to the current input value upon determining that the current input value is a significant digit and that the number of significant digits after the decimal point of the current input value is not greater than N and the number of decimal points of the current input value is one; or updating the historical input value to the current input value if the current input value is determined to be a decimal, the historical input value is a decimal, and the number of significant digits after the decimal point of the current input value is determined to be N.
In a third aspect, an embodiment of the present application further provides a computing device, including: a memory for storing program instructions; a processor for calling program instructions stored in said memory to execute the method as described in the various possible designs of the first aspect according to the obtained program.
In a fourth aspect, embodiments of the present application also provide a computer-readable non-transitory storage medium including computer-readable instructions which, when read and executed by a computer, cause the computer to perform the method as set forth in the various possible designs of the first aspect.
These and other implementations of the present application will be more readily understood from the following description of the embodiments.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flowchart of an information input method based on an input box according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another information input method based on an input box according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an input box according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an input box according to an embodiment of the present application;
fig. 5 is a schematic diagram of an information input device based on an input box according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
It is a common method for dealing with business at present to provide clients with account opening, account cancellation, inquiry, account checking, account transfer, credit, online securities, investment and financing through internet. In the method, a user inputs a corresponding numerical value, and calls a corresponding service through the numerical value, so that the numerical value calls the corresponding service to facilitate service handling. Referring to fig. 1, a schematic diagram of a possible implementation flow is shown.
Here, as shown in fig. 3, the input box is in a focused state when the user clicks the input box. And acquiring a preset input detection flow corresponding to the input box. Wherein the input detection process can detect the input content of the user.
Here, the input box may be an input box for inputting a password by bank software, an input box for a tabao search engine, or an input box in application software such as micro blog, micro letter, and daily excellent and fresh, and is not particularly limited. The input detection process is a detection process corresponding to the input box, for example: the input detection flow corresponding to the input box of the bank software for inputting the purchase amount can only allow the input of digital characters and decimal points, and the input detection flow corresponding to the input box of the Taobao input password can only allow the input of the digital characters.
And 102, detecting according to the input detection flow for each input of the user in the input box, and thus, the user is in the out-of-focus state after finishing inputting or the input box is in the out-of-focus state after failing inputting.
The user can obtain a current input value and a historical input value every time the user inputs the numerical value, and the current input value obtained every time can be detected according to the input detection process until the input box is in the out-of-focus state; wherein detecting according to the input detection flow comprises: when the current input value and the historical input value in the input box accord with the detection elements of the input detection process, updating the historical input value to the current input value; and when the current input value does not accord with the detection element of the input detection process, keeping the historical input value unchanged. For example, if the detection process of the input box only allows the input of numeric characters, the detection element of the input detection process is only allowing the input of numeric characters; the current input value is a numerical value input by the user at the current moment, and the historical input value is a numerical value input by the user at the previous moment at the current moment; when the current input value is a digital character, updating the current input value to a historical input value; when the current input value is not a digital character, the current input value is invalid, and the historical input value is unchanged; and thus, the user is in the out-of-focus state after finishing inputting, or the input box is in the out-of-focus state after input fails.
By adopting the method, the input frame is preset with the corresponding input detection process, so that the user can carry out detection according to the input detection process when inputting information in the input frame every time, and the numerical value input by the user is limited by setting the detection element in the input detection process, so that the numerical value conforming to the detection element can be obtained, the numerical value input by the user is prevented from generating errors, an error result is obtained, and the accuracy of information input is improved.
Here, as shown in fig. 4, when the user clicks the end or other position than the input frame, the input frame is out of focus, and the input detection flow ends.
The embodiment of the application provides a flow diagram of another information input method based on an input box. As shown in fig. 2; step 201, inputting a numerical value by a user; step 202, converting the character string input by the user into a numerical value so as to perform corresponding detection.
Here, the JAVASCRIPT method may be applied to convert the character string into a numeric value, and other methods may also be applied, which is not particularly limited.
Further, step 203 specifically includes the following steps:
step 2034, updating the historical input value to the current input value.
For several branches in the input detection process, such as: determining that the current input value is not a decimal; determining that the number of significant digits after decimal point of the current input value is greater than N; determining that a decimal point of the current input value is not one bit; the embodiment of the present application further provides a subsequent detection process step 204; the detection process in step 204 is used to determine whether the current input value is a scientific counting method or a plurality of decimal points, and specifically includes the following steps:
step 2041, determining whether the user clears the input box, if not, judging to execute step 2042; step 2041 is an optional step, or step 2042 can be entered directly;
step 2043, determining whether the current input value is a scientific counting method, for example, whether the current input value includes a numerical value represented by the scientific counting method, such as alphabetic character 'e', and if so, executing step 20431; if the current input value is not a scientific counting method, go to step 2044;
and 20431, keeping the historical input value unchanged, and sending a prompt message.
Step 2044, determining that the current input value contains a plurality of decimal points, and if yes, executing step 2045;
and step 2045, keeping the historical input value unchanged and sending a prompt message.
The precedence relationship between the step 203 and the step 204 may be changed, and this embodiment is only an implementation way, and may be actually set according to the priority of the detection element.
Step 205 is a processing procedure when the current input value is a significant number and the decimal place is greater than N, and specifically includes the following steps: the detection elements are effective numbers, and the number of the effective number digits after decimal point is N bits; and after the current input value is determined to be a valid number, determining that the number of the valid number is greater than N after the decimal point of the current input value is determined, keeping the historical input value unchanged and sending a prompt message. One specific implementation of step 205 is as follows:
here, the current value after formatting is obtained from the current input value, and if the decimal number of the current input value is set to two, the formatting mode may be to complement the decimal number of the current input value, for example, when the current input value is 1.1, the formatting is obtained as 1.10; or, the decimal place number of the current input value may be limited to a fixed place number, for example, when the current input value is 1.111, the format is 1.11, where the format mode is not limited specifically.
Here, the lost focus formatting input is to end the input by clicking an area outside the screen input box or an end key by the user, that is, the input box loses focus and ends the input at the same time. The following is presented taking one specific implementation as an example:
the input box is defined with related attributes in advance, and since the input box has different methods for defining attributes under each frame, the present solution is described by taking the vue frame as an example. Wherein the input box attributes include:
input type (text) is used for defining prompt text of an input box;
place holder' is used for defining the position of the input box;
ref ═ input', which is used to define the input presentation of the input box, where the input box may be the input box corresponding to the redrawing keyboard or the input box corresponding to the system keyboard;
value is used for defining a model value corresponding to the binding input box and updating data in the bidirectional data binding (bidirectional data comprises view and data binding, the view updating is triggered by data change, and corresponding data can be updated by user operation in the view), namely, the data of corresponding service objects are bound, and the corresponding service objects can be captured;
v-on: focus: the processing event is used for defining the focusing of the input box, and refers to the time when the user selects the input box;
v-on input: the method is used for defining a processing event when a user inputs characters, and the processing event refers to the time when the user inputs the characters;
v-on: blu: for defining a processing event when the input box loses focus, when the user input is completed and leaves the input box;
disabled: for defining whether to disable the input box;
step: the decimal point number defining unit is used for defining the decimal point number accepted by the input box, and the default is two-digit decimal point;
errMsg: an error prompt for defining a prompt for a user;
for example: case of fractional input allowed: if the target number to be input by the user is 1.23, adding step to the tag to specify a two-digit decimal point accepted by the current input box, where N is 2 (the effective number after the decimal point is two, that is, N is 2). The input type in the label is the input prompt text of the definition input box of 'please input purchase amount', the input box displays 'please input purchase amount', when a user clicks the input box, the user can automatically pull up the redrawing keyboard or the system keyboard, and simultaneously trigger an event of focus binding, and the event is used for clearing the error prompt (namely the value of errMsg) caused by inputting the format text which does not meet the requirement before the user. When a user inputs, an input binding processing event is triggered, a JAVASCRIPT function for processing the event receives the current input value of the user, and the historical input value is null during initialization.
step 2041, determining that the input box is not cleared according to the user input (for example, if the user has a delete operation or determines that the length of the current input value is smaller than that of the historical input value, for example, the length of the historical input value 1.11 is greater than that of the current input value 1.1, the input box can be cleared);
2042, judging that the 'numerical value 1' is a valid number;
And a second round: step 201, inputting a decimal point';
2033, the decimal point of the current input value is one digit, and no effective number exists after the decimal point;
step 2034, update the historical input values with the current input values.
And a third round:
step 2034, update the historical input values with the current input values.
Fourth wheel:
step 2034, update the historical input values with the current input values.
And a fifth round:
2041, judging whether a user has a deletion operation (or judging the length of a current input value and a historical input value), and if the text is not emptied, executing 2042;
2042, continuing to convert the 'character string 1.232' into a 'numerical value 1.232';
2042, judging whether the '1.232' is a valid number, if so, executing a step 2051;
if step 2052, 1.232 are not equal to 1.23, go to step 2054;
And a fifth round:
2041, then judging whether the user has a deletion operation (or judging the length of the current input value and the historical input value), and if the text is not emptied, executing 2042;
And step 206, completing the input, defocusing the input box, formatting the final input value to be 1.23, and finishing the input.
Here, the user clicks an area beyond the input box after inputting 1.2, and the input box is out of focus through a processing event bound by 'v-on: blu' when the input box loses focus, because N is set to be 2, the final input value is formatted to be 1.20, and the formatting mode can be to complement the number digits after the decimal point.
Example two:
fractional entry cases are not allowed: the target number to be input by the user is 12, and N is 0 (the valid number after the decimal point is zero, i.e., N is 0). The user clicks the input box focus.
A first round: step 201, inputting a numerical value '1';
step 2041, judging whether the user has a deletion operation (judging which is the current input value and the historical input value), and if the text is not emptied, executing step 2042;
And a second round: step 201, inputting a numerical value '2';
step 2041, judging whether the user has a deletion operation (judging which is the current input value and the historical input value), and if the text is not emptied, executing step 2042;
And step 206, completing the input, defocusing the input box, formatting the final input value to be 12, and finishing the input.
Example three:
case of erroneous input of other characters: the target number to be input by the user is 123N — 0.
A first round: step 201, inputting a number '1';
step 2041, judging whether the user has a deletion operation (judging which is the current input value and the historical input value), and if the text is not emptied, executing step 2042;
And a second round: step 201, inputting a number 'A';
step 2041, judging whether the user has a deletion operation (or judging the length of the current input value and the historical input value), and if the text is emptied, ending the input;
2042, if the text is not cleared, judging whether the 'numerical value 1A' is a valid number, otherwise, executing 2043;
2043, judging whether the user inputs a scientific counting method, if not, executing 2044;
step 2044, checking whether the user inputs a plurality of decimal points, and if not, executing step 2045;
step 2045, the current input value is a non-significant number, and the historical input value is unchanged.
And step 206, completing the input, defocusing the input box, setting the formatted final input value to be 1, and finishing the input.
Based on the same concept, an embodiment of the present invention provides an information input device based on an input box, and fig. 5 is a schematic diagram of the information input device based on the input box provided in the embodiment of the present application, as shown in fig. 5, including:
the processing module 502 is configured to obtain a preset input detection process of the input box when the input box is in a focused state; detecting according to the input detection process for each input of a user in the input box until the input box is in an out-of-focus state; wherein detecting according to the input detection flow comprises: when the current input value and the historical input value in the input box accord with the detection elements of the input detection process, updating the historical input value to the current input value; and when the current input value does not accord with the detection element of the input detection process, keeping the historical input value unchanged.
In one possible design, when the current input value does not conform to the detection element of the input detection process, the determination module 501 is configured to keep the historical input value unchanged: the detection elements are effective numbers; upon determining that the current input value is not a valid number, determining whether the current input value is a scientific notation; if yes, keeping the historical input value unchanged and sending prompt information; and when the current input value is determined not to be a valid number, determining that the current input value contains a plurality of decimal points, and keeping the historical input value unchanged.
In one possible design, when the current input value does not conform to the detection element of the input detection process, the determination module 501 is configured to keep the historical input value unchanged: the detection elements are effective numbers, and the number of the effective number digits after decimal point is N bits; and after the current input value is determined to be a valid number, determining that the number of the valid number is greater than N after the decimal point of the current input value is determined, keeping the historical input value unchanged and sending a prompt message.
In one possible design, before determining whether the current input value is a significant digit, the determining module 501 is further configured to: determining whether the current input value is a decimal; determining the historical input value as a decimal; and determining whether the number of significant digits after the decimal point of the current input value is N and the number of decimal point digits of the current input value is one.
In one possible design, when the current input value and the historical input value in the input box conform to the detection element of the input detection process, the historical input value is updated to the current input value, and the determining module 501 is further configured to: the detection elements are effective numbers, and the effective digits after decimal point are N bits; updating the historical input value to the current input value upon determining that the current input value is a significant digit and that the number of significant digits after the decimal point of the current input value is not greater than N and the number of decimal points of the current input value is one; or updating the historical input value to the current input value if the current input value is determined to be a decimal, the historical input value is a decimal, and the number of significant digits after the decimal point of the current input value is determined to be N.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, 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, apparatus (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 apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, 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 apparatus 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 apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.
Claims (10)
1. An information input method based on an input box, the method comprising:
when the input frame is in a focusing state, acquiring a preset input detection process of the input frame;
detecting according to the input detection process for each input of a user in the input box until the input box is in an out-of-focus state; wherein detecting according to the input detection flow comprises: when the current input value and the historical input value in the input box accord with the detection elements of the input detection process, updating the historical input value to the current input value; and when the current input value does not accord with the detection element of the input detection process, keeping the historical input value unchanged.
2. The method of claim 1, wherein maintaining the historical input value when the current input value does not conform to a detection element of the input detection process comprises:
the detection elements are effective numbers;
upon determining that the current input value is not a valid number, determining whether the current input value is a scientific notation; if yes, keeping the historical input value unchanged and sending prompt information;
and when the current input value is determined not to be a valid number, if the current input value is determined to contain a plurality of decimal points, keeping the historical input value unchanged.
3. The method of claim 1, wherein maintaining the historical input value when the current input value does not conform to a detection element of the input detection process comprises:
the detection elements are effective numbers, and the number of the effective number digits after decimal point is N bits;
and after the current input value is determined to be a valid number, if the number of the valid number after the decimal point of the current input value is determined to be greater than N, keeping the historical input value unchanged and sending a prompt message.
4. The method of claim 3,
determining the current input value as a significant figure, comprising:
determining that the current input value is a decimal;
determining the historical input value as a decimal;
determining the number of effective digits after the decimal point of the current input value is less than or equal to N;
and determining the decimal point digit of the current input value as one digit.
5. The method according to any one of claims 1 to 4,
when the current input value and the historical input value in the input box accord with the detection element of the input detection process, updating the historical input value to the current input value, wherein the updating comprises:
the detection elements are effective numbers, and the effective digits after decimal point are N bits;
updating the historical input value to the current input value upon determining that the current input value is a significant digit and that the post-decimal significant digit of the current input value is not greater than N; or
And updating the historical input value to the current input value when the current input value is determined to be a decimal, the historical input value is determined to be a decimal, and the number of significant digits after the decimal point of the current input value is determined to be N.
6. An information input apparatus based on an input box, the apparatus comprising:
the processing module is used for acquiring a preset input detection process of the input frame when the input frame is in a focusing state; detecting according to the input detection process for each input of a user in the input box until the input box is in an out-of-focus state; wherein detecting according to the input detection flow comprises: when the current input value and the historical input value in the input box accord with the detection elements of the input detection process, updating the historical input value to the current input value; and when the current input value does not accord with the detection element of the input detection process, keeping the historical input value unchanged.
7. The apparatus of claim 6, wherein when the current input value does not conform to a detection element of the input detection process, the determination module is configured to keep the historical input value unchanged:
the detection elements are effective numbers;
upon determining that the current input value is not a valid number, determining whether the current input value is a scientific notation; if yes, keeping the historical input value unchanged and sending prompt information;
and when the current input value is determined not to be a valid number, determining that the current input value contains a plurality of decimal points, and keeping the historical input value unchanged.
8. The apparatus of claim 6, wherein the determination module is configured to keep the historical input value unchanged when the current input value does not conform to a detection element of the input detection process, and wherein:
the detection elements are effective numbers, and the number of the effective number digits after decimal point is N bits;
and after the current input value is determined to be a valid number, determining that the number of the valid number is greater than N after the decimal point of the current input value is determined, keeping the historical input value unchanged and sending a prompt message.
9. A computing device, comprising:
a memory for storing program instructions;
a processor for calling program instructions stored in said memory to execute the method of any one of claims 1 to 5 in accordance with the obtained program.
10. A computer-readable non-transitory storage medium including computer-readable instructions which, when read and executed by a computer, cause the computer to perform the method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911047277.9A CN111221603A (en) | 2019-10-30 | 2019-10-30 | Information input method and device based on input box |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911047277.9A CN111221603A (en) | 2019-10-30 | 2019-10-30 | Information input method and device based on input box |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111221603A true CN111221603A (en) | 2020-06-02 |
Family
ID=70810072
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911047277.9A Pending CN111221603A (en) | 2019-10-30 | 2019-10-30 | Information input method and device based on input box |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111221603A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113448464A (en) * | 2021-06-28 | 2021-09-28 | 武汉联影医疗科技有限公司 | Information processing method, information processing device, computer equipment and storage medium |
CN117348741A (en) * | 2023-12-06 | 2024-01-05 | 深圳市金政软件技术有限公司 | Method for displaying amount of amount input box and related equipment |
-
2019
- 2019-10-30 CN CN201911047277.9A patent/CN111221603A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113448464A (en) * | 2021-06-28 | 2021-09-28 | 武汉联影医疗科技有限公司 | Information processing method, information processing device, computer equipment and storage medium |
CN117348741A (en) * | 2023-12-06 | 2024-01-05 | 深圳市金政软件技术有限公司 | Method for displaying amount of amount input box and related equipment |
CN117348741B (en) * | 2023-12-06 | 2024-02-06 | 深圳市金政软件技术有限公司 | Method for displaying amount of amount input box and related equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102151862B1 (en) | Service processing method and device | |
US10152588B2 (en) | Password check by decomposing password | |
CN107785021B (en) | Voice input method, device, computer equipment and medium | |
US11004081B2 (en) | Dynamic authentication through user information and intent | |
US11645458B2 (en) | Systems and methods for automatically scrubbing sensitive data | |
WO2018040899A1 (en) | Error correction method and device for search term | |
CN107909471A (en) | A kind of method, apparatus of business processing, self-help terminal equipment and storage medium | |
AU2019419888A1 (en) | System and method for information extraction with character level features | |
EP3217262B1 (en) | Method for invoking local keyboard on html page in user terminal device and apparatus thereof | |
US11610582B2 (en) | Systems and methods for formatting informal utterances | |
CN111221603A (en) | Information input method and device based on input box | |
US11875166B2 (en) | User interface modality switching for transaction management | |
WO2016076901A1 (en) | Web based method for loan application | |
US11899770B2 (en) | Verification method and apparatus, and computer readable storage medium | |
JP7054555B2 (en) | Query processing service provision system for personal information protection platform | |
US11699029B2 (en) | Storable and platform agnostic field formatting | |
US10546304B2 (en) | Risk assessment based on listing information | |
JP2018041155A (en) | Voice order reception system | |
CN107679889A (en) | The recognition methods of potential customers a kind of and terminal device | |
CN107315831A (en) | A kind of method and device of the unknown incidence relation of mining rule correlation model | |
CN111325355A (en) | Method and device for determining actual control persons of enterprises, computer equipment and medium | |
US20140032373A1 (en) | Heuristic data entry system and method | |
CN113674083A (en) | Internet financial platform credit risk monitoring method, device and computer system | |
US11037554B1 (en) | Network of domain knowledge based conversational agents | |
JP5356584B2 (en) | Authentication system, authentication method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |