Form verification method and device, computer readable storage medium and program product
The form verification method uses native JavaScript and custom functions to reduce dependency on external libraries, enhancing flexibility and user experience by performing real-time form verification without server latency.
Patent Information
- Application Number
- CN202411427400.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-12
- Publication Date
- 2024-12-31
AI Technical Summary
Existing form validation libraries rely heavily on third-party JavaScript frameworks, leading to increased project loading times, maintenance costs, limited flexibility, and poor asynchronous validation support, which affects user experience and system responsiveness.
A form verification method utilizing native JavaScript to generate standard validation functions, custom validation functions based on preset interfaces, and real-time monitoring to reduce dependency on external libraries, enhance flexibility, and perform asynchronous verification without server latency.
This approach reduces loading times, maintenance costs, and improves user experience by providing efficient, flexible, and accurate form verification with real-time feedback, minimizing server load.
Smart Images

Figure CN119227655A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a form verification method, device, computer-readable storage medium, and program product. Background Art
[0002] This section is intended to provide a background or context to the embodiments of the application that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
[0003] Existing form validation libraries or frameworks usually rely on specific JavaScript libraries or frameworks such as jQuery, AngrS or Beact, which increases the burden of third-party dependencies on the project and may lead to longer project loading time and increased maintenance costs.
[0004] In addition, existing form validation libraries have the following technical defects: 1) They often lack sufficient flexibility when dealing with complex validation. For example, they may not be convenient for customizing validation rules, or have limitations in asynchronous data validation, especially when interaction with the server is required to confirm data validity due to reliance on specific JavaScript frameworks; 2) They limit cross-platform compatibility and flexibility, and increase the complexity of the project. When dealing with complex validation logic, these libraries often provide limited customization options, which makes it difficult for developers to meet complex validation requirements in specific business scenarios; 3) Lack of asynchronous validation support, which means that some validation must be performed on the server, which not only increases network latency, but may also bring unnecessary server load, affecting user experience and system responsiveness.
[0005] Therefore, there is an urgent need to propose a form verification method, device, computer-readable storage medium and program product that can solve the technical drawbacks of the prior art. Summary of the invention
[0006] Multiple aspects of the present application provide a form verification method, device, computer-readable storage medium and program product to achieve efficient and accurate form verification.
[0007] In one aspect of the present application, a form verification method is provided, the method comprising:
[0008] In response to the form verification request, obtain the form to be verified;
[0009] Based on the form to be verified, determine a form verification function library;
[0010] The form to be verified is verified based on the form verification function library to generate a form verification result.
[0011] Furthermore, the method further comprises: clustering the verification form items in advance to generate a form class; generating a form item verification function for the verification form items in the form class; and generating the form verification function library based on the form item verification function and its dependency.
[0012] Furthermore, based on the form item verification functions and their dependencies, generating the form verification function library includes: determining the verification process of the form items based on the dependencies between the form items; and generating the form verification function library based on the verification process and the form item verification functions.
[0013] Furthermore, for the verification form items in the form class, a form item verification function is generated, including: generating a standard form item verification function based on native JavaScript; and / or generating a custom form item verification function based on a preset function interface or a preset UI configuration interface.
[0014] Furthermore, based on the preset function interface of the client, a custom form item validation function is generated, including: obtaining the input parameter format and output parameter format of the standard form item validation function; based on the preset function interface of the client, generating the custom form item validation function according to the input parameter format and output parameter format.
[0015] Furthermore, based on the form item, the form to be verified is verified based on the form verification function library, and after generating a form verification result, the method also includes: if the form verification result is that the form verification is passed, the form verification result is displayed on the display interface of the client according to a preset form verification passed format; if the form verification result is that the form verification is not passed, the form verification result is displayed on the display interface of the client according to a preset form verification not passed format.
[0016] Furthermore, in response to the form verification request, obtaining the form to be verified includes: monitoring the form input status in real time; and obtaining the form to be verified when the form input status is input.
[0017] Further, when the form input state is input, obtaining a form to be verified includes: when the form input state is input, obtaining an initial form; decrypting the initial form according to a preset form decryption rule to determine a form to be verified.
[0018] In another aspect of the present application, a form verification device is provided, the device comprising:
[0019] An acquisition unit, used to acquire a form to be verified in response to a form verification request;
[0020] A determination unit, configured to determine a form verification function library based on the form to be verified;
[0021] A generating unit is used to verify the form to be verified based on the form verification function library and generate a form verification result.
[0022] Another aspect of the present application provides an electronic device, the device comprising:
[0023] at least one processor; and
[0024] a memory communicatively connected to the at least one processor; wherein,
[0025] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the form verification method as described above.
[0026] In another aspect of the present application, a computer-readable storage medium is provided, on which computer program instructions are stored. The computer program instructions can be executed by a processor to implement the form verification method.
[0027] Another aspect of the present application provides a computer program product, including a computer program, wherein the computer program implements the form verification method when executed by a processor.
[0028] This application proposes a form verification method, which overcomes the technical problems of strong dependence, poor flexibility and low asynchronous processing fluency in the prior art through lightweight design concept and high scalability, and significantly improves the performance of form verification and user experience.
[0029] Among them, in this application, a standard form item validation function is generated based on native JavaScript, avoiding dependence on external libraries, thereby reducing the maintenance cost of loading time of form validation rules;
[0030] Among them, the present application also generates a custom form item verification function based on the preset function interface or preset UI configuration interface of the client, allowing operation and maintenance personnel to easily add a custom form item verification function according to actual form verification requirements, greatly improving the flexibility and scope of application of the library;
[0031] Furthermore, the present application monitors the form input status in real time; when the form input status is input, the form to be verified is obtained; the form to be verified can be verified without the user's awareness, and the server-side data verification is performed without affecting the user experience, thereby realizing the real-time form verification function and reducing delays and server pressure;
[0032] Furthermore, the present application proposes that if the form verification result is that the form verification is passed, the form verification result is displayed on the display interface of the client according to the preset form verification passed format; if the form verification result is that the form verification is not passed, the form verification result is displayed on the display interface of the client according to the preset form verification not passed format; by providing real-time feedback on the form verification result, the beneficial effect of achieving data entry accuracy and effectiveness is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present application, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0034] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
[0035] Figure 1 A flowchart of a form verification method provided in an embodiment of the present application;
[0036] Figure 2 A flowchart of a form verification method provided in another embodiment of the present application;
[0037] Figure 3 A schematic diagram of the structure of a form verification device provided in yet another embodiment of the present application;
[0038] Figure 4 A schematic diagram of the structure of an electronic device suitable for implementing the solution in the embodiments of the present application;
[0039] The same or similar reference numerals in the drawings represent the same or similar components. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0041] In a typical configuration of the present application, the terminal and the equipment of the service network each include one or more processors (CPU), input / output interface, network interface and memory.
[0042] Memory may include non-permanent storage in a computer-readable storage medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable storage medium.
[0043] Computer readable storage media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer program instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0044] The present application embodiment provides a form verification method, characterized in that the method includes:
[0045] In response to the form verification request, obtain the form to be verified;
[0046] Based on the form to be verified, determine a form verification function library;
[0047] The form to be verified is verified based on the form verification function library to generate a form verification result.
[0048] In actual scenarios, the execution subject of the method can be a user device, or a device formed by integrating a user device and a network device through a network, or an application running on the above device. The user device includes but is not limited to various terminal devices such as computers, mobile phones, tablet computers, smart watches, and bracelets. The network device includes but is not limited to network hosts, single network servers, multiple network server sets, or cloud computing-based computer sets, which can be used to implement some processing functions when setting an alarm. Here, the cloud is composed of a large number of hosts or network servers based on cloud computing, where cloud computing is a type of distributed computing, a virtual computer composed of a group of loosely coupled computer sets.
[0049] Embodiment 1
[0050] In order to achieve the beneficial effect of reducing dependence on external libraries and thereby reducing the loading time and maintenance cost of form validation rules, the present application proposes a form item validation function generation method, the method comprising: generating a standard form item validation function based on native JavaScript.
[0051] The standard form item validation function generated based on this embodiment has the following beneficial effects: 1) there is no need to load additional libraries or frameworks, which reduces the loading time of the validation function and improves system performance and overall validation efficiency; 2) users can integrate the function into any project using native JavaScript according to actual needs without considering the proportion of project resources.
[0052] Embodiment 2
[0053] In order to enable operation and maintenance personnel to easily add corresponding form validation rules according to actual form validation requirements, thereby improving the flexibility and applicability of the library, the present application proposes a form item validation function generation method, the method comprising: generating a custom form item validation function based on a preset function interface or a preset UI configuration interface of the client.
[0054] In one embodiment, before generating the custom form item validation function, the method further includes: based on the target form item to be validated, determining whether there is a standard form item validation function; if so, obtaining the input parameter format and output parameter format of the standard form item validation function; based on the preset function interface of the client, generating the custom form item validation function according to the input parameter format and the output parameter format.
[0055] It should be understood that the standard form item verification function described in this embodiment may be a standard form item verification function generated based on the form item verification function generation method described in Embodiment 1, or may be a standard form item verification function generated based on other methods.
[0056] Furthermore, in actual application scenarios, regardless of whether there is a standard form item validation function, it is necessary to ensure that any two form validation rules (standard form item validation function or custom form item validation function) comply with the same input parameter and output parameter convention to ensure the consistency and predictability of the form validation rules, so that the consistency of each form validation function
[0057] For example, when validating the user name text form item, the input parameter of the corresponding standard validation function is letters with at least 10 characters, and the output parameter is 1 (form item validation passed) and 0 (form item validation failed); then the input and output parameters of the custom form validation function should also be as above.
[0058] Based on the custom form item generation rules proposed in this embodiment, users can customize, add and generate form item validation functions according to actual application scenarios and requirements, without being limited to the form item validation functions provided by a fixed function library.
[0059] Embodiment 3
[0060] like Figure 1 As shown, the embodiment of the present application proposes a form verification method, which is applied to a client and includes:
[0061] Step S301, in response to a form verification request, obtaining a form to be verified;
[0062] Step S302: based on the form to be verified, determine the form items of the form to be verified;
[0063] Step S303: Based on the form item and according to the preset form validation rule, the form item validation function is called to validate the form to be validated, and a form validation result is generated.
[0064] The form item verification function in this embodiment is generated based on the form item verification function generation method described in the first embodiment and / or the second embodiment.
[0065] In one embodiment, in response to the form validation rule, obtaining the form to be validated includes: monitoring the form input status in real time; when the form input status is input, obtaining the form to be validated. That is, as long as it is detected that there is a form item input, the validation function for the form item is called to validate the form item; that is, asynchronous validation of the form item is implemented.
[0066] Specifically, when verifying the form item of username text, asynchronous verification of the form item can be achieved by using ajax to bind the username text box to a mouse out-of-focus event, and using ajax in the event to submit the username text for verification. When the user's mouse leaves the username text box, the browser automatically sends a form verification request. When filling in other information, the system will still send the form to be verified to the web end to prompt whether the information is repeated. This can reduce resource usage and only require modifying the username. Finally, all form items can be submitted only after the verification is passed.
[0067] In one embodiment, multiple form items in a form to be verified may have dependencies. In order to verify this type of form items, the present application proposes determining a verification function of the form item based on the form item; determining a verification process of the form item based on the dependencies between the form items; verifying the form to be verified based on the verification process and the form item verification function to determine a form verification result; and ensuring the accuracy of the form verification result.
[0068] In one of the embodiments, in order to facilitate users to directly see the verification results of form items and promptly correct form items that have not passed the verification, this embodiment proposes to call a preset form item verification function to verify the form to be verified based on the form item according to the preset form verification rules. After the form verification result is generated, the method also includes: if the form verification result is that the form verification passes, the form verification result is displayed on the display interface of the client according to the preset form verification pass format; if the form verification result is that the form verification fails, the form verification result is displayed on the display interface of the client according to the preset form verification fails format.
[0069] The present embodiment does not limit the language and language environment of the form verification result, and those skilled in the art may select different language types or language environments according to different needs.
[0070] In one embodiment, when the form input state is input, a form to be verified is obtained, including: when the form input state is input, an initial form is obtained; and the initial form is decrypted according to a preset form decryption rule to determine the form to be verified.
[0071] Among them, when the form input status is input, after obtaining the initial form, the method also includes: determining whether the initial form is encrypted; if the initial form is encrypted, decrypting the initial form according to a preset form decryption rule to determine the form to be verified.
[0072] It should be understood that the form decryption rules described in the present application may include but are not limited to secret key decryption type and / or security verification type; when the form decryption rule is a secret key decryption type, the preset form decryption rule corresponds to the form encryption rule for encrypting and generating the initial form.
[0073] The form verification method proposed in this embodiment monitors the form input status in real time before the form to be verified is submitted to the server, and calls the form item verification function locally on the client. During the process of the user inputting the form to be verified, any form item in the form to be verified is verified, thereby improving the efficiency of form verification and the accuracy of form input.
[0074] Embodiment 4
[0075] like Figure 2 As shown, this embodiment provides a form verification method, which includes:
[0076] Step S401: In response to a form verification request, obtain a form to be verified;
[0077] Step S402: based on the form to be verified, obtain a preset form function library;
[0078] Step S403: verify the form to be verified based on the form function library to generate a form verification result.
[0079] In one embodiment, the method further includes: clustering the verification form items in advance to generate a form class; generating a form item verification function for the verification form items in the form class; and generating the form verification function library based on the form item verification function and its dependencies.
[0080] The form verification method proposed in this embodiment pregenerates a form verification function library based on the form items in the form to be verified and the dependencies between the form items; when a form verification request is received, the corresponding form verification function library can be called to verify the form to be verified, thereby improving the efficiency and accuracy of form verification.
[0081] Embodiment 5
[0082] Figure 3 A form verification device provided in an embodiment of the present application is shown, the device comprising:
[0083] An acquisition unit, used to acquire a form to be verified in response to a form verification request;
[0084] A determination unit, configured to determine a form verification function library based on the form to be verified;
[0085] A generating unit is used to verify the form to be verified based on the form verification function library and generate a form verification result.
[0086] Embodiment 6
[0087] Based on the same inventive concept, an electronic device is also provided in an embodiment of the present application, and the method corresponding to the electronic device may be the form verification method in the aforementioned embodiment, and its principle of solving the problem is similar to that of the method. The electronic device provided in an embodiment of the present application includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the methods and / or technical solutions of the aforementioned multiple embodiments of the present application.
[0088] The electronic device may be a user device, or a device formed by integrating a user device and a network device through a network, or may be an application running on the above device. The user device includes but is not limited to various terminal devices such as computers, mobile phones, tablet computers, smart watches, and bracelets. The network device includes but is not limited to network hosts, single network servers, multiple network server sets, or cloud computing-based computer sets, which can be used to implement some processing functions when setting an alarm. Here, the cloud is composed of a large number of hosts or network servers based on cloud computing, where cloud computing is a type of distributed computing, a virtual computer composed of a group of loosely coupled computer sets.
[0089] Figure 4 The structure of an electronic device suitable for implementing the method and / or technical solution in the embodiment of the present application is shown, and the device 400 includes a central processing unit (CPU, Central Processing Unit) 401, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM, Read Only Memory) 402 or the program loaded from the storage part 408 to the random access memory (RAM, Random Access Memory) 403. In RAM403, various programs and data required for system operation are also stored. CPU 401, ROM 402 and RAM 403 are connected to each other through bus 404. Input / output (I / O, Input / Output) interface 405 is also connected to bus 404.
[0090] The following components are connected to the I / O interface 405: an input section 406 including a keyboard, a mouse, a touch screen, a microphone, an infrared sensor, etc.; an output section 407 including a cathode ray tube (CRT), a liquid crystal display (LCD), an LED display, an OLED display, etc., and a speaker, etc.; a storage section 408 including one or more computer-readable storage media such as a hard disk, an optical disk, a magnetic disk, a semiconductor memory, etc.; and a communication section 409 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet.
[0091] In particular, the methods and / or embodiments in the embodiments of the present application may be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program includes program code for executing the method shown in the flowchart. When the computer program is executed by the central processing unit (CPU) 401, the above functions defined in the method of the present application are executed.
[0092] Embodiment 7
[0093] Another embodiment of the present application further provides a computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions can be executed by a processor to implement the methods and / or technical solutions of any one or more embodiments of the present application described above.
[0094] Specifically, the present embodiment can adopt any combination of one or more computer-readable storage media. Computer-readable storage media can be computer-readable signal media or computer-readable storage media. Computer-readable storage media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this document, computer-readable storage media can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0095] Computer readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable storage medium other than a computer readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device.
[0096] The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0097] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0098] The flow chart or block diagram in the accompanying drawings shows the possible architecture, function and operation of the equipment, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated system for hardware that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0099] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0100] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or page components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0101] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0102] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0103] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0104] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
[0105] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in a device claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
Claims
1. A form verification method, characterized in that: The method comprises: In response to the form verification request, obtain the form to be verified; Based on the form to be verified, determine a form verification function library; The form to be verified is verified based on the form verification function library to generate a form verification result.
2. The form verification method according to claim 1, characterized in that: The method further comprises: Cluster the verification form items in advance and generate form classes; For the verification form items in the form class, generating a form item verification function; The form validation function library is generated based on the form item validation functions and their dependencies.
3. The form verification method according to claim 2, characterized in that: Based on the form item validation function and its dependencies, the form validation function library is generated, including: Determining a verification process for the form items based on the dependency relationship between the form items; Based on the verification process and the form item verification function, the form verification function library is generated.
4. The form verification method according to any one of claims 1 to 3, characterized in that: For the verification form items in the form class, a form item verification function is generated, including: Generate standard form item validation functions based on native JavaScript; and / or, Generate a custom form item validation function based on a preset function interface or a preset UI configuration interface.
5. The form verification method according to claim 4, characterized in that: Based on the preset function interface of the client, a custom form item validation function is generated, including: Obtaining the input parameter format and output parameter format of the standard form item validation function; Based on the preset function interface of the client, a custom form item validation function is generated according to the input parameter format and the output parameter format.
6. The form verification method according to claim 5, characterized in that: In response to the form verification request, obtain the form to be verified, including: Monitor form input status in real time; When the form input state is input, the form to be verified is obtained.
7. The form verification method according to claim 6, characterized in that: When the form input state is already entered, the form to be verified is obtained, including: When the form input state is already entered, the initial form is obtained; The initial form is decrypted according to a preset form decryption rule to determine the form to be verified.
8. The form verification method according to claim 7, characterized in that: Based on the form item, the form to be verified is verified based on the form verification function library, and after generating a form verification result, the method further includes: If the form verification result is that the form verification is passed, the form verification result is displayed on the display interface of the client according to a preset form verification pass format; If the form verification result is that the form verification fails, the form verification result is displayed on the display interface of the client according to a preset form verification failure format.
9. A form verification device, characterized in that: The equipment includes: An acquisition unit, used to acquire a form to be verified in response to a form verification request; A determination unit, configured to determine a form verification function library based on the form to be verified; A generating unit is used to verify the form to be verified based on the form verification function library and generate a form verification result.
10. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.
11. A computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions can be executed by a processor to implement the method according to any one of claims 1 to 8.
12. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
