Component constructing method and device, component calling method and device

A construction method and component technology, applied in the direction of program control devices, user interface execution, etc., to achieve the effects of high component reusability, shortened product launch cycle, and simple calling methods

Active Publication Date: 2016-12-21
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Based on this, it is necessary to provide a component construction method and device that can expand the scope of use for the problem that the traditional way of building components is difficult to popularize and use

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
  • Component constructing method and device, component calling method and device
  • Component constructing method and device, component calling method and device
  • Component constructing method and device, component calling method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0045] It can be understood that the terms "first", "second" and the like used in the present invention can be used to describe various elements herein, but these elements are not limited by these terms. These terms are only used to distinguish one element from another element.

[0046] figure 1 It is a schematic diagram of the internal structure of the electronic device in one embodiment. Such as figure 1 As shown, the electronic device includes a processor connected through a system bus, a non-volatile storage medium, an internal memory, a network interface, a display screen and an input devic...

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 a component constructing method and device, a component calling method and device. The component constructing method comprises the following steps: acquiring a functional requirement; expanding at a model layer model and a control layer controller according to the functional requirement, using the grammar of the script library React for constructing a user interface to compile the functional requirement, thereby obtaining the corresponding source code; compiling the source code as a native script; packaging the native script as the React component through the adoption of an asynchronous module loading mechanism AMD standard. Through the adoption of the above component constructing method and device and the component calling method and device, the grammar of the React is used for compiling the source code corresponding to the functional requirement, and the source code is compiled as the native script, the native script is packaged as the React component through the AMD standard; while in use, the React component can be used through simple calling, the usage range is enlarged, and the reusability of the component is high; a developer can use the React component without specially learning the React, and the learning threshold of the developer is lowered.

Description

technical field [0001] The invention relates to the field of computer applications, in particular to a component building method and device, and a component calling method and device. Background technique [0002] AngularJS is a structured front-end MVVM (Model View ViewModel) framework built on lightweight jQuery for building single-page web applications. AngularJS is a large and comprehensive framework. It costs a lot of learning to develop components, and the performance of two-way data binding drops sharply in complex interaction situations. [0003] React is a JavaScript framework launched by Fackbook. React is a library for building componentized UI (User Interface, user interface) and a front-end interface development tool. Because React is only responsible for the view layer, developers need to spend a lot of energy on the model and controller layers, and the code written in JSX syntax needs to be compiled into native JavaScript syntax through the packaging tools we...

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 Applications(China)
IPC IPC(8): G06F9/44
CPCG06F9/451
Inventor 伍林
Owner TENCENT TECH (SHENZHEN) 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