Web front-end code automatic generation method and device

An automatic code generation and code technology, applied in the computer field, can solve problems such as doping business logic, achieve the effect of automatic generation and improve development efficiency

Inactive Publication Date: 2019-08-06
KE COM (BEIJING) TECHNOLOGY CO LTD
View PDF3 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Moreover, in the process of modifying the copied code, because of

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
  • Web front-end code automatic generation method and device
  • Web front-end code automatic generation method and device
  • Web front-end code automatic generation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0040] figure 1 It shows a schematic flowchart of a method for automatically generating web front-end code provided by an embodiment of the present invention, as shown in figure 1 As shown, the method for automatically generating web front-end codes in this embodiment includes:

[0041] S1. Abstract part of the codes of all acquired business mod...

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 embodiment of the invention provides a Web front-end code automatic generation method and device, and the method comprises the steps: abstracting a part of obtained codes with the similarity greater than a preset threshold value in all service modules as a template, and enabling the template to be built in a command line tool which is developed in advance; extracting a part of codes with differences in the template as variables of the template built in the command line tool; when the command line tool receives a command of adding a service module, obtaining parameters of the newly added service module input by a user; and replacing the variable of a template built in the command line tool with the parameter of the newly added service module input by the user, generating a Web front-endcode, and writing the generated Web front-end code into a target project file. According to the embodiment of the invention, the Web front-end code can be quickly and automatically generated, the problem of repeated workload in the business development process is solved, and the development efficiency is improved.

Description

technical field [0001] The embodiment of the present invention relates to the field of computer technology, in particular to a method and device for automatically generating web front-end codes. Background technique [0002] In the process of business development, every time a new business module is added, the developer must complete a series of tasks such as creating a new page, configuring models (models), configuring services (services), configuring routing tables, and configuring menu items to generate Web ( Global Wide Area Network or World Wide Web) front-end code. [0003] When developing multiple business modules, these processes are duplicated for developers, resulting in low development efficiency. Due to the high similarity of each module, in order to improve development efficiency, the current traditional method of generating Web front-end code is to copy the old module code and modify it. [0004] However, because the code files are relatively scattered, when ...

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
IPC IPC(8): G06F8/30G06F8/33
CPCG06F8/30G06F8/33
Inventor 钱学敏
Owner KE COM (BEIJING) TECHNOLOGY CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products