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

A method to automatically generate and run javascript files

An automatic generation and file technology, applied in the direction of program files, software maintenance/management, program code conversion, etc., to achieve the effect of convenient and fast loading and running

Active Publication Date: 2019-08-20
INST OF ACOUSTICS CHINESE ACAD OF SCI +1
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, due to the large number of pages under development, developers have to repeatedly write a large amount of JavaScript code for different pages to achieve expected functions
Therefore, a lot of repetitive work is caused in the WEB development process

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 method to automatically generate and run javascript files
  • A method to automatically generate and run javascript files
  • A method to automatically generate and run javascript files

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] The basic development work of automatically realizing JavaScript automatic generation and operation and the use of the tools developed by end users according to the method will be further described in detail below through the accompanying drawings and embodiments.

[0034] Such as figure 1 As shown, the method of the present invention relates to four types of files: HTML files, requirement description files, JavaScript tool function set files, and JavaScript files.

[0035] First, the specific steps of developing the basic development work that automatically realizes the automatic generation and operation of JavaScript are as follows, as follows: Figure 4 Shown:

[0036] 1. Write the JavaScript tool function set file. This tool function set mainly includes basic tool functions for operating HTML elements, including responding to timers and events, modifying layout and CSS properties, etc. Part of the JavaScript tool function set is as follows.

[0037] Here, changi...

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 invention relates to an automatic JavaScript file generation and running method. The method includes the steps of 101), compiling a JavaScript tool function set for automatic JavaScript file generation and running, wherein the JavaScript tool function set further includes that a specified id page element changes in position, size, CSS style or substitutable resource file; the specified id page element changes in position, size, CSS style or resource file when a specified event including a mouse event or a player event is triggered; a processing mode of the specified id page element for the event triggering is changed; 102), formulating format requirements on requirement description files; 103), compiling a conversion method according to the formats of the requirement description files, wherein the conversion method includes analyzing the required description files; converting the requirements into different combination conversion of elements and events; generating JavaScript files by invoking operations in compiling of the JavaScript tool function set; executing in HTML files relevant to the requirement description files.

Description

technical field [0001] The invention relates to the fields of computers and the Internet, in particular to a method for automatically generating and running JavaScript files. Background technique [0002] During the WEB development process, developers can write JavaScript codes to adjust HTML page elements, page layout, etc. However, due to the large number of pages under development, developers have to repeatedly write a large amount of JavaScript codes for different pages to achieve expected functions. Therefore, a lot of repetitive work is caused in the WEB development process. Contents of the invention [0003] The object of the present invention is to provide a method for automatically generating and running JavaScript files in order to overcome the above-mentioned defects in the prior art. [0004] In order to achieve the above object, the present invention provides a method for automatically generating and running JavaScript files, the method comprising: [0005]...

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): G06F8/41G06F8/73
Inventor 韩锐王旭郭志川
Owner INST OF ACOUSTICS CHINESE ACAD OF SCI