Unlock instant, AI-driven research and patent intelligence for your innovation.

A configuration method and execution method for form validation

A form verification, form-item technology, applied in the direction of digital data authentication, program control devices, instruments, etc., to achieve the effect of less code and easy to use

Active Publication Date: 2022-06-07
观脉互动科技(南通)有限公司
View PDF10 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, if method 3 is adopted, developers will need to write a lot of code to map the received data to the corresponding form elements one by one (as shown in Figure 4-1)

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A configuration method and execution method for form validation
  • A configuration method and execution method for form validation
  • A configuration method and execution method for form validation

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0057] In order to describe in detail the technical content, structural features, achieved objectives and effects of the technical solution, the following detailed description is given in conjunction with specific embodiments and accompanying drawings.

[0058] In this article, elements refer to HTML tags, and attributes refer to attributes in HTML tags. Attributes provide more information about HTML elements, such as the following code This is a link , a is an element and href is an attribute; in the following code Among them, form-item is an element, prop and rules are its attributes, and the corresponding value of this attribute is the content after the equal sign. Binding in this article has the meaning of assignment, which is about to

[0059] Element UI is a set of component libraries implemented with VUE 2.0 as the basic framework, a set of component libraries for developers, designers and product managers, providing supporting design resources to help websites deve...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention provides a configuration method and an execution method of Form form verification, which are used to solve the problem of convenient development. The configuration method includes the steps of: configuring JavaScript code including the following functions: declaring and registering the Element UI component based on VUE, in the VUE The mounted life cycle initializes the instance of the first plug-in; declares the form verification function; configures the html code including the following functions: configures the value of the prop attribute of each Form-Item in the Form; for each Form-Item in the Form: The value of the prop attribute is different from the value of the prop attribute of other Form-Item in the Form, and its form validation rules are respectively bound to the third function of the first plug-in instance; configure the form that is triggered when the submit button of the Form is clicked to submit Validation function. The above-mentioned solution can reduce the amount of code development of the R&D personnel, thereby reducing the R&D time.

Description

technical field [0001] The invention belongs to the field of front-end development, in particular to the field of front-end development of Element UI based on VUE. Background technique [0002] A form is a functional module in a web page. It is common to submit user-input information through a form, such as Figure 5-1 A common form is displayed that prompts and directs user input when they register. This part realizes the collection, verification and prompting of user registration information through the cooperation of html, css and js. [0003] Usually the function logic of the page is as follows Figure 5-2 shown. Usually, developers need to write the corresponding input verification code and write the corresponding code for each input box of the form (Form) from scratch, so as to realize the form such as Figure 5-2 In this functional scenario, different form elements (such as input boxes) and prompt elements (such as prompts corresponding to input boxes) need to be l...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F21/31G06F16/957G06F9/445G06F9/455
CPCG06F21/31G06F16/9577G06F9/44526G06F9/45529
Inventor 李铮徐志响
Owner 观脉互动科技(南通)有限公司