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

A method and device for generating a webpage component

A web page component and generation device technology, which is applied in website content management, network data retrieval, other database retrieval, etc., can solve the problems of lack, low page component generation efficiency, time-consuming and labor-intensive, etc., and achieve the effect of improving generation efficiency.

Active Publication Date: 2019-12-24
ADVANCED NEW TECH CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The existing webpage components lack the CSS selector part. Due to the lack of this code part, when it is necessary to adjust the page layout and text typesetting of the webpage components, the only way to rewrite the HTML code content is by using the syntax of JS. This coding process is time-consuming and labor-intensive, resulting in inefficient generation of web components

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 and device for generating a webpage component
  • A method and device for generating a webpage component
  • A method and device for generating a webpage component

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] Embodiments of the present application provide a method and device for generating a web page component.

[0024] In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions 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 The embodiments are only some of the embodiments of the present application, but not all of them. Based on the embodiments in this application, other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall all fall within the protection scope of this application.

[0025] figure 1 It is the process of the method for generating a webpage component in an embodiment of the present application, and the subject of execution of the method may be a browser running the webpage component.

...

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

Embodiments of the invention disclose a web page component generating method and a generating apparatus applying the method, so that a web page component is generated efficiently. The generate method comprises: obtaining JSX code of a web page component; obtaining HTML tags in the JSX code; determining whether there is an HTML tag matching a CSS selector in the obtained HTML tags; and if yes, adjusting a Style attribute of the corresponding HTML tag according to a pattern content of the matched to-be-used CSS selector, to obtain the web page component. It can be seen from the technical solution provided by the foregoing embodiments of the invention that, in the embodiments of the invention, in a process of generating the web page component, the CSS selector is written into the Style attribute of the corresponding HTML tag, so that the generated web page component can be automatically provided with a CSS selector part, and the CSS selector can automatically implement design requirements such as page layout and text composition of a develop for the web page component, and improve generation efficiency of the web page component.

Description

technical field [0001] The present application relates to the technical field of webpage development, in particular to a method and device for generating webpage components. Background technique [0002] Web component is hailed as the future of web development, because it solves the two problems of rapid development and complex interactive interface in the development process of the web presentation layer, enabling developers to develop functional interfaces that can be recycled on the website, the more more and more attention in the industry. [0003] In the prior art, a method for compiling and generating web page components includes the following steps: first, write HTML code content directly through JS syntax, so that HTML code and JS code can coexist in a compatible JSX file; The compatible JSX file is compiled and converted, and the extended HTML tags in the compatible JSX file are converted into common JS objects, so as to obtain the required web page components. ...

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): G06F16/958
Inventor 郝立鑫
Owner ADVANCED NEW TECH CO LTD