CN114327463A - Automatic generation method, device, medium, equipment and program product of webpage form - Google Patents
Automatic generation method, device, medium, equipment and program product of webpage form Download PDFInfo
- Publication number
- CN114327463A CN114327463A CN202111679296.0A CN202111679296A CN114327463A CN 114327463 A CN114327463 A CN 114327463A CN 202111679296 A CN202111679296 A CN 202111679296A CN 114327463 A CN114327463 A CN 114327463A
- Authority
- CN
- China
- Prior art keywords
- webpage
- function
- information
- preset
- parameter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 230000006870 function Effects 0.000 claims description 114
- 238000004590 computer program Methods 0.000 claims description 15
- 238000009877 rendering Methods 0.000 claims description 15
- 238000012545 processing Methods 0.000 claims description 7
- 238000012795 verification Methods 0.000 claims description 7
- 230000004044 response Effects 0.000 claims description 6
- 238000013461 design Methods 0.000 description 17
- 238000011161 development Methods 0.000 description 14
- 230000018109 developmental process Effects 0.000 description 14
- 238000010586 diagram Methods 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000012423 maintenance Methods 0.000 description 3
- 230000000007 visual effect Effects 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 230000008439 repair process Effects 0.000 description 2
- 230000002776 aggregation Effects 0.000 description 1
- 238000004220 aggregation Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000003631 expected effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012552 review Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000033772 system development Effects 0.000 description 1
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The application provides a method, a device, a medium, equipment and a program product for automatically generating a webpage form. According to the automatic generation method of the webpage form, the form description information of the webpage is collected, then the corresponding form element is generated according to the preset form structure description protocol and the form description information, and the webpage form of the webpage is generated according to the form element, so that the automatic generation of the webpage form is achieved.
Description
Technical Field
The present application relates to the field of web page development technologies, and in particular, to a method, an apparatus, a medium, a device, and a program product for automatically generating a web page form.
Background
At present, with the rapid development of internet technology, many systems are generally provided with a background management system for service-side technicians to perform operations such as data query and abnormal data repair.
In the prior art, developers need to develop a background management system separately according to the requirements of each project. However, with the development of the micro-service system and the practice of agile development, the development process of the system is faster and faster, and the time and personnel for developing the background management system are insufficient. On the other hand, developing web pages also has certain difficulties for technicians at the server side. In addition, due to the fact that the technology stacks are different, the learning cost is high, and the gap of the developed webpage effect is large.
Therefore, a background management system web form development method capable of effectively improving the development speed and quality is needed.
Disclosure of Invention
The embodiment of the application provides a method, a device, a medium, equipment and a program product for automatically generating a webpage form of a background management system, so that the speed and the quality of the background management system development are improved.
In a first aspect, an embodiment of the present application provides an automatic generation method of a web form, including:
collecting form description information of a webpage, wherein the form description information comprises function information of a function, and the function is used for supporting a corresponding function of the webpage;
generating a corresponding table element according to a preset form structure description protocol and the form description information, wherein the preset form structure description protocol is used for appointing the relationship between a function and a function module, and the table element is used for displaying the function module on a webpage;
and generating a webpage form of the webpage according to the table element.
In one possible design, the collecting form description information of the web page includes:
and after the server is started, scanning the webpage and collecting the form description information.
In one possible design, the generating a corresponding form element according to a preset form structure description protocol and the form description information includes:
pulling the preset form structure description protocol in the server;
and rendering a corresponding form structure according to the preset form structure description protocol and the form description information to generate the form elements.
In one possible design, after the generating the web page form of the web page according to the form element, the method further includes:
acquiring input information input aiming at the webpage form;
checking the input information according to the preset form structure description protocol, wherein the preset form structure description protocol is also used for appointing the format standard of the input information corresponding to each form element;
and if the verification is passed, submitting the webpage form.
In one possible design, after the submitting the web page form, the method further includes:
after receiving the webpage form, the server executes a function in the form description information according to the reflection capability provided by a programming language;
returning the executed execution result to the webpage end;
and the webpage end renders according to the execution result and displays in the webpage to serve as a response result of the input information.
In one possible design, the preset form structure description protocol includes: function name of the function, parameter of the function, characteristic information of the parameter of the function; the characteristic information of the parameter of the function includes: parameter type, parameter requirements, and parameter ranges.
In a second aspect, an embodiment of the present application provides an apparatus for automatically generating a web form, including:
the system comprises a scanning module, a processing module and a display module, wherein the scanning module is used for collecting form description information of a webpage, the form description information comprises function information of a function, and the function is used for supporting a corresponding function of the webpage;
the processing module is used for generating corresponding table elements according to a preset form structure description protocol and the form description information, the preset form structure description protocol is used for appointing the relationship between the function and the function module, and the table elements are used for displaying the function module on a webpage;
and the rendering module is used for generating a webpage form of the webpage according to the table element.
In one possible design, the scan module is specifically configured to:
and after the server is started, scanning the webpage and collecting the form description information.
In one possible design, the generating a corresponding form element according to a preset form structure description protocol and the form description information includes:
pulling the preset form structure description protocol in the server;
and rendering a corresponding form structure according to the preset form structure description protocol and the form description information to generate the form elements.
In one possible design, the processing module is further specifically configured to:
acquiring input information input aiming at the webpage form;
checking the input information according to the preset form structure description protocol, wherein the preset form structure description protocol is also used for appointing the format standard of the input information corresponding to each form element;
and if the verification is passed, submitting the webpage form.
In one possible design, the apparatus for automatically generating a web form further includes: an execution module specifically configured to:
after receiving the webpage form, the server executes a function in the form description information according to the reflection capability provided by a programming language;
returning the executed execution result to the webpage end;
and the webpage end renders according to the execution result and displays in the webpage to serve as a response result of the input information.
In one possible design, the preset form structure description protocol includes: function name of the function, parameter of the function, characteristic information of the parameter of the function; the characteristic information of the parameter of the function includes: parameter type, parameter requirements, and parameter ranges.
In a third aspect, an embodiment of the present application further provides an electronic device, including:
a processor; and
a memory for storing a computer program for the processor;
wherein the processor is configured to implement any one of the automatic generation methods of the web page form in the first aspect by executing the computer program.
In a fourth aspect, an embodiment of the present application further provides a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements any one of the automatic generation methods of a web form in the first aspect.
In a fifth aspect, an embodiment of the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the computer program implements the method for automatically generating a web form in any one of the first aspect.
According to the method, the device, the medium, the equipment and the program product for automatically generating the webpage form, the form description information of the webpage is collected, then the corresponding form element is generated according to the preset form structure description protocol and the form description information, and the webpage form of the webpage is generated according to the form element, so that the webpage form can be automatically generated.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 is a flow diagram illustrating a method for automatic generation of a web form according to an example embodiment;
FIG. 2 is a flowchart illustrating a method for automatic generation of a web form according to an example embodiment;
FIG. 3 is a diagram illustrating the effect of the automatically generated web page form in the embodiment shown in FIG. 2;
FIG. 4 is a schematic structural diagram of an apparatus for automatically generating a web form according to an example embodiment;
FIG. 5 is a schematic structural diagram of an apparatus for automatically generating a web form according to another exemplary embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device shown in the present application according to an example embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the above-described drawings (if any) are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
At present, with the rapid development of internet technology, many systems are generally provided with a background management system for service-side technicians to perform operations such as data query and abnormal data repair. In the prior art, developers need to develop a background management system separately according to the requirements of each project. However, with the development of the micro-service system and the practice of agile development, the development process of the system is faster and faster, and the time and personnel for developing the background management system are insufficient. On the other hand, developing web pages also has certain difficulties for technicians at the server side. In addition, due to the fact that the technology stacks are different, the learning cost is high, and the gap of the developed webpage effect is large.
For background management system web page form development methods, there are several general solutions at present:
the first mode is realized by providing a network interface, specifically, a page of the background management system is abandoned, only a corresponding network interface is reserved, and the interface is called by a command line when the background management system is used, so that an expected effect is achieved. This approach is less demanding for the developer, but is more demanding for the user, requiring a clear knowledge of how the interface is used. However, it is inconvenient for subsequent maintenance and requires the maintenance of detailed usage documentation for review by team members.
And designing the webpage form system in a visual mode. Specifically, some technicians develop a visual webpage design platform, and can design a webpage form system in a visual manner, and the result of webpage end design is used as the form structure. Although this approach solves certain problems, it has corresponding limitations: the visually designed webpage form needs to be designed according to an interface of a server, and certain communication cost is achieved. Moreover, it is likely that the mismatch between the web page and the interface causes corresponding problems, which may cause unexpected results, and when the interface of the server is changed, the web page also needs to be adjusted accordingly, which requires higher cost.
The embodiment of the application aims to provide a background management system web form development method capable of effectively improving development speed and quality, and particularly provides an automatic generation method for a web form of a background management system. It may be that common form elements of the related management system are normalized and agreed to form a form single structure description protocol. The protocol describes function names of various function functions (functions) in a server, parameters of the function functions and characteristic information of the parameters of the function functions, wherein the characteristic information of the parameters of the function functions comprises: parameter type, parameter requirements, and parameter ranges. Specifically, the protocol describes unique names of functions in the server, all required parameters, and specific information of each parameter: the type of the parameter, the requirement of the parameter, the range or enumeration of the allowed value of the parameter, and whether the parameter is necessary, and according to the information, the webpage can deduce how the form is rendered, thereby achieving the purpose of automatically generating the form.
At the server, automatic extraction of the protocol can be realized, so that automatic scanning and collection of form description information of the webpage can be automatically performed when the system is started, namely, collection and summarization of protocol contents are performed on functions in a project.
In addition, automatic rendering of form pages of the management system can be achieved. Specifically, when the web page is started, a request for obtaining the form structure description protocol content is initiated to the server, then other form elements such as a corresponding input box, a corresponding selection box and the like are rendered on the web page according to the protocol content, and the form can be verified according to the description of the protocol.
And, the automatic execution of the webpage operation can be realized at the server. Specifically, after receiving the form submission, the function corresponding to the form is automatically executed by using the related capabilities such as reflection and the like provided by the programming language, and the result is returned to the webpage end, so that the purpose of automatic execution is achieved. Wherein, the reflection provided by the programming language is self-checking and operating on the internal members when running. That is, the type of this variable can be changed dynamically, determining its role at run-time, these mechanisms being in many high-level programming languages.
In summary, the present application aims to provide a method, an apparatus, a medium, a device, and a program product for automatically generating a web form, which can automatically generate a web form, and compared with the above-mentioned form-less scheme, have better user experience, lower use threshold, and simpler subsequent maintenance. Compared with the second mode, the fixed protocol is agreed in the embodiment of the application, a uniform description protocol is arranged at the webpage end and the server end, on the basis of the protocol, the protocol can be automatically collected and generated according to the server end codes, the webpage form can be automatically generated and rendered by the protocol, the condition that the form and the server end function are inconsistent can be avoided, secondly, the webpage end can be automatically adapted and modified without being modified after the server end function is modified, and the condition that the webpage form and the server end function are inconsistent is also avoided.
Fig. 1 is a flowchart illustrating a method for automatically generating a web form according to an example embodiment. As shown in fig. 1, the method for automatically generating a web form provided by this embodiment includes:
In this step, form description information of the web page is collected, where the form description information includes function information of a function, and the function is used to support a corresponding function of the web page. Specifically, when the system is started, the form description information of the web page may be automatically scanned and collected, that is, the protocol content of the function in the project may be collected and summarized.
And 102, generating a corresponding table element according to a preset form structure description protocol and the form description information.
Specifically, the corresponding form elements may be generated according to a preset form structure description protocol and form description information, where the preset form structure description protocol is used to agree on a relationship between the function and the function module, where the form elements generated after rendering are used to display the function module on the web page, for example, a form selection area, a form content area, a form submission button, and an execution result display area are generated after rendering.
It should be noted that the preset form structure description protocol includes: function name of the function, parameter of the function, characteristic information of the parameter of the function; the characteristic information of the parameter of the function includes: parameter type, parameter requirements, and parameter ranges. Specifically, the protocol describes unique names of functions in the server, all required parameters, and specific information of each parameter: the type of the parameter, the requirement of the parameter, the range or enumeration of the allowed value of the parameter, and whether the parameter is necessary, and according to the information, the webpage can deduce how the form is rendered, thereby achieving the purpose of automatically generating the form.
And 103, generating a webpage form of the webpage according to the table elements.
And then, after generating the corresponding form element according to the preset form structure description protocol and the form description information, continuing to generate the webpage form of the webpage according to the form element. Specifically, when the web page is started, a request for obtaining the form structure description protocol content is initiated to the server, then other form elements such as a corresponding input box, a corresponding selection box and the like are rendered on the web page according to the protocol content, and the web page form of the web page is generated according to the form elements.
In this embodiment, by collecting form description information of a web page, then generating a corresponding form element according to a preset form structure description protocol and the form description information, and then generating a web page form of the web page according to the form element, a page form can be automatically generated. Compared with the second mode, the fixed protocol is agreed in the embodiment of the application, a uniform description protocol is arranged at the webpage end and the server end, on the basis of the protocol, the protocol can be automatically collected and generated according to the server end codes, the webpage form can be automatically generated and rendered by the protocol, the condition that the form and the server end function are inconsistent can be avoided, secondly, the webpage end can be automatically adapted and modified without being modified after the server end function is modified, and the condition that the webpage form and the server end function are inconsistent is also avoided.
Fig. 2 is a flowchart illustrating a method for automatically generating a web form according to an example embodiment of the present application. As shown in fig. 2, the method for automatically generating a web form provided by this embodiment includes:
In steps 201-203, after the server is started, automatic scanning and collection of form description information are automatically performed on the web page, that is, collection and aggregation of protocol content are performed on functions in the project. And then, pulling a preset form structure description protocol in the server. The corresponding form elements may be generated according to a preset form structure description protocol and form description information, where the preset form structure description protocol is used to agree on a relationship between the function and the function module, where the generated form elements after rendering are used to display the function module on the web page, for example, a form selection area, a form content area, a form submission button, and an execution result display area are generated after rendering.
It should be noted that the preset form structure description protocol includes: function name of the function, parameter of the function, characteristic information of the parameter of the function; the characteristic information of the parameter of the function includes: parameter type, parameter requirements, and parameter ranges. Specifically, the protocol describes unique names of functions in the server, all required parameters, and specific information of each parameter: the type of the parameter, the requirement of the parameter, the range or enumeration of the allowed value of the parameter, and whether the parameter is necessary, and according to the information, the webpage can deduce how the form is rendered, thereby achieving the purpose of automatically generating the form.
And step 204, acquiring input information input aiming at the webpage form.
And step 205, checking the input information according to a preset form structure description protocol.
And step 206, if the verification is passed, submitting the webpage form.
In steps 204-206, the input information may be checked according to a preset form structure description protocol, where the preset form structure description protocol is further used to agree on a format standard of the input information corresponding to each form element.
Fig. 3 is a schematic diagram of the effect of the automatically generated web page form in the embodiment shown in fig. 2. As shown in fig. 3, the generated web page form mainly includes: a form selection area, a form content area, a form submission button and an execution result display area.
The mobile phone number can be input into an input box corresponding to the mobile phone number, and the input mobile phone number is verified according to the protocol description of the preset form structure. Specifically, in the preset form structure description protocol, the fixed length and format of the mobile phone number can be appointed, if the content input in the input box corresponding to the mobile phone number meets the fixed length and format requirements in the preset form structure description protocol, the verification is passed, and at the moment, after the submission key is clicked, the webpage form can be successfully submitted. If the content input in the input box corresponding to the mobile phone number does not accord with the fixed length and the format requirement in the preset form structure description protocol, the verification is not passed, and at the moment, even if the submission key is clicked, the webpage form cannot be submitted.
And step 207, executing the function in the form description information according to the reflection capability provided by the programming language.
After receiving the web page form, the server can execute the function in the form description information according to the reflection capability provided by the programming language. Specifically, after receiving the form submission, the function corresponding to the form can be automatically executed by using the related capabilities such as reflection and the like provided by the programming language, and the result is returned to the webpage end, so that the purpose of automatic execution is achieved. Wherein, the reflection provided by the programming language is self-checking and operating on the internal members when running. That is, the type of this variable can be changed dynamically, determining its role at run-time, these mechanisms being in many high-level programming languages.
And step 208, returning the executed execution result to the webpage end.
And step 209, rendering the webpage end according to the execution result, and displaying the webpage as a response result of the input information.
In steps 208-209, after the function in the form description information is executed according to the reflection capability provided by the programming language, an execution result is generated, and the execution result is returned to the web page side, so that the web page side renders according to the execution result and displays in the web page as a response result of the input information.
In this embodiment, the function of the server may be written first, after the server is started, the server protocol is automatically scanned, and corresponding form elements are generated, then, when the web page is opened, the function description protocol content of the server function is pulled, and according to a preset form structure description protocol, a corresponding form structure is rendered, and the form content is verified according to the expression, and after the form is submitted, the server may receive the form submission and execute, where the server performs automatic execution of the related function according to the reflection capability provided by the programming language, and finally, returns the execution result to the web page, and renders the submission result information of the form by the web page. It can be seen that, in the embodiment, the form function description required by the management system webpage is normalized and agreed by presetting the form structure description protocol, so that the unique name of the function in the server side described by the protocol, all the required parameters, and the specific information of each parameter are summarized as follows: the type of the parameter, the requirement of the parameter, the range or enumeration of the allowed value of the parameter, and whether the parameter is necessary information, the webpage can deduce how the form is rendered, thereby achieving the purpose of automatically generating the form. Moreover, the server-side protocol also realizes automatic extraction, and specifically, when the system is started, the protocol content is automatically collected and summarized for the function in the project. The method also realizes automatic rendering of the form page of the management system, specifically, when the web page is started, a request for acquiring the form structure description protocol content is initiated to the server, then, other form elements such as corresponding input boxes, selection boxes and the like are rendered on the page according to the protocol content, and the form can be verified according to the description of the protocol. And finally, the server can also realize automatic execution, and after receiving the form submission, the server automatically executes the function corresponding to the form by utilizing the coherence capability such as reflection and the like provided by the programming language and returns the result to the webpage end, thereby achieving the purpose of automatic execution.
Fig. 4 is a schematic structural diagram of an apparatus for automatically generating a web form according to an example embodiment. As shown in fig. 4, the apparatus 300 for automatically generating a web form according to this embodiment includes:
a scanning module 301, configured to collect form description information of a web page, where the form description information includes function information of a function, and the function is used to support a corresponding function of the web page;
a processing module 302, configured to generate a corresponding table element according to a preset form structure description protocol and the form description information, where the preset form structure description protocol is used to agree on a relationship between a function and a function module, and the table element is used to display the function module on a web page;
and the rendering module 303 is configured to generate a web page form of the web page according to the table element.
In one possible design, the scanning module 301 is specifically configured to:
and after the server is started, scanning the webpage and collecting the form description information.
In one possible design, the generating a corresponding form element according to a preset form structure description protocol and the form description information includes:
pulling the preset form structure description protocol in the server;
and rendering a corresponding form structure according to the preset form structure description protocol and the form description information to generate the form elements.
In one possible design, the processing module 302 is further specifically configured to:
acquiring input information input aiming at the webpage form;
checking the input information according to the preset form structure description protocol, wherein the preset form structure description protocol is also used for appointing the format standard of the input information corresponding to each form element;
and if the verification is passed, submitting the webpage form.
On the basis of the embodiment shown in fig. 4, fig. 5 is a schematic structural diagram of an automatic web form generation apparatus according to another example embodiment shown in the present application. As shown in fig. 5, the apparatus 300 for automatically generating a web form according to this embodiment further includes: the execution module 304 is specifically configured to:
after receiving the webpage form, the server executes a function in the form description information according to the reflection capability provided by a programming language;
returning the executed execution result to the webpage end;
and the webpage end renders according to the execution result and displays in the webpage to serve as a response result of the input information.
In one possible design, the preset form structure description protocol includes: function name of the function, parameter of the function, characteristic information of the parameter of the function; the characteristic information of the parameter of the function includes: parameter type, parameter requirements, and parameter ranges.
The system provided by this embodiment may be used to perform the steps in the above method embodiments. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Fig. 6 is a schematic structural diagram of an electronic device shown in the present application according to an example embodiment. As shown in fig. 6, the present embodiment provides an electronic device 400, including:
a processor 401; and the number of the first and second groups,
a memory 402 for storing executable instructions of the processor, which may also be a flash (flash memory);
wherein the processor 401 is configured to perform the steps of the above-described method via execution of the executable instructions.
Alternatively, the memory 402 may be separate or integrated with the processor 401.
When the memory 402 is a device independent from the processor 401, the electronic device 400 may further include:
a bus 403 for connecting the processor 401 and the memory 402.
The present embodiment also provides a readable storage medium, in which a computer program is stored, and when at least one processor of the electronic device executes the computer program, the electronic device executes the steps of the above method.
The present embodiment also provides a program product comprising a computer program stored in a readable storage medium. The computer program may be read from a readable storage medium by at least one processor of the electronic device, and execution of the computer program by the at least one processor causes the electronic device to perform the steps of the above-described method.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.
Claims (10)
1. A method for automatically generating a web form is characterized by comprising the following steps:
collecting form description information of a webpage, wherein the form description information comprises function information of a function, and the function is used for supporting a corresponding function of the webpage;
generating a corresponding table element according to a preset form structure description protocol and the form description information, wherein the preset form structure description protocol is used for appointing the relationship between a function and a function module, and the table element is used for displaying the function module on a webpage;
and generating a webpage form of the webpage according to the table element.
2. The method for automatically generating a form of a web page according to claim 1, wherein the collecting form description information of the web page comprises:
and after the server is started, scanning the webpage and collecting the form description information.
3. The method for automatically generating a web page form according to claim 2, wherein the generating a corresponding form element according to a preset form structure description protocol and the form description information includes:
pulling the preset form structure description protocol in the server;
and rendering a corresponding form structure according to the preset form structure description protocol and the form description information to generate the form elements.
4. The method for automatically generating a web page form according to claim 3, wherein after the generating a web page form of the web page according to the form element, the method further comprises:
acquiring input information input aiming at the webpage form;
checking the input information according to the preset form structure description protocol, wherein the preset form structure description protocol is also used for appointing the format standard of the input information corresponding to each form element;
and if the verification is passed, submitting the webpage form.
5. The method for automatically generating a web form of claim 4, further comprising, after the submitting the web form:
after receiving the webpage form, the server executes a function in the form description information according to the reflection capability provided by a programming language;
returning the executed execution result to the webpage end;
and the webpage end renders according to the execution result and displays in the webpage to serve as a response result of the input information.
6. The method for automatically generating a web page form according to any one of claims 1 to 5, wherein the preset form structure description protocol comprises: function name of the function, parameter of the function, characteristic information of the parameter of the function; the characteristic information of the parameter of the function includes: parameter type, parameter requirements, and parameter ranges.
7. An apparatus for automatically generating a web form, comprising:
the system comprises a scanning module, a processing module and a display module, wherein the scanning module is used for collecting form description information of a webpage, the form description information comprises function information of a function, and the function is used for supporting a corresponding function of the webpage;
the processing module is used for generating corresponding table elements according to a preset form structure description protocol and the form description information, the preset form structure description protocol is used for appointing the relationship between the function and the function module, and the table elements are used for displaying the function module on a webpage;
and the rendering module is used for generating a webpage form of the webpage according to the table element.
8. An electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored by the memory to implement the method of any of claims 1-6.
9. A computer-readable storage medium having computer-executable instructions stored therein, which when executed by a processor, are configured to implement the method of any one of claims 1-6.
10. A computer program product comprising a computer program which, when executed by a processor, implements the method of any one of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111679296.0A CN114327463A (en) | 2021-12-31 | 2021-12-31 | Automatic generation method, device, medium, equipment and program product of webpage form |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111679296.0A CN114327463A (en) | 2021-12-31 | 2021-12-31 | Automatic generation method, device, medium, equipment and program product of webpage form |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114327463A true CN114327463A (en) | 2022-04-12 |
Family
ID=81022345
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111679296.0A Pending CN114327463A (en) | 2021-12-31 | 2021-12-31 | Automatic generation method, device, medium, equipment and program product of webpage form |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114327463A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050132285A1 (en) * | 2003-12-12 | 2005-06-16 | Sung-Chieh Chen | System and method for generating webpages |
CN110597511A (en) * | 2019-08-19 | 2019-12-20 | 深圳木成林科技有限公司 | Page automatic generation method, system, terminal equipment and storage medium |
WO2021008030A1 (en) * | 2019-07-12 | 2021-01-21 | 平安科技(深圳)有限公司 | Web form configuration method and device, and computer readable storage medium |
US20210149637A1 (en) * | 2019-11-15 | 2021-05-20 | Foresight Data Systems LLC | Plugin-Oriented Functional Programming System |
CN113051269A (en) * | 2021-03-22 | 2021-06-29 | 中国工商银行股份有限公司 | Form configuration method and device |
CN113760287A (en) * | 2021-08-25 | 2021-12-07 | 山东浪潮通软信息科技有限公司 | Form creating method and device based on JSON structure |
-
2021
- 2021-12-31 CN CN202111679296.0A patent/CN114327463A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050132285A1 (en) * | 2003-12-12 | 2005-06-16 | Sung-Chieh Chen | System and method for generating webpages |
WO2021008030A1 (en) * | 2019-07-12 | 2021-01-21 | 平安科技(深圳)有限公司 | Web form configuration method and device, and computer readable storage medium |
CN110597511A (en) * | 2019-08-19 | 2019-12-20 | 深圳木成林科技有限公司 | Page automatic generation method, system, terminal equipment and storage medium |
US20210149637A1 (en) * | 2019-11-15 | 2021-05-20 | Foresight Data Systems LLC | Plugin-Oriented Functional Programming System |
CN113051269A (en) * | 2021-03-22 | 2021-06-29 | 中国工商银行股份有限公司 | Form configuration method and device |
CN113760287A (en) * | 2021-08-25 | 2021-12-07 | 山东浪潮通软信息科技有限公司 | Form creating method and device based on JSON structure |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106648690B (en) | Automatic code generation method and device | |
CN110347953B (en) | Page generation method, page generation device, computer equipment and storage medium | |
CN104881318B (en) | A kind of interface call method, device and terminal | |
CN110955428A (en) | Page display method and device, electronic equipment and medium | |
CN110955409B (en) | Method and device for creating resources on cloud platform | |
CN105843800A (en) | DOI-based language information display method and device | |
KR20190095099A (en) | Transaction system error detection method, apparatus, storage medium and computer device | |
CN111666201A (en) | Regression testing method, device, medium and electronic equipment | |
CN113760763A (en) | Software testing method, device, server and system | |
CN104750372A (en) | File sharing method and device | |
CN114116441A (en) | UI (user interface) testing method and device, electronic equipment and storage medium | |
CN110727429A (en) | Front-end page generation method, device and equipment | |
WO2016122508A1 (en) | Test generation for browser-based user interface | |
US9104573B1 (en) | Providing relevant diagnostic information using ontology rules | |
CN114327463A (en) | Automatic generation method, device, medium, equipment and program product of webpage form | |
CN114741144B (en) | Web-side complex form display method, device and system | |
CN109101429A (en) | A kind of method and device of the browser page debugging of set-top box | |
CN112860698B (en) | Form processing method, form processing device, electronic equipment and computer readable storage medium | |
CN114928566A (en) | Client function testing method and device, storage medium and electronic equipment | |
CN113626392A (en) | Method and device for updating document data, electronic equipment and storage medium | |
CN108632370B (en) | Task pushing method and device, storage medium and electronic device | |
CN111639288A (en) | Method and device for exporting files from webpage courseware, electronic equipment and storage medium | |
JP2005122398A (en) | Dynamic document generating program, recording medium thereof, dynamic document generating device, and dynamic document generating method | |
CN107346302B (en) | Text conversion method and device | |
CN112052418B (en) | Data configuration method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |