[go: up one dir, main page]

WO2019095578A1 - Input content verification method, device and apparatus, and computer readable storage medium - Google Patents

Input content verification method, device and apparatus, and computer readable storage medium Download PDF

Info

Publication number
WO2019095578A1
WO2019095578A1 PCT/CN2018/077140 CN2018077140W WO2019095578A1 WO 2019095578 A1 WO2019095578 A1 WO 2019095578A1 CN 2018077140 W CN2018077140 W CN 2018077140W WO 2019095578 A1 WO2019095578 A1 WO 2019095578A1
Authority
WO
WIPO (PCT)
Prior art keywords
input
cursor
preset rule
content
box
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.)
Ceased
Application number
PCT/CN2018/077140
Other languages
French (fr)
Chinese (zh)
Inventor
龙觉刚
孙成
叶俊锋
赖云辉
罗先贤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Publication of WO2019095578A1 publication Critical patent/WO2019095578A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs

Definitions

  • the present application relates to the field of information processing technologies, and in particular, to a method, an apparatus, a device, and a computer readable storage medium for verifying input content.
  • users can handle various matters through the network, such as filling out information online, submitting applications, etc.
  • the information filled in by users has specific format requirements or rules.
  • users input information, they need to verify. Whether the information entered by the user meets the requirements. After the user enters the information in the input box, the user needs to click the submit/confirm button to perform unified verification on the information of the input box. If the input information is illegal, the information in the input box is directly cleared, and the user has no way to input. The information is guaranteed to be legal. After the information is cleared, the user has to re-enter and resubmit for verification, which brings trouble to the user operation and has a bad user experience.
  • the embodiment of the present application provides a method, device, device and computer readable storage medium for verifying input content, which retains input content when the input content is illegal, and the cursor can be automatically reset.
  • an embodiment of the present application provides a method for verifying input content, the method comprising: receiving input content input by a user in an input box of an information input interface; detecting whether a cursor is removed from the input box; The cursor is removed from the input box to verify whether the input content in the input box meets a preset rule; if the preset rule is not met, the input content in the input box is retained, and the pre-display is displayed. Set a rule and control the cursor to move into the input box.
  • an embodiment of the present application further provides an apparatus for verifying input content, the apparatus comprising means for performing the method of verifying input content as described above.
  • an embodiment of the present application further provides an apparatus for verifying input content, where the apparatus includes a memory, and a processor connected to the memory, and the memory is configured to store a method for implementing verification input content.
  • Program data the processor, configured to execute program data stored in the memory to perform the method as described in the first aspect above.
  • an embodiment of the present application provides a computer readable storage medium, where the one or more program data is stored, and the one or more program data may be processed by one or more processes.
  • the apparatus is executed to implement the method described in the first aspect above.
  • Embodiments of the present application provide a method, apparatus, device, and computer readable storage medium for verifying input content, the method comprising: receiving input content input by a user in an input box of an information input interface; detecting whether a cursor is input from the input Moving out of the box; if the cursor is removed from the input box, verifying whether the input content in the input box meets a preset rule; if the preset rule is not met, retaining the content in the input box Enter the content, display the preset rule, and reset the cursor.
  • the preset rule when the input content is illegal (that is, the preset rule is not met), the preset rule is displayed, and the original input content is retained, and the user does not need to re-enter, the user can modify, and the cursor directly returns to the original.
  • the location does not require the user to manually move the cursor, which brings convenience to the user and improves the user experience.
  • FIG. 1 is a schematic flowchart of a method for verifying input content according to an embodiment of the present application
  • FIG. 2 is a schematic diagram of a sub-flow of a method for verifying input content according to an embodiment of the present application
  • FIG. 3 is another schematic flowchart of a method for verifying input content according to an embodiment of the present application.
  • FIG. 4 is another schematic flowchart of a method for verifying input content according to an embodiment of the present application.
  • FIG. 5 is another schematic flowchart of a method for verifying input content according to an embodiment of the present application.
  • FIG. 6 is another schematic flowchart of a method for verifying input content according to an embodiment of the present application.
  • FIG. 7 is a schematic block diagram showing a unit structure of an apparatus for verifying input content according to an embodiment of the present application.
  • FIG. 8 is a schematic block diagram showing a subunit structure of an apparatus for verifying input content according to an embodiment of the present application.
  • FIG. 9 is a schematic block diagram showing another subunit structure of an apparatus for verifying input content according to an embodiment of the present disclosure.
  • FIG. 10 is a block diagram showing another unit structure of an apparatus for verifying input content according to an embodiment of the present application.
  • FIG. 11 is a schematic block diagram showing another unit structure of an apparatus for verifying input content according to an embodiment of the present application.
  • FIG. 12 is a schematic block diagram showing another unit structure of an apparatus for verifying input content according to an embodiment of the present application.
  • FIG. 13 is a schematic block diagram of an apparatus for verifying input content according to an embodiment of the present application.
  • FIG. 1 is a schematic flowchart diagram of a method for verifying input content according to an embodiment of the present application.
  • the method can be run on terminals such as smart phones (such as Android phones, IOS phones, etc.), tablets, laptops, and smart devices.
  • terminals such as smart phones (such as Android phones, IOS phones, etc.), tablets, laptops, and smart devices.
  • the steps of the method include S101 to S104.
  • S101 Receive input content input by a user in an input box of an information input interface.
  • S102 Detect whether the cursor is removed from the input box.
  • the user In the case of a computer, the user needs to submit verification information on an information input interface. After the user inputs the content in the input box, the user needs to confirm the input content for verification, generally by clicking the submit (or confirm) button or pressing Enter. The key is used to trigger the verification instruction. In the embodiment of the present application, whether or not the instruction to verify the input content is triggered is determined by determining whether the cursor in the input box is removed.
  • the preset rule includes the following: (1) The text type of the input content is any between Chinese, English and non-negative numbers. One or any combination; (2) The position of the dot in the input appears as a non-first or non-end.
  • verifying whether the input content in the input box meets a preset rule includes the following sub-steps S1031-S1034: S1031, determining whether the first and/or the end of the input content is S1032, if yes, determining that the input content does not meet the preset rule; S1033, if not, determining whether the text type of the input content is any between Chinese, English, and non-negative numbers One or any combination; S1034, if it is not any one or any combination between the three, it is determined that the input content does not meet the preset rule, and if it is any one or any combination between the three, the determination The input content meets the preset rule.
  • the embodiment may further include other preset rules, and the specific preset rules are adjusted according to actual conditions.
  • the content is retained, and the preset rule is displayed on the right or below the input box to prompt the user to the preset rule, and the cursor is moved back to the input box, and the user can
  • the original input content is modified until the content passes the verification of the rule, and the user does not need to control the cursor by himself. Therefore, the user can quickly find the unreasonable content of the content and modify it, which is convenient and fast.
  • the process of resetting the cursor includes sub-steps S1041-S1044.
  • S1041 Acquire a next input starting point coordinate and a current coordinate where the cursor is located adjacent to the input content in the input box.
  • S1042 N-divide the distance between the input starting point coordinate and the current coordinate.
  • S1043 Acquire coordinates of n-1 bisection points. S1044, moving the cursor sequentially through n-1 coordinate points corresponding to the coordinates, and reaching a coordinate point corresponding to the input starting point coordinate.
  • n may take 20 or more.
  • the method for verifying the input content in the embodiment of the present application triggers the verification time by removing the cursor from the input box, and when the verification input content is illegal, directly prompts the preset rule to restore the cursor to the input box, and retains The original input content enables the user to find the unreasonable content of the content and modify it directly, and does not require the user to manually operate the cursor reset conveniently and quickly.
  • FIG. 4 is another schematic flowchart of a method for verifying input content according to an embodiment of the present application. The steps of the method include S201 to S205.
  • S201 receiving input content input by the user in an input box of an information input interface
  • S202 detecting whether the cursor is removed from the input box
  • S203 if the cursor is removed from the input box, verifying the input box Whether the input content meets the preset rule
  • S204 if the preset rule is not met, retain the input content in the input box, display the preset rule, and control the cursor to move into the input box .
  • S205 If the preset rule is met, move the cursor to a submit button.
  • the information input interface is only one page, and does not include a sub-page, and the interface includes only one input box. If the content input by the user conforms to the preset rule, the content is legal, and the cursor is moved to the submit button, and the user can submit the input content as the final content to be submitted.
  • the method for verifying the input content in the embodiment of the present application when verifying that the input content is illegal, directly prompting the preset rule, moving the cursor back into the input box, and retaining the original input content, enabling the user to discover faster
  • the content is unreasonable and directly modified, and the user does not need to manually operate the cursor reset. It is convenient and fast; when the input content is legal, the cursor moves directly to the submit button, which saves the user's operation and indirectly reflects the input content. It is legal.
  • FIG. 5 is another schematic flowchart of a method for verifying input content according to an embodiment of the present application. The steps of the method include S301 to S307.
  • S301 Receive input content input by a user in an input box of an information input interface; S302, detect whether a cursor is removed from the input box; S303, if the cursor is removed from the input box, verify the input box Whether the input content meets the preset rule; S304, if the preset rule is not met, retain the input content in the input box, display the preset rule, and control the cursor to move into the input box .
  • S301 to S304 in this embodiment are completely the same as steps S101 to S104 in the first embodiment, and are not described in detail in this embodiment.
  • the information input interface is only one page, and does not include a sub-page, but the information input interface includes a plurality of input boxes.
  • S305 If the preset rule is met, determine whether the input box is the last input box in the information input interface. S306. If it is not the last input box, move the cursor to the next input box. S307. If it is the last input box, move the cursor to the submit button.
  • the preset rules for the input content in each input box are not completely the same, because the information of each item is different, and therefore, the preset rules may be changed according to specific conditions.
  • the input box is the last input box, as long as it is not the last input box, the content is not completely filled, and the cursor directly jumps to the next input box, which is convenient for the user to directly Enter the content in the next input box until the user fills in the information legally and completely.
  • the cursor directly jumps to the next input box, and the user does not need to manually manipulate the cursor, so that the user can directly input the content in the next input box.
  • FIG. 6 is another schematic flowchart of a method for verifying input content according to an embodiment of the present application. The steps of the method include S401 to S409.
  • S401 receiving input content input by the user in an input box of an information input interface; S402, detecting whether the cursor is removed from the input box; S403, if the cursor is removed from the input box, verifying the input box Whether the input content meets the preset rule; S404, if the preset rule is not met, retain the input content in the input box, display the preset rule, and control the cursor to move into the input box .
  • S401 to S404 in this embodiment are completely the same as steps S101 to S104 in the first embodiment, and are not described in this embodiment.
  • the information input interface includes a plurality of information input sub-pages, and each information input sub-page includes a plurality of input boxes.
  • the preset rules for the input content in each input box are not completely the same, because the information of each item is different, and therefore, the preset rules may be changed according to specific conditions.
  • the input box is the last input box of the current information input sub-page, as long as it is not the last input box, indicating that the content of the current information input sub-page is not completed.
  • the cursor jumps directly to the next input box until the user fills in the legal and last input box.
  • the cursor After each page is correctly filled in, the cursor jumps directly to the next page button until the user fills in the information legally and complete to the last page.
  • the cursor directly moves to the next item or the next page button, thereby eliminating the trouble of the user's operation cursor, and indirectly reflecting the user's previous one. Item input or previous page content is legal.
  • FIG. 7 is a schematic block diagram of an apparatus 100 for verifying input content according to an embodiment of the present application.
  • the apparatus 100 for verifying the input content includes a receiving unit 101, a detecting unit 102, a checking unit 103, a retaining unit 104, a display unit 105, and a first moving unit 106.
  • the receiving unit 101 is configured to receive input content input by a user in an input box of an information input interface.
  • the detecting unit 102 is configured to detect whether the cursor is removed from the input box.
  • the verification unit 103 is configured to check whether the input content in the input box meets a preset rule if the cursor is removed from the input box.
  • the preset rule includes the following: the text type of the input content is allowed to include Chinese, English, and non-negative numbers; the position where the dot in the input content is allowed to appear is non-first or last.
  • the check unit 103 includes a first judgment sub-unit 1031 and a second judgment sub-unit 1032.
  • the first determining sub-unit 1031 is configured to determine whether the first bit and/or the end of the input content is a comma. If the first position and/or the end of the input content is a comma, it is determined that the input content does not meet the preset. rule.
  • the second determining sub-unit 1032 is configured to determine whether the text type of the input content is any one or any combination of Chinese, English, and non-negative numbers if the first and/or the end of the input content is not a comma. If it is not any one or any combination between the three, it is determined that the input content does not meet the preset rule; if it is any one or any combination between the three, it is determined that the input content meets the Preset rules.
  • the retaining unit 104 is configured to retain the input content in the input box if the input content does not conform to the preset rule.
  • the display unit 105 is configured to display the preset rule if the input content does not meet the preset rule.
  • the first moving unit 106 is configured to control the cursor to move into the input box if the input content does not conform to the preset rule.
  • the first mobile unit 106 includes a first acquisition subunit 1061, an equal molecular unit 1062, a second acquisition subunit 1063, and a mobile subunit 1064.
  • the first obtaining sub-unit 1061 is configured to acquire a next input starting point coordinate and a current coordinate where the cursor is located adjacent to the input content in the input box when the input content does not meet the preset rule.
  • the equal molecular unit 1062 is configured to divide n the distance between the input starting point coordinate and the current coordinate by n.
  • a second obtaining sub-unit 1063 configured to acquire coordinates of n-1 halving points;
  • a moving sub-unit 1064 configured to move the cursor sequentially through n-1 coordinate points corresponding to the coordinates, to reach the input starting point The coordinate point corresponding to the coordinates.
  • FIG. 10 is another schematic block diagram of an apparatus 100 for verifying input content according to an embodiment of the present application.
  • the apparatus 100 for verifying the input content includes a receiving unit 101, a detecting unit 102, a checking unit 103, a retaining unit 104, a display unit 105, a first moving unit 106, and a second moving unit 107.
  • the information input interface is only one page, and does not include a sub-page, and the interface includes only one input box.
  • the second moving unit 107 is configured to move the cursor to the submit button if the input content meets the preset rule.
  • FIG. 11 is another schematic block diagram of an apparatus 100 for verifying input content according to an embodiment of the present application.
  • the apparatus 100 for verifying the input content includes a receiving unit 101, a detecting unit 102, a checking unit 103, a retaining unit 104, a display unit 105, a first moving unit 106, a first judging unit 108, a third moving unit 109, and a fourth Mobile unit 110.
  • the information input interface is only one page, and does not include a sub-page, but the information input interface includes a plurality of input boxes.
  • the first determining unit 108 is configured to determine whether the input box is the last input box in the information input interface if the input content meets a preset rule.
  • the third moving unit 109 is configured to move the cursor to the next input box if the input box is not the last input box.
  • the fourth moving unit 110 is configured to move the cursor to the submit button if the input box is the last input box.
  • FIG. 12 is another schematic block diagram of an apparatus 100 for verifying input content according to an embodiment of the present application.
  • the apparatus 100 for verifying the input content includes a receiving unit 101, a detecting unit 102, a checking unit 103, a retaining unit 104, a display unit 105, a first moving unit 106, a second determining unit 111, a fifth moving unit 112, and a third The judging unit 113, the sixth moving unit 114, and the seventh moving unit 115.
  • the information input interface includes a plurality of information input sub-pages, and each information input sub-page includes a plurality of input boxes.
  • the second determining unit 111 is configured to determine whether the input box is the last input box in the information input interface if the input content meets a preset rule.
  • the fifth moving unit 112 is configured to move the cursor to the next input box if the input box is not the last input box.
  • the third determining unit 113 is configured to determine whether the current information input subpage is the last information input subpage if the input box is the last input box.
  • the sixth moving unit 114 is configured to move the cursor to the next page button if it is not the last information input subpage; the seventh moving unit 115 is configured to move the cursor to the submit button if it is the last information input subpage .
  • the apparatus 100 for verifying the input content described above can be implemented in the form of a computer program that can be run on a computer device as shown in FIG.
  • FIG. 13 is a schematic block diagram of an apparatus for verifying input content according to an embodiment of the present application.
  • the device may be a terminal or a server, wherein the terminal may be a communication-enabled electronic device such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device.
  • the server can be a standalone server or a server cluster consisting of multiple servers.
  • the device is a computer device 200 comprising a processor 202 connected by a system bus 201, a non-volatile storage medium 203, an internal memory 204, and a network interface 205.
  • the non-volatile storage medium 203 of the computer device 200 can store an operating system 2031 and a computer program 2032 that, when executed, can cause the processor 202 to perform a method of verifying input content.
  • the processor 202 of the computer device 200 is used to provide computing and control capabilities to support the operation of the entire computer device 200.
  • the internal memory 204 provides an environment for the operation of the computer program 2032 in the non-volatile storage medium 203, which when executed by the processor 202, may cause the processor 202 to perform a method of verifying the input content.
  • the network interface 205 of the computer device 200 is used to perform network communications, such as sending assigned tasks and the like. It will be understood by those skilled in the art that the structure shown in FIG. 13 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the computer device to which the solution of the present application is applied.
  • the specific computer device may It includes more or fewer components than those shown in the figures, or some components are combined, or have different component arrangements.
  • An implementation of all of the embodiments of the method of verifying input content described above may be performed when processor 202 runs computer program 2032 in non-volatile storage medium 203.
  • the embodiment of the device for verifying the input content shown in FIG. 13 does not constitute a limitation on the specific configuration of the device for verifying the input content.
  • the device for verifying the input content may Includes more or fewer components than shown, or combines some components, or different component arrangements.
  • the device for verifying the input content may include only the memory and the processor. In such an embodiment, the structure and function of the memory and the processor are consistent with the embodiment shown in FIG. Narration.
  • the application further provides a computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors, when the one or More than one program is executed by one or more processors to implement all of the above described methods of verifying input content.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

Embodiments of the present application provide an input content verification method, device and apparatus, and a computer readable storage medium. The method comprises: receiving input content input by a user in an input box of an information input interface; detecting whether a cursor is moved out of the input box or not; if the cursor is moved out of the input box, verifying whether the input content in the input box conforms to a preset rule or not; and if the input content does not conform to the preset rule, keeping the input content in the input box, displaying the preset rule, and controlling the cursor to move into the input box. If the input content is illegal, the preset rule is displayed, and the original input content is kept, so that the cursor can directly return to an original position when the user performs modification without the need of reentering; the user does not need to move the cursor manually; and the user experience is improved.

Description

校验输入内容的方法、装置、设备及计算机可读存储介质Method, device, device and computer readable storage medium for verifying input content

本申请要求于2017年11月17日提交中国专利局、申请号为201711143841.8、申请名称为“校验输入内容的方法、装置、设备及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to the Chinese Patent Application entitled "Method, Apparatus, Apparatus, and Computer Readable Storage Medium for Verifying Input Content", filed on November 17, 2017, with the Chinese Patent Office, Application No. 201711143841.8, The entire contents are incorporated herein by reference.

技术领域Technical field

本申请涉及信息处理技术领域,尤其涉及一种校验输入内容的方法、装置、设备及计算机可读存储介质。The present application relates to the field of information processing technologies, and in particular, to a method, an apparatus, a device, and a computer readable storage medium for verifying input content.

背景技术Background technique

在互联网时代,用户可以通过网络处理各种事项,例如网上填写信息、提交申请等,在一些情况下,对用户填写的信息具有特定的格式要求或规则要求,当用户输入信息后,需要校验用户输入的信息是否符合要求。用户一般在输入框中输入信息后,需要再点击提交/确认按钮之后才能对输入框的信息进行统一校验处理,如果输入的信息不合法,直接清空输入框内的信息,用户没有办法在输入信息后保证信息的合法性,信息被清除后用户不得不重新输入并且重新提交进行校验,给用户操作带来麻烦,用户体验感差。In the Internet era, users can handle various matters through the network, such as filling out information online, submitting applications, etc. In some cases, the information filled in by users has specific format requirements or rules. When users input information, they need to verify. Whether the information entered by the user meets the requirements. After the user enters the information in the input box, the user needs to click the submit/confirm button to perform unified verification on the information of the input box. If the input information is illegal, the information in the input box is directly cleared, and the user has no way to input. The information is guaranteed to be legal. After the information is cleared, the user has to re-enter and resubmit for verification, which brings trouble to the user operation and has a bad user experience.

发明内容Summary of the invention

本申请实施例提供了一种校验输入内容的方法、装置、设备及计算机可读存储介质,当输入内容不合法时保留输入内容,且光标可以自动复位。The embodiment of the present application provides a method, device, device and computer readable storage medium for verifying input content, which retains input content when the input content is illegal, and the cursor can be automatically reset.

第一方面,本申请实施例提供了一种校验输入内容的方法,该方法包括:接收用户在一信息输入界面的输入框输入的输入内容;检测光标是否从所述输入框中移出;若光标从所述输入框中移出,校验所述输入框中的所述输入内容是否符合预设规则;若不符合所述预设规则,保留所述输入框中的输入内容,显示所述预设规则,并控制所述光标移动至所述输入框内。In a first aspect, an embodiment of the present application provides a method for verifying input content, the method comprising: receiving input content input by a user in an input box of an information input interface; detecting whether a cursor is removed from the input box; The cursor is removed from the input box to verify whether the input content in the input box meets a preset rule; if the preset rule is not met, the input content in the input box is retained, and the pre-display is displayed. Set a rule and control the cursor to move into the input box.

第二方面,本申请实施例还提供了一种校验输入内容的装置,该装置包括 用于执行上述的校验输入内容的方法的单元。In a second aspect, an embodiment of the present application further provides an apparatus for verifying input content, the apparatus comprising means for performing the method of verifying input content as described above.

第三方面,本申请实施例还提供了一种校验输入内容的设备,所述设备包括存储器,以及与所述存储器相连的处理器;所述存储器,用于存储实现校验输入内容的方法的程序数据;所述处理器,用于运行所述存储器中存储的程序数据,以执行如上述第一方面所述的方法。In a third aspect, an embodiment of the present application further provides an apparatus for verifying input content, where the apparatus includes a memory, and a processor connected to the memory, and the memory is configured to store a method for implementing verification input content. Program data; the processor, configured to execute program data stored in the memory to perform the method as described in the first aspect above.

第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有一个或者一个以上程序数据,所述一个或者一个以上程序数据可被一个或者一个以上的处理器执行,以实现上述第一方面所述的方法。In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, where the one or more program data is stored, and the one or more program data may be processed by one or more processes. The apparatus is executed to implement the method described in the first aspect above.

本申请实施例提供了校验输入内容的方法、装置、设备及计算机可读存储介质,所述方法包括:接收用户在一信息输入界面的输入框输入的输入内容;检测光标是否从所述输入框中移出;若光标从所述输入框中移出,校验所述输入框中的所述输入内容是否符合预设规则;若不符合所述预设规则,在所述输入框中保留所述输入内容,显示所述预设规则,并将所述光标复位。在本申请提供的实施例中,当输入内容不合法(即不符合预设规则)时,显示预设规则,保留原来的输入内容,不需要用户重新输入,用户修改即可,光标直接返回原来的位置,不需要用户手动移动光标,给用户带来便利,提高用户的体验感。Embodiments of the present application provide a method, apparatus, device, and computer readable storage medium for verifying input content, the method comprising: receiving input content input by a user in an input box of an information input interface; detecting whether a cursor is input from the input Moving out of the box; if the cursor is removed from the input box, verifying whether the input content in the input box meets a preset rule; if the preset rule is not met, retaining the content in the input box Enter the content, display the preset rule, and reset the cursor. In the embodiment provided by the present application, when the input content is illegal (that is, the preset rule is not met), the preset rule is displayed, and the original input content is retained, and the user does not need to re-enter, the user can modify, and the cursor directly returns to the original. The location does not require the user to manually move the cursor, which brings convenience to the user and improves the user experience.

附图说明DRAWINGS

图1是本申请实施例提供的一种校验输入内容的方法的流程示意图;1 is a schematic flowchart of a method for verifying input content according to an embodiment of the present application;

图2是本申请实施例提供的一种校验输入内容的方法的子流程示意图;2 is a schematic diagram of a sub-flow of a method for verifying input content according to an embodiment of the present application;

图3是本申请实施例提供的一种校验输入内容的方法的另一子流程示意图;FIG. 3 is another schematic flowchart of a method for verifying input content according to an embodiment of the present application; FIG.

图4是本申请实施例提供的一种校验输入内容的方法的另一流程示意图;4 is another schematic flowchart of a method for verifying input content according to an embodiment of the present application;

图5是本申请实施例提供的一种校验输入内容的方法的另一流程示意图;FIG. 5 is another schematic flowchart of a method for verifying input content according to an embodiment of the present application; FIG.

图6是本申请实施例提供的一种校验输入内容的方法的另一流程示意图;6 is another schematic flowchart of a method for verifying input content according to an embodiment of the present application;

图7是本申请实施例提供的一种校验输入内容的装置的单元结构示意框图;FIG. 7 is a schematic block diagram showing a unit structure of an apparatus for verifying input content according to an embodiment of the present application; FIG.

图8是本申请实施例提供的一种校验输入内容的装置的子单元结构示意框图;FIG. 8 is a schematic block diagram showing a subunit structure of an apparatus for verifying input content according to an embodiment of the present application; FIG.

图9是本申请实施例提供的一种校验输入内容的装置的另一子单元结构示意框图;FIG. 9 is a schematic block diagram showing another subunit structure of an apparatus for verifying input content according to an embodiment of the present disclosure;

图10是本申请实施例提供的一种校验输入内容的装置的另一单元结构示 意框图;FIG. 10 is a block diagram showing another unit structure of an apparatus for verifying input content according to an embodiment of the present application; FIG.

图11是本申请实施例提供的一种校验输入内容的装置的另一单元结构示意框图;11 is a schematic block diagram showing another unit structure of an apparatus for verifying input content according to an embodiment of the present application;

图12是本申请实施例提供的一种校验输入内容的装置的另一单元结构示意框图;FIG. 12 is a schematic block diagram showing another unit structure of an apparatus for verifying input content according to an embodiment of the present application; FIG.

图13是本申请实施例提供的一种校验输入内容的设备的示意性框图。FIG. 13 is a schematic block diagram of an apparatus for verifying input content according to an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the drawings in the embodiments of the present application. It is obvious that the described embodiments are a part of the embodiments of the present application, and not all of the embodiments.

图1为本申请实施例提供的一种校验输入内容的方法的流程示意图。该方法可以运行在智能手机(如Android手机、IOS手机等)、平板电脑、笔记本电脑以及智能设备等终端中。如图1所示,该方法的步骤包括S101~S104。FIG. 1 is a schematic flowchart diagram of a method for verifying input content according to an embodiment of the present application. The method can be run on terminals such as smart phones (such as Android phones, IOS phones, etc.), tablets, laptops, and smart devices. As shown in FIG. 1, the steps of the method include S101 to S104.

S101,接收用户在一信息输入界面的输入框输入的输入内容。S101. Receive input content input by a user in an input box of an information input interface.

S102,检测光标是否从所述输入框中移出。以电脑为例,用户需要在一信息输入界面提交校验信息,当用户在输入框中输入完内容后,需要确认输入内容从而进行校验,一般是通过点击提交(或确认)按键或按Enter键来触发校验指令,而在本申请实施例中,通过判断输入框中的光标是否被移出来决定是否触发校验输入内容的指令。S102. Detect whether the cursor is removed from the input box. In the case of a computer, the user needs to submit verification information on an information input interface. After the user inputs the content in the input box, the user needs to confirm the input content for verification, generally by clicking the submit (or confirm) button or pressing Enter. The key is used to trigger the verification instruction. In the embodiment of the present application, whether or not the instruction to verify the input content is triggered is determined by determining whether the cursor in the input box is removed.

S103,若光标从所述输入框中移出,校验所述输入框中的所述输入内容是否符合预设规则。当检测到光标从输入框中移出之后,开始校验输入内容是否符合预设规则,预设规则包括以下:(1)输入内容的文本类型为中文、英文和非负数字三者之间的任意一个或任意组合;(2)输入内容中的顿号出现的位置为非首位或非末尾。S103. If the cursor is removed from the input box, verify whether the input content in the input box meets a preset rule. After detecting that the cursor is removed from the input box, it is checked whether the input content meets the preset rule. The preset rule includes the following: (1) The text type of the input content is any between Chinese, English and non-negative numbers. One or any combination; (2) The position of the dot in the input appears as a non-first or non-end.

本实施例中,如图2所示,校验所述输入框中的所述输入内容是否符合预设规则包括以下子步骤S1031-S1034:S1031,判断所述输入内容的首位和/或末尾是否为顿号;S1032,若是,则判定所述输入内容不符合所述预设规则;S1033,若否,判断所述输入内容的文本类型是否为中文、英文和非负数字三者之间的任意一个或任意组合;S1034,若不是三者之间的任意一个或任意组合,则判定所述输入内容不符合所述预设规则,若为三者之间的任意一个或任意组合,则 判定所述输入内容符合所述预设规则。In this embodiment, as shown in FIG. 2, verifying whether the input content in the input box meets a preset rule includes the following sub-steps S1031-S1034: S1031, determining whether the first and/or the end of the input content is S1032, if yes, determining that the input content does not meet the preset rule; S1033, if not, determining whether the text type of the input content is any between Chinese, English, and non-negative numbers One or any combination; S1034, if it is not any one or any combination between the three, it is determined that the input content does not meet the preset rule, and if it is any one or any combination between the three, the determination The input content meets the preset rule.

除包括上述预设规则外,本实施例还可以包括其他预设规则,具体的预设规则根据实际情况调整。In addition to the foregoing preset rules, the embodiment may further include other preset rules, and the specific preset rules are adjusted according to actual conditions.

S104,若不符合所述预设规则,保留所述输入框中的输入内容,显示所述预设规则,并控制所述光标移动至所述输入框内。S104. If the preset rule is not met, retain the input content in the input box, display the preset rule, and control the cursor to move into the input box.

如果输入内容不符合预设规则,则保留所述内容,在该输入框的右方或下方显示该预设规则,以向用户提示所述预设规则,将光标移回输入框中,用户可以对原输入内容进行修改直至内容通过规则的校验,不需要用户自己去控制光标,因此,能够使用户更快的发现内容的不合理处并对其修改,方便又快捷。If the input content does not meet the preset rule, the content is retained, and the preset rule is displayed on the right or below the input box to prompt the user to the preset rule, and the cursor is moved back to the input box, and the user can The original input content is modified until the content passes the verification of the rule, and the user does not need to control the cursor by himself. Therefore, the user can quickly find the unreasonable content of the content and modify it, which is convenient and fast.

本实施例中,如图3所示,将所述光标复位的过程包括子步骤S1041-S1044。In this embodiment, as shown in FIG. 3, the process of resetting the cursor includes sub-steps S1041-S1044.

S1041,获取所述输入框中与所述输入内容相邻的下一输入起点坐标和光标所在的当前坐标。S1042,将所述输入起点坐标与所述当前坐标之间的距离进行n等分。S1043,获取n-1个等分点的坐标。S1044,移动所述光标依次经过n-1个所述坐标对应的坐标点,到达所述输入起点坐标对应的坐标点。S1041: Acquire a next input starting point coordinate and a current coordinate where the cursor is located adjacent to the input content in the input box. S1042: N-divide the distance between the input starting point coordinate and the current coordinate. S1043: Acquire coordinates of n-1 bisection points. S1044, moving the cursor sequentially through n-1 coordinate points corresponding to the coordinates, and reaching a coordinate point corresponding to the input starting point coordinate.

在输入起点坐标与所述当前坐标的直线之间找出n-1个等分点的坐标,n足够大,则光标按输入起点坐标与所述当前坐标两点之间最短的距离移动恢复至光标被移出输入框前的位置。等分点之间的距离应是光标能移动的最小距离的整数倍,在保证等分点之间的距离为光标能移动的最小距离的整数倍的同时,n越大越好,n越大,则光标沿直线移动至输入起点坐标的概率越大。在本实施例中,n可取20或以上。Find the coordinates of n-1 bisection points between the input start point coordinates and the current coordinate line. If n is large enough, the cursor moves back to the shortest distance between the input start point coordinates and the current coordinate. The cursor is moved out of the position before the input box. The distance between the points should be an integer multiple of the minimum distance the cursor can move. While ensuring that the distance between the points is an integer multiple of the minimum distance the cursor can move, the larger n is, the better, the larger n is. The greater the probability that the cursor moves along the line to the coordinates of the input start point. In the present embodiment, n may take 20 or more.

本申请实施例的校验输入内容的方法,通过从输入框中移出光标触发校验时间,当校验出输入内容不合法时,直接提示预设规则,将光标恢复至输入框内,且保留原来的输入内容,能够使用户更快的发现内容的不合理处并直接对其修改,并且不需要用户自己手动操作光标复位方便又快捷。The method for verifying the input content in the embodiment of the present application triggers the verification time by removing the cursor from the input box, and when the verification input content is illegal, directly prompts the preset rule to restore the cursor to the input box, and retains The original input content enables the user to find the unreasonable content of the content and modify it directly, and does not require the user to manually operate the cursor reset conveniently and quickly.

图4是本申请实施例提供的一种校验输入内容的方法的另一流程示意图。该方法的步骤包括S201~S205。FIG. 4 is another schematic flowchart of a method for verifying input content according to an embodiment of the present application. The steps of the method include S201 to S205.

S201,接收用户在一信息输入界面的输入框输入的输入内容;S202,检测光标是否从所述输入框中移出;S203,若光标从所述输入框中移出,校验所述输入框中的所述输入内容是否符合预设规则;S204,若不符合所述预设规则,保留所述输入框中的输入内容,显示所述预设规则,并控制所述光标移动至所述输入框内。S205,若符合所述预设规则,将所述光标移动至提交按键。S201, receiving input content input by the user in an input box of an information input interface; S202, detecting whether the cursor is removed from the input box; S203, if the cursor is removed from the input box, verifying the input box Whether the input content meets the preset rule; S204, if the preset rule is not met, retain the input content in the input box, display the preset rule, and control the cursor to move into the input box . S205. If the preset rule is met, move the cursor to a submit button.

本实施例中的S201~S204与上一实施例中的步骤S101~S104完全相同,本 实施例不做赘述。S201 to S204 in this embodiment are completely the same as steps S101 to S104 in the previous embodiment, and are not described in this embodiment.

在本实施例中,信息输入界面只为一页,不包含子页面,该界面仅包括一个输入框。如果用户输入的内容符合预设规则,说明内容合法,将光标移动至提交按键,用户可以将该输入内容作为最终需要提交的内容进行提交。In this embodiment, the information input interface is only one page, and does not include a sub-page, and the interface includes only one input box. If the content input by the user conforms to the preset rule, the content is legal, and the cursor is moved to the submit button, and the user can submit the input content as the final content to be submitted.

本申请实施例的校验输入内容的方法,当校验出输入内容不合法时,直接提示预设规则,将光标移回输入框内,且保留原来的输入内容,能够使用户更快的发现内容的不合理处并直接对其修改,并且不需要用户自己手动操作光标复位方便又快捷;输入内容合法时,光标直接移动至提交按键,省去了用户的操作,也间接地反映了输入内容是合法的。The method for verifying the input content in the embodiment of the present application, when verifying that the input content is illegal, directly prompting the preset rule, moving the cursor back into the input box, and retaining the original input content, enabling the user to discover faster The content is unreasonable and directly modified, and the user does not need to manually operate the cursor reset. It is convenient and fast; when the input content is legal, the cursor moves directly to the submit button, which saves the user's operation and indirectly reflects the input content. It is legal.

图5是本申请实施例提供的一种校验输入内容的方法的另一流程示意图。该方法的步骤包括S301~S307。FIG. 5 is another schematic flowchart of a method for verifying input content according to an embodiment of the present application. The steps of the method include S301 to S307.

S301,接收用户在一信息输入界面的输入框输入的输入内容;S302,检测光标是否从所述输入框中移出;S303,若光标从所述输入框中移出,校验所述输入框中的所述输入内容是否符合预设规则;S304,若不符合所述预设规则,保留所述输入框中的输入内容,显示所述预设规则,并控制所述光标移动至所述输入框内。本实施例中的S301~S304与第一实施例中的步骤S101~S104完全相同,本实施例不做赘述。S301: Receive input content input by a user in an input box of an information input interface; S302, detect whether a cursor is removed from the input box; S303, if the cursor is removed from the input box, verify the input box Whether the input content meets the preset rule; S304, if the preset rule is not met, retain the input content in the input box, display the preset rule, and control the cursor to move into the input box . S301 to S304 in this embodiment are completely the same as steps S101 to S104 in the first embodiment, and are not described in detail in this embodiment.

在本实施例中,信息输入界面只为一页,不包含子页面,但该信息输入界面包括多个输入框。In this embodiment, the information input interface is only one page, and does not include a sub-page, but the information input interface includes a plurality of input boxes.

S305,若符合所述预设规则,判断所述输入框是否为所述信息输入界面中的最后一个输入框。S306,若不是最后一个输入框,将所述光标移动至下一输入框。S307,若是最后一个输入框,将所述光标移动至提交按钮。S305. If the preset rule is met, determine whether the input box is the last input box in the information input interface. S306. If it is not the last input box, move the cursor to the next input box. S307. If it is the last input box, move the cursor to the submit button.

在本申请实施例中,对每一个输入框中的输入内容的预设规则不完全相同,因为每一项的信息不同,因此,预设规则可以根据具体情况发生变化。In the embodiment of the present application, the preset rules for the input content in each input box are not completely the same, because the information of each item is different, and therefore, the preset rules may be changed according to specific conditions.

每次成功校验完一项内容且内容合法之后,判断该输入框是否为最后一个输入框,只要不是最后一个输入框,说明内容未填写完整,光标直接跳到下一输入框,方便用户直接在下一输入框输入内容,直至用户填写信息合法且完整后提交。After each successful verification of a content and the content is legal, it is determined whether the input box is the last input box, as long as it is not the last input box, the content is not completely filled, and the cursor directly jumps to the next input box, which is convenient for the user to directly Enter the content in the next input box until the user fills in the information legally and completely.

本申请实施例的校验输入内容的方法,非最后一个输入框的输入内容合法后,光标直接跳到下一输入框,不需要用户手动操控光标,方便用户直接在下一输入框输入内容。In the method for verifying the input content in the embodiment of the present application, after the input content of the last input box is legal, the cursor directly jumps to the next input box, and the user does not need to manually manipulate the cursor, so that the user can directly input the content in the next input box.

图6是本申请实施例提供的一种校验输入内容的方法的另一流程示意图。 该方法的步骤包括S401~S409。FIG. 6 is another schematic flowchart of a method for verifying input content according to an embodiment of the present application. The steps of the method include S401 to S409.

S401,接收用户在一信息输入界面的输入框输入的输入内容;S402,检测光标是否从所述输入框中移出;S403,若光标从所述输入框中移出,校验所述输入框中的所述输入内容是否符合预设规则;S404,若不符合所述预设规则,保留所述输入框中的输入内容,显示所述预设规则,并控制所述光标移动至所述输入框内。S401, receiving input content input by the user in an input box of an information input interface; S402, detecting whether the cursor is removed from the input box; S403, if the cursor is removed from the input box, verifying the input box Whether the input content meets the preset rule; S404, if the preset rule is not met, retain the input content in the input box, display the preset rule, and control the cursor to move into the input box .

本实施例中的S401~S404与第一实施例中的步骤S101~S104完全相同,本实施例不做赘述。S401 to S404 in this embodiment are completely the same as steps S101 to S104 in the first embodiment, and are not described in this embodiment.

在本实施例中,信息输入界面包括多个信息输入子页面,每个信息输入子页面包括多个输入框。In this embodiment, the information input interface includes a plurality of information input sub-pages, and each information input sub-page includes a plurality of input boxes.

在本申请实施例中,对每一个输入框中的输入内容的预设规则不完全相同,因为每一项的信息不同,因此,预设规则可以根据具体情况发生变化。In the embodiment of the present application, the preset rules for the input content in each input box are not completely the same, because the information of each item is different, and therefore, the preset rules may be changed according to specific conditions.

S405,若符合所述预设规则,判断所述输入框是否为当前所述信息输入子页面的最后一个输入框。S406,若不是最后一个输入框,将所述光标移动至下一输入框。S405. If the preset rule is met, determine whether the input box is the last input box of the current information input subpage. S406. If it is not the last input box, move the cursor to the next input box.

每次成功校验完一项内容且内容合法之后,判断该输入框是否为当前信息输入子页面的最后一个输入框,只要不是最后一个输入框,说明当前信息输入子页面的内容未填写完整,光标直接跳到下一输入框,直至用户填写信息合法且最后一个输入框。After each successful verification of a content and the content is legal, it is determined whether the input box is the last input box of the current information input sub-page, as long as it is not the last input box, indicating that the content of the current information input sub-page is not completed. The cursor jumps directly to the next input box until the user fills in the legal and last input box.

S407,若是最后一个输入框,判断当前信息输入子页面是否为最后的信息输入子页面。S407. If it is the last input box, determine whether the current information input subpage is the last information input subpage.

如果是最后一个输入框,说明当前信息输入子页面的所有内容都已经正确填写,如果不是最后一页,需要进行下一页内容的填写。If it is the last input box, all the contents of the current information input sub-page have been filled correctly. If it is not the last page, you need to fill in the next page.

S408,若不是最后的信息输入子页面,将所述光标移动至下一页按键。S409,若是最后的信息输入子页面,将所述光标移动至提交按键。S408. If it is not the last information input subpage, move the cursor to the next page button. S409, if it is the last information input subpage, move the cursor to the submit button.

每次正确填写一页内容之后,光标直接跳到下一页按钮,直至用户填写信息合法且完整至最后一页。After each page is correctly filled in, the cursor jumps directly to the next page button until the user fills in the information legally and complete to the last page.

本申请实施例的校验输入内容的方法,当输入内容合法时,光标直接移动至下一项内容或下一页按键,省去了用户的操作光标的麻烦,也间接地反映了用户上一项输入内容或上一页内容是合法的。In the method for verifying input content in the embodiment of the present application, when the input content is legal, the cursor directly moves to the next item or the next page button, thereby eliminating the trouble of the user's operation cursor, and indirectly reflecting the user's previous one. Item input or previous page content is legal.

图7为本申请实施例提供的一种校验输入内容的装置100的示意性框图。该校验输入内容的装置100包括接收单元101、检测单元102、校验单元103、 保留单元104、显示单元105和第一移动单元106。FIG. 7 is a schematic block diagram of an apparatus 100 for verifying input content according to an embodiment of the present application. The apparatus 100 for verifying the input content includes a receiving unit 101, a detecting unit 102, a checking unit 103, a retaining unit 104, a display unit 105, and a first moving unit 106.

接收单元101用于接收用户在一信息输入界面的输入框输入的输入内容。检测单元102用于检测光标是否从所述输入框中移出。校验单元103用于若光标从所述输入框中移出,校验所述输入框中的所述输入内容是否符合预设规则。The receiving unit 101 is configured to receive input content input by a user in an input box of an information input interface. The detecting unit 102 is configured to detect whether the cursor is removed from the input box. The verification unit 103 is configured to check whether the input content in the input box meets a preset rule if the cursor is removed from the input box.

所述预设规则包括以下:允许输入内容的文本类型包括中文、英文和非负数字;允许输入内容中的顿号出现的位置为非首位或末尾。The preset rule includes the following: the text type of the input content is allowed to include Chinese, English, and non-negative numbers; the position where the dot in the input content is allowed to appear is non-first or last.

如图8所示,校验单元103包括第一判断子单元1031和第二判断子单元1032。As shown in FIG. 8, the check unit 103 includes a first judgment sub-unit 1031 and a second judgment sub-unit 1032.

第一判断子单元1031,用于判断所述输入内容的首位和/或末尾是否为顿号,若输入内容的首位和/或末尾为顿号,则判定所述输入内容不符合所述预设规则。第二判断子单元1032,用于若输入内容的首位和/或末尾不为顿号,判断所述输入内容的文本类型是否为中文、英文和非负数字三者之间的任意一个或任意组合;若不是三者之间的任意一个或任意组合,则判定所述输入内容不符合所述预设规则;若为三者之间的任意一个或任意组合,则判定所述输入内容符合所述预设规则。保留单元104用于若输入内容不符合预设规则,保留所述输入框中的输入内容。显示单元105用于若输入内容不符合预设规则,显示所述预设规则。第一移动单元106用于若输入内容不符合预设规则,控制所述光标移动至所述输入框内。The first determining sub-unit 1031 is configured to determine whether the first bit and/or the end of the input content is a comma. If the first position and/or the end of the input content is a comma, it is determined that the input content does not meet the preset. rule. The second determining sub-unit 1032 is configured to determine whether the text type of the input content is any one or any combination of Chinese, English, and non-negative numbers if the first and/or the end of the input content is not a comma. If it is not any one or any combination between the three, it is determined that the input content does not meet the preset rule; if it is any one or any combination between the three, it is determined that the input content meets the Preset rules. The retaining unit 104 is configured to retain the input content in the input box if the input content does not conform to the preset rule. The display unit 105 is configured to display the preset rule if the input content does not meet the preset rule. The first moving unit 106 is configured to control the cursor to move into the input box if the input content does not conform to the preset rule.

如图9所示,第一移动单元106包括第一获取子单元1061、等分子单元1062、第二获取子单元1063和移动子单元1064。As shown in FIG. 9, the first mobile unit 106 includes a first acquisition subunit 1061, an equal molecular unit 1062, a second acquisition subunit 1063, and a mobile subunit 1064.

第一获取子单元1061,用于当所述输入内容不符合所述预设规则时,获取所述输入框中与所述输入内容相邻的下一输入起点坐标和光标所在的当前坐标。等分子单元1062,用于将所述输入起点坐标与所述当前坐标之间的距离进行n等分。第二获取子单元1063,用于获取n-1个等分点的坐标;移动子单元1064,用于移动所述光标依次经过n-1个所述坐标对应的坐标点,到达所述输入起点坐标对应的坐标点。The first obtaining sub-unit 1061 is configured to acquire a next input starting point coordinate and a current coordinate where the cursor is located adjacent to the input content in the input box when the input content does not meet the preset rule. The equal molecular unit 1062 is configured to divide n the distance between the input starting point coordinate and the current coordinate by n. a second obtaining sub-unit 1063, configured to acquire coordinates of n-1 halving points; a moving sub-unit 1064, configured to move the cursor sequentially through n-1 coordinate points corresponding to the coordinates, to reach the input starting point The coordinate point corresponding to the coordinates.

上述校验输入内容的装置100的各个单元的具体描述可参考方法第一实施例,本实施例不做赘述。For a detailed description of the various units of the apparatus 100 for verifying the input content, reference may be made to the first embodiment of the method, which is not described in this embodiment.

图10为本申请实施例提供的一种校验输入内容的装置100的另一示意性框图。该校验输入内容的装置100包括接收单元101、检测单元102、校验单元103、保留单元104、显示单元105、第一移动单元106和第二移动单元107。FIG. 10 is another schematic block diagram of an apparatus 100 for verifying input content according to an embodiment of the present application. The apparatus 100 for verifying the input content includes a receiving unit 101, a detecting unit 102, a checking unit 103, a retaining unit 104, a display unit 105, a first moving unit 106, and a second moving unit 107.

在本实施例中,信息输入界面只为一页,不包含子页面,该界面仅包括一 个输入框。第二移动单元107用于若输入内容符合所述预设规则,则将所述光标移动至提交按键。In this embodiment, the information input interface is only one page, and does not include a sub-page, and the interface includes only one input box. The second moving unit 107 is configured to move the cursor to the submit button if the input content meets the preset rule.

图11为本申请实施例提供的一种校验输入内容的装置100的另一示意性框图。该校验输入内容的装置100包括接收单元101、检测单元102、校验单元103、保留单元104、显示单元105、第一移动单元106、第一判断单元108、第三移动单元109和第四移动单元110。FIG. 11 is another schematic block diagram of an apparatus 100 for verifying input content according to an embodiment of the present application. The apparatus 100 for verifying the input content includes a receiving unit 101, a detecting unit 102, a checking unit 103, a retaining unit 104, a display unit 105, a first moving unit 106, a first judging unit 108, a third moving unit 109, and a fourth Mobile unit 110.

在本实施例中,信息输入界面只为一页,不包含子页面,但该信息输入界面包括多个输入框。In this embodiment, the information input interface is only one page, and does not include a sub-page, but the information input interface includes a plurality of input boxes.

第一判断单元108用于若输入内容符合预设规则,判断所述输入框是否为所述信息输入界面中的最后一个输入框。第三移动单元109用于若所述输入框不是最后一个输入框,将所述光标移动至下一输入框。第四移动单元110用于若所述输入框是最后一个输入框,将所述光标移动至提交按钮。The first determining unit 108 is configured to determine whether the input box is the last input box in the information input interface if the input content meets a preset rule. The third moving unit 109 is configured to move the cursor to the next input box if the input box is not the last input box. The fourth moving unit 110 is configured to move the cursor to the submit button if the input box is the last input box.

图12为本申请实施例提供的一种校验输入内容的装置100的另一示意性框图。该校验输入内容的装置100包括接收单元101、检测单元102、校验单元103、保留单元104、显示单元105、第一移动单元106、第二判断单元111、第五移动单元112、第三判断单元113、第六移动单元114和第七移动单元115。FIG. 12 is another schematic block diagram of an apparatus 100 for verifying input content according to an embodiment of the present application. The apparatus 100 for verifying the input content includes a receiving unit 101, a detecting unit 102, a checking unit 103, a retaining unit 104, a display unit 105, a first moving unit 106, a second determining unit 111, a fifth moving unit 112, and a third The judging unit 113, the sixth moving unit 114, and the seventh moving unit 115.

在本实施例中,信息输入界面包括多个信息输入子页面,每个信息输入子页面包括多个输入框。In this embodiment, the information input interface includes a plurality of information input sub-pages, and each information input sub-page includes a plurality of input boxes.

第二判断单元111用于若输入内容符合预设规则,判断所述输入框是否为所述信息输入界面中的最后一个输入框。第五移动单元112用于若所述输入框不是最后一个输入框,将所述光标移动至下一输入框。第三判断单元113用于若所述输入框是最后一个输入框,判断当前信息输入子页面是否为最后的信息输入子页面。第六移动单元114用于若不是最后的信息输入子页面,将所述光标移动至下一页按键;第七移动单元115用于若是最后的信息输入子页面,将所述光标移动至提交按键。The second determining unit 111 is configured to determine whether the input box is the last input box in the information input interface if the input content meets a preset rule. The fifth moving unit 112 is configured to move the cursor to the next input box if the input box is not the last input box. The third determining unit 113 is configured to determine whether the current information input subpage is the last information input subpage if the input box is the last input box. The sixth moving unit 114 is configured to move the cursor to the next page button if it is not the last information input subpage; the seventh moving unit 115 is configured to move the cursor to the submit button if it is the last information input subpage .

上述校验输入内容的装置100可以实现为一种计算机程序的形式,计算机程序可以在如图13所示的计算机设备上运行。The apparatus 100 for verifying the input content described above can be implemented in the form of a computer program that can be run on a computer device as shown in FIG.

图13为本申请实施例提供的一种校验输入内容的设备的示意性框图。该设备可以是终端,也可以是服务器,其中,终端可以是智能手机、平板电脑、笔记本电脑、台式电脑、个人数字助理和穿戴式设备等具有通信功能的电子设备。 服务器可以是独立的服务器,也可以是多个服务器组成的服务器集群。FIG. 13 is a schematic block diagram of an apparatus for verifying input content according to an embodiment of the present application. The device may be a terminal or a server, wherein the terminal may be a communication-enabled electronic device such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device. The server can be a standalone server or a server cluster consisting of multiple servers.

该设备为一种计算机设备200,包括通过系统总线201连接的处理器202、非易失性存储介质203、内存储器204和网络接口205。其中,该计算机设备200的非易失性存储介质203可存储操作系统2031和计算机程序2032,该计算机程序2032被执行时,可使得处理器202执行一种校验输入内容的方法。该计算机设备200的处理器202用于提供计算和控制能力,支撑整个计算机设备200的运行。该内存储器204为非易失性存储介质203中的计算机程序2032的运行提供环境,该计算机程序2032被处理器202执行时,可使得处理器202执行一种校验输入内容的方法。计算机设备200的网络接口205用于进行网络通信,如发送分配的任务等。本领域技术人员可以理解,图13中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。The device is a computer device 200 comprising a processor 202 connected by a system bus 201, a non-volatile storage medium 203, an internal memory 204, and a network interface 205. The non-volatile storage medium 203 of the computer device 200 can store an operating system 2031 and a computer program 2032 that, when executed, can cause the processor 202 to perform a method of verifying input content. The processor 202 of the computer device 200 is used to provide computing and control capabilities to support the operation of the entire computer device 200. The internal memory 204 provides an environment for the operation of the computer program 2032 in the non-volatile storage medium 203, which when executed by the processor 202, may cause the processor 202 to perform a method of verifying the input content. The network interface 205 of the computer device 200 is used to perform network communications, such as sending assigned tasks and the like. It will be understood by those skilled in the art that the structure shown in FIG. 13 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the computer device to which the solution of the present application is applied. The specific computer device may It includes more or fewer components than those shown in the figures, or some components are combined, or have different component arrangements.

处理器202运行非易失性存储介质203中的计算机程序2032时可执行上述校验输入内容的方法的所有实施例的实现方式。An implementation of all of the embodiments of the method of verifying input content described above may be performed when processor 202 runs computer program 2032 in non-volatile storage medium 203.

本领域技术人员可以理解,图13中示出的校验输入内容的设备的实施例并不构成对校验输入内容的设备具体构成的限定,在其他实施例中,校验输入内容的设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。例如,在一些实施例中,校验输入内容的设备可以仅包括存储器及处理器,在这样的实施例中,存储器及处理器的结构及功能与图13所示实施例一致,在此不再赘述。It can be understood by those skilled in the art that the embodiment of the device for verifying the input content shown in FIG. 13 does not constitute a limitation on the specific configuration of the device for verifying the input content. In other embodiments, the device for verifying the input content may Includes more or fewer components than shown, or combines some components, or different component arrangements. For example, in some embodiments, the device for verifying the input content may include only the memory and the processor. In such an embodiment, the structure and function of the memory and the processor are consistent with the embodiment shown in FIG. Narration.

本申请还提供一种计算机可读存储介质,所述计算机可读存储介质存储有一个或者一个以上程序,所述一个或者一个以上程序可被一个或者一个以上的处理器执行,当所述一个或者一个以上程序被一个或者一个以上的处理器执行,可实现上述校验输入内容的方法的所有实施例。The application further provides a computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors, when the one or More than one program is executed by one or more processors to implement all of the above described methods of verifying input content.

以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The foregoing is only a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto, and any equivalents can be easily conceived by those skilled in the art within the technical scope disclosed in the present application. Modifications or substitutions are intended to be included within the scope of the present application. Therefore, the scope of protection of this application should be determined by the scope of protection of the claims.

Claims (20)

一种校验输入内容的方法,其特征在于,包括:A method for verifying input content, comprising: 接收用户在一信息输入界面的输入框输入的输入内容;Receiving input content input by a user in an input box of an information input interface; 检测光标是否从所述输入框中移出;Detecting whether the cursor is removed from the input box; 若光标从所述输入框中移出,校验所述输入框中的所述输入内容是否符合预设规则;If the cursor is removed from the input box, verify whether the input content in the input box meets a preset rule; 若不符合所述预设规则,保留所述输入框中的输入内容,显示所述预设规则,并控制所述光标移动至所述输入框内。If the preset rule is not met, the input content in the input box is retained, the preset rule is displayed, and the cursor is controlled to move into the input box. 根据权利要求1所述的方法,其特征在于,所述预设规则包括:The method according to claim 1, wherein the preset rule comprises: 输入内容的文本类型为中文、英文和非负数字三者之间的任意一个或任意组合;The text type of the input content is any one or any combination of Chinese, English, and non-negative numbers; 输入内容中的顿号出现的位置为非首位或非末尾。The position in the input content appears as a non-first or non-end. 根据权利要求2所述的方法,其特征在于,所述校验所述输入框中的所述输入内容是否符合预设规则,包括:The method according to claim 2, wherein the verifying whether the input content in the input box meets a preset rule comprises: 判断所述输入内容的首位和/或末尾是否为顿号;Determining whether the first and/or the end of the input content is a comma; 若是,则判定所述输入内容不符合所述预设规则;If yes, determining that the input content does not meet the preset rule; 若否,则判断所述输入内容的文本类型是否为中文、英文和非负数字三者之间的任意一个或任意组合;If not, determining whether the text type of the input content is any one or any combination between Chinese, English, and non-negative numbers; 若不是三者之间的任意一个或任意组合,则判定所述输入内容不符合所述预设规则;If it is not any one or any combination between the three, it is determined that the input content does not meet the preset rule; 若为三者之间的任意一个或任意组合,则判定所述输入内容符合所述预设规则。If it is any one or any combination between the three, it is determined that the input content meets the preset rule. 根据权利要求1所述的方法,其特征在于,所述控制所述光标移动至所述输入框内,包括:The method according to claim 1, wherein the controlling the movement of the cursor into the input box comprises: 获取所述输入框中与所述输入内容相邻的下一输入起点坐标和光标所在的当前坐标;Obtaining a next input starting point coordinate and a current coordinate where the cursor is located in the input box adjacent to the input content; 将所述输入起点坐标与所述当前坐标之间的距离进行n等分;And dividing the distance between the input starting point coordinate and the current coordinate by n; 获取n-1个等分点的坐标;Get the coordinates of n-1 aliquots; 移动所述光标依次经过n-1个所述坐标对应的坐标点,到达所述输入起点坐标对应的坐标点。Moving the cursor sequentially passes through n-1 coordinate points corresponding to the coordinates, and reaches a coordinate point corresponding to the input starting point coordinates. 根据权利要求1所述的方法,其特征在于,所述信息输入界面的输入框 为一个;The method according to claim 1, wherein the input box of the information input interface is one; 所述校验所述输入框中的所述输入内容是否符合预设规则之后,还包括:若符合所述预设规则,将所述光标移动至提交按键。After the verifying whether the input content in the input box meets the preset rule, the method further includes: moving the cursor to the submit button if the preset rule is met. 根据权利要求1所述的方法,其特征在于,所述信息输入界面的输入框为多个;The method according to claim 1, wherein the input box of the information input interface is plural; 所述校验所述输入框中的所述输入内容是否符合预设规则之后,还包括:After the verifying that the input content in the input box meets a preset rule, the method further includes: 若符合所述预设规则,判断所述输入框是否为所述信息输入界面中的最后一个输入框;If the preset rule is met, determining whether the input box is the last input box in the information input interface; 若不是最后一个输入框,将所述光标移动至下一输入框;If it is not the last input box, move the cursor to the next input box; 若是最后一个输入框,将所述光标移动至提交按钮。If it is the last input box, move the cursor to the submit button. 根据权利要求1所述的方法,其特征在于,所述信息输入界面包括多个信息输入子页面,每个信息输入子页面的输入框为多个;The method according to claim 1, wherein the information input interface comprises a plurality of information input sub-pages, and each of the information input sub-pages has a plurality of input boxes; 所述校验所述输入框中的所述输入内容是否符合预设规则之后,还包括:After the verifying that the input content in the input box meets a preset rule, the method further includes: 若符合所述预设规则,判断所述输入框是否为当前所述信息输入子页面的最后一个输入框;If the preset rule is met, determining whether the input box is the last input box of the current information input subpage; 若不是最后一个输入框,将所述光标移动至下一输入框;If it is not the last input box, move the cursor to the next input box; 若是最后一个输入框,判断当前信息输入子页面是否为最后的信息输入子页面;If it is the last input box, it is judged whether the current information input subpage is the last information input subpage; 若不是最后的信息输入子页面,将所述光标移动至下一页按键;If it is not the last information input subpage, move the cursor to the next page button; 若是最后的信息输入子页面,将所述光标移动至提交按键。If it is the last information input subpage, move the cursor to the submit button. 一种校验输入内容的装置,其特征在于,包括:An apparatus for verifying input content, comprising: 接收单元,用于接收用户在一信息输入界面的输入框输入的输入内容;a receiving unit, configured to receive input content input by a user in an input box of an information input interface; 检测单元,用于检测光标是否从所述输入框中移出;a detecting unit, configured to detect whether the cursor is removed from the input box; 校验单元,用于若光标从所述输入框中移出,校验所述输入框中的所述输入内容是否符合预设规则;a verification unit, configured to: if the cursor is removed from the input box, verify whether the input content in the input box meets a preset rule; 保留单元,用于若输入内容不符合预设规则,保留所述输入框中的输入内容;a retaining unit, configured to retain the input content in the input box if the input content does not meet the preset rule; 显示单元,用于若输入内容不符合预设规则,显示所述预设规则;a display unit, configured to display the preset rule if the input content does not meet a preset rule; 第一移动单元,用于若输入内容不符合预设规则,控制所述光标移动至所述输入框内。The first mobile unit is configured to control the cursor to move into the input box if the input content does not conform to the preset rule. 根据权利要求8所述的装置,其特征在于,所述预设规则包括:The device according to claim 8, wherein the preset rule comprises: 输入内容的文本类型为中文、英文和非负数字三者之间的任意一个或任意 组合;The text type of the input content is any one or any combination of Chinese, English, and non-negative numbers; 输入内容中的顿号出现的位置为非首位或非末尾;The position in the input content appears to be non-first or non-end; 所述校验单元包括:The verification unit includes: 第一判断子单元,用于判断所述输入内容的首位和/或末尾是否为顿号,若输入内容的首位和/或末尾为顿号,则判定所述输入内容不符合所述预设规则;a first determining subunit, configured to determine whether the first bit and/or the end of the input content is a comma, and if the first and/or the end of the input content is a comma, determining that the input content does not meet the preset rule ; 第二判断子单元,用于若输入内容的首位和/或末尾不为顿号,判断所述输入内容的文本类型是否为中文、英文和非负数字三者之间的任意一个或任意组合;若不是三者之间的任意一个或任意组合,则判定所述输入内容不符合所述预设规则;若为三者之间的任意一个或任意组合,则判定所述输入内容符合所述预设规则。a second determining subunit, configured to determine whether the text type of the input content is any one or any combination between Chinese, English, and non-negative numbers if the first and/or the end of the input content is not a comma; If it is not any one or any combination between the three, it is determined that the input content does not meet the preset rule; if it is any one or any combination between the three, it is determined that the input content meets the pre-predetermined Set rules. 根据权利要求8所述的装置,其特征在于,所述第一移动单元包括:The device according to claim 8, wherein the first mobile unit comprises: 第一获取子单元,用于当所述输入内容不符合所述预设规则时,获取所述输入框中与所述输入内容相邻的下一输入起点坐标和光标所在的当前坐标;a first acquiring sub-unit, configured to acquire a next input starting point coordinate and a current coordinate where the cursor is located adjacent to the input content in the input box when the input content does not meet the preset rule; 等分子单元,用于将所述输入起点坐标与所述当前坐标之间的距离进行n等分;An equal molecular unit for n-dividing the distance between the input starting point coordinate and the current coordinate; 第二获取子单元,用于获取n-1个等分点的坐标;a second obtaining subunit, configured to acquire coordinates of n-1 aliquots; 移动子单元,用于移动所述光标依次经过n-1个所述坐标对应的坐标点,到达所述输入起点坐标对应的坐标点。And a moving subunit, configured to move the cursor sequentially through n-1 coordinate points corresponding to the coordinates, and reach a coordinate point corresponding to the input starting point coordinate. 根据权利要求8所述的装置,其特征在于,所述信息输入界面的输入框为一个,所述装置还包括:The device according to claim 8, wherein the input box of the information input interface is one, and the device further comprises: 第二移动单元,用于若输入内容符合所述预设规则,则将所述光标移动至提交按键。And a second moving unit, configured to move the cursor to the submit button if the input content meets the preset rule. 根据权利要求8所述的装置,其特征在于,所述信息输入界面的输入框为多个,所述装置还包括:The device according to claim 8, wherein the input box of the information input interface is plural, and the device further comprises: 第一判断单元,用于若输入内容符合预设规则,判断所述输入框是否为所述信息输入界面中的最后一个输入框;a first determining unit, configured to determine, if the input content meets a preset rule, whether the input box is the last input box in the information input interface; 第三移动单元,用于若所述输入框不是最后一个输入框,将所述光标移动至下一输入框;a third moving unit, configured to move the cursor to a next input box if the input box is not the last input box; 第四移动单元,用于若所述输入框是最后一个输入框,将所述光标移动至提交按钮。And a fourth moving unit, configured to move the cursor to the submit button if the input box is the last input box. 根据权利要求8所述的装置,其特征在于,所述信息输入界面包括多个信息输入子页面,每个信息输入子页面的输入框为多个,所述装置还包括:The device according to claim 8, wherein the information input interface comprises a plurality of information input sub-pages, and each of the information input sub-pages has a plurality of input boxes, and the device further comprises: 第二判断单元,用于若输入内容符合预设规则,判断所述输入框是否为所述信息输入界面中的最后一个输入框;a second determining unit, configured to determine whether the input box is the last input box in the information input interface if the input content meets a preset rule; 第五移动单元,用于若所述输入框不是最后一个输入框,将所述光标移动至下一输入框;a fifth moving unit, configured to move the cursor to a next input box if the input box is not the last input box; 第三判断单元,用于若所述输入框是最后一个输入框,判断当前信息输入子页面是否为最后的信息输入子页面;a third determining unit, configured to determine whether the current information input subpage is the last information input subpage if the input box is the last input box; 第六移动单元,用于若不是最后的信息输入子页面,将所述光标移动至下一页按键;a sixth moving unit, configured to move the cursor to a next page button if it is not the last information input subpage; 第七移动单元,用于若是最后的信息输入子页面,将所述光标移动至提交按键。The seventh mobile unit is configured to move the cursor to the submit button if the last information is input to the sub-page. 一种校验输入内容的设备,其特征在于,所述设备包括存储器,以及与所述存储器相连的处理器;A device for verifying input content, characterized in that the device comprises a memory, and a processor connected to the memory; 所述存储器,用于存储校验输入内容的程序数据;The memory is configured to store program data for verifying input content; 所述处理器,用于运行所述存储器中存储的程序数据,以执行以下步骤:The processor is configured to run program data stored in the memory to perform the following steps: 接收用户在一信息输入界面的输入框输入的输入内容;Receiving input content input by a user in an input box of an information input interface; 检测光标是否从所述输入框中移出;Detecting whether the cursor is removed from the input box; 若光标从所述输入框中移出,校验所述输入框中的所述输入内容是否符合预设规则;If the cursor is removed from the input box, verify whether the input content in the input box meets a preset rule; 若不符合所述预设规则,保留所述输入框中的输入内容,显示所述预设规则,并控制所述光标移动至所述输入框内。If the preset rule is not met, the input content in the input box is retained, the preset rule is displayed, and the cursor is controlled to move into the input box. 根据权利要求14所述的设备,其特征在于,所述预设规则包括:输入内容的文本类型为中文、英文和非负数字三者之间的任意一个或任意组合;输入内容中的顿号出现的位置为非首位或非末尾;The device according to claim 14, wherein the preset rule comprises: the text type of the input content is any one or any combination between Chinese, English and non-negative digits; The position that appears is non-first or non-end; 在执行所述校验所述输入框中的所述输入内容是否符合预设规则的步骤中具体执行以下步骤:Performing the following steps in the step of performing the verification that the input content in the input box meets a preset rule: 判断所述输入内容的首位和/或末尾是否为顿号;Determining whether the first and/or the end of the input content is a comma; 若是,则判定所述输入内容不符合所述预设规则;If yes, determining that the input content does not meet the preset rule; 若否,则判断所述输入内容的文本类型是否为中文、英文和非负数字三者之间的任意一个或任意组合;If not, determining whether the text type of the input content is any one or any combination between Chinese, English, and non-negative numbers; 若不是三者之间的任意一个或任意组合,则判定所述输入内容不符合所述预设规则;If it is not any one or any combination between the three, it is determined that the input content does not meet the preset rule; 若为三者之间的任意一个或任意组合,则判定所述输入内容符合所述预设 规则。If it is any one or any combination between the three, it is determined that the input content conforms to the preset rule. 根据权利要求14所述的设备,其特征在于,在执行所述控制所述光标移动至所述输入框内的步骤时具体执行以下步骤:The apparatus according to claim 14, wherein the step of specifically performing the step of controlling the movement of the cursor into the input box is performed: 获取所述输入框中与所述输入内容相邻的下一输入起点坐标和光标所在的当前坐标;Obtaining a next input starting point coordinate and a current coordinate where the cursor is located in the input box adjacent to the input content; 将所述输入起点坐标与所述当前坐标之间的距离进行n等分;And dividing the distance between the input starting point coordinate and the current coordinate by n; 获取n-1个等分点的坐标;Get the coordinates of n-1 aliquots; 移动所述光标依次经过n-1个所述坐标对应的坐标点,到达所述输入起点坐标对应的坐标点。Moving the cursor sequentially passes through n-1 coordinate points corresponding to the coordinates, and reaches a coordinate point corresponding to the input starting point coordinates. 根据权利要求14所述的设备,其特征在于,所述信息输入界面的输入框为一个;The device according to claim 14, wherein the input box of the information input interface is one; 在执行所述校验所述输入框中的所述输入内容是否符合预设规则的步骤之后,还执行以下步骤:若符合所述预设规则,将所述光标移动至提交按键。After performing the step of verifying whether the input content in the input box meets a preset rule, the following step is further performed: if the preset rule is met, the cursor is moved to a submit button. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有一个或者一个以上程序数据,所述一个或者一个以上程序数据可被一个或者一个以上的处理器执行,以实现以下步骤:A computer readable storage medium, wherein the computer readable storage medium stores one or more program data, the one or more program data being executable by one or more processors to implement the following step: 接收用户在一信息输入界面的输入框输入的输入内容;Receiving input content input by a user in an input box of an information input interface; 检测光标是否从所述输入框中移出;Detecting whether the cursor is removed from the input box; 若光标从所述输入框中移出,校验所述输入框中的所述输入内容是否符合预设规则;If the cursor is removed from the input box, verify whether the input content in the input box meets a preset rule; 若不符合所述预设规则,保留所述输入框中的输入内容,显示所述预设规则,并控制所述光标移动至所述输入框内。If the preset rule is not met, the input content in the input box is retained, the preset rule is displayed, and the cursor is controlled to move into the input box. 根据权利要求18所述的计算机可读存储介质,其特征在于,所述预设规则包括:输入内容的文本类型为中文、英文和非负数字三者之间的任意一个或任意组合;输入内容中的顿号出现的位置为非首位或非末尾;The computer readable storage medium according to claim 18, wherein the preset rule comprises: the text type of the input content is any one or any combination between Chinese, English and non-negative digits; The position of the dot in the middle is not the first or the last; 在实现所述校验所述输入框中的所述输入内容是否符合预设规则的步骤中具体实现以下步骤:The following steps are specifically implemented in the step of verifying whether the input content in the input box meets a preset rule: 判断所述输入内容的首位和/或末尾是否为顿号;Determining whether the first and/or the end of the input content is a comma; 若是,则判定所述输入内容不符合所述预设规则;If yes, determining that the input content does not meet the preset rule; 若否,则判断所述输入内容的文本类型是否为中文、英文和非负数字三者之间的任意一个或任意组合;If not, determining whether the text type of the input content is any one or any combination between Chinese, English, and non-negative numbers; 若不是三者之间的任意一个或任意组合,则判定所述输入内容不符合所述 预设规则;If it is not any one or any combination between the three, it is determined that the input content does not meet the preset rule; 若为三者之间的任意一个或任意组合,则判定所述输入内容符合所述预设规则。If it is any one or any combination between the three, it is determined that the input content meets the preset rule. 根据权利要求18所述的计算机可读存储介质,其特征在于,在实现所述控制所述光标移动至所述输入框内的步骤中具体实现以下步骤:The computer readable storage medium according to claim 18, wherein the step of: controlling the movement of the cursor into the input box is implemented in the following steps: 获取所述输入框中与所述输入内容相邻的下一输入起点坐标和光标所在的当前坐标;Obtaining a next input starting point coordinate and a current coordinate where the cursor is located in the input box adjacent to the input content; 将所述输入起点坐标与所述当前坐标之间的距离进行n等分;And dividing the distance between the input starting point coordinate and the current coordinate by n; 获取n-1个等分点的坐标;Get the coordinates of n-1 aliquots; 移动所述光标依次经过n-1个所述坐标对应的坐标点,到达所述输入起点坐标对应的坐标点。Moving the cursor sequentially passes through n-1 coordinate points corresponding to the coordinates, and reaches a coordinate point corresponding to the input starting point coordinates.
PCT/CN2018/077140 2017-11-17 2018-02-24 Input content verification method, device and apparatus, and computer readable storage medium Ceased WO2019095578A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711143841.8 2017-11-17
CN201711143841.8A CN107908433A (en) 2017-11-17 2017-11-17 Verify method, apparatus, equipment and the computer-readable recording medium of input content

Publications (1)

Publication Number Publication Date
WO2019095578A1 true WO2019095578A1 (en) 2019-05-23

Family

ID=61845885

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/077140 Ceased WO2019095578A1 (en) 2017-11-17 2018-02-24 Input content verification method, device and apparatus, and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN107908433A (en)
WO (1) WO2019095578A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109543158A (en) * 2018-10-26 2019-03-29 深圳点猫科技有限公司 A kind of method and electronic equipment of information of being checked character in real time based on application program
CN109657822A (en) * 2018-11-27 2019-04-19 平安科技(深圳)有限公司 A kind of information cuing method and device and storage medium
CN112381905A (en) * 2020-12-01 2021-02-19 北京光启元数字科技有限公司 Color superposition method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080195582A1 (en) * 2007-02-08 2008-08-14 Bellsouth Intellectual Property Corporation Context Based Keyword Search
CN102023869A (en) * 2010-12-30 2011-04-20 深圳联友科技有限公司 Control input value checking method and system
CN105915693A (en) * 2016-06-30 2016-08-31 北京奇虎科技有限公司 Method and device for adding new contact and mobile terminal
CN106055321A (en) * 2016-05-27 2016-10-26 浪潮电子信息产业股份有限公司 A Method of Automatically Converting Upper and Lower Cases When Refreshing FRU Information in DOS System

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080195582A1 (en) * 2007-02-08 2008-08-14 Bellsouth Intellectual Property Corporation Context Based Keyword Search
CN102023869A (en) * 2010-12-30 2011-04-20 深圳联友科技有限公司 Control input value checking method and system
CN106055321A (en) * 2016-05-27 2016-10-26 浪潮电子信息产业股份有限公司 A Method of Automatically Converting Upper and Lower Cases When Refreshing FRU Information in DOS System
CN105915693A (en) * 2016-06-30 2016-08-31 北京奇虎科技有限公司 Method and device for adding new contact and mobile terminal

Also Published As

Publication number Publication date
CN107908433A (en) 2018-04-13

Similar Documents

Publication Publication Date Title
KR102323333B1 (en) Application data processing method and apparatus, and storage medium
CN107451128B (en) Multi-language code adaptation method, device and storage medium
CN108388515B (en) Test data generation method, device, equipment and computer readable storage medium
CN108536745B (en) Shell-based data table extraction method, terminal, equipment and storage medium
CN111324352A (en) Code generation method of application page and related equipment
CN112947830A (en) Popup window display method and device, computer equipment and storage medium
EP3447672B1 (en) Screen capturing method and apparatus
WO2019019628A1 (en) Test method, apparatus, test device and medium for mobile application
WO2018233054A1 (en) Functional control response method, electronic device and computer readable storage medium
CN111800492A (en) Method and device for marking characters in web page, computer equipment and storage medium
CN106330458A (en) A verification code processing method and device
CN111125057B (en) Method and device for processing service request and computer system
KR20160057380A (en) Form processing
CN111130987A (en) Automatic acquisition method and device for AWR report, electronic equipment and storage medium
US11080322B2 (en) Search methods, servers, and systems
WO2019095578A1 (en) Input content verification method, device and apparatus, and computer readable storage medium
US11995291B2 (en) Systems and methods of automatically identifying a date in a graphical user interface
JP7282133B2 (en) Browser display verification method, device, computer equipment and storage medium
CN108470126B (en) Data processing method, device and storage medium
CN108693997A (en) Touch control method and device of intelligent interaction panel and intelligent interaction panel
CN109246468B (en) Video list switching method, device and storage medium based on education system
US20180129300A1 (en) Input-based candidate word display method and apparatus
CN105025367A (en) A page loading method based on digital set-top box
CN111414525B (en) Method, device, computer equipment and storage medium for acquiring data of applet
US20140245214A1 (en) Enabling search in a touchscreen device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18879406

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC 05.10.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18879406

Country of ref document: EP

Kind code of ref document: A1