Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

The method of calling binary components in javascript

A binary and component technology, applied in the direction of program control devices, etc., can solve the problems of time-consuming and memory usage of Javascript engines

Inactive Publication Date: 2018-03-16
KORTIDE LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, if all component information is registered during Javascript initialization, the Javascript engine initialization process is time-consuming and the memory usage is too large

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
  • The method of calling binary components in javascript
  • The method of calling binary components in javascript
  • The method of calling binary components in javascript

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0010] In this preferred embodiment, the CAR component is used as an example of a binary component for illustration, and those skilled in the art can apply this method to other binary components, so as to realize calling the binary component in Javascript.

[0011] The CAR component (Component Assembly Runtime) is a binary component developed by Shanghai Ketai Century Technology Co., Ltd. The CAR component technology is a component-oriented programming model on the Elastos platform (Elastos, a componentized operating system). It defines the standard for calling each other between components, and binary components can describe themselves.

[0012] The CAR component is written in C++ and carries metadata, through which the CAR component can implement a reflection mechanism. The metadata is the data describing the data. The abstraction of the data mainly includes the type information of the data, such as the module information, interface information, class information and other d...

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 present invention provides a method for invoking a binary component in Javascript, the method comprising: the Javascript engine obtains the character string in the Javascript statement and determines whether it is a Javascript language node; if it is not a Javascript language node, the exception interceptor of the Javascript engine intercepts and obtains The string; query whether there is a binary component corresponding to the string from the loading path of the binary component; create a binary component object corresponding to the string and encapsulate it as a Javascript object. This method enables flexible loading of binary components as required during the parsing and execution of Javascript scripts.

Description

technical field [0001] The invention relates to a technology for calling a custom component in Javascript, in particular to a method for calling a binary component in Javascript. Background technique [0002] At present, using a browser as a platform for local applications has been widely used in practical applications. HTML / CSS handles page display and beautification, and Javascript scripts handle page logic. However, Javascript has certain inherent limitations as a scripting language. For security reasons, Javascript scripts do not have the ability to access local resources, and network access is also strictly restricted by the Same Origin Policy. Therefore, When browser-based applications obtain support from external resources and programs, additional browser extensions are required. At present, most browsers use local plug-in extension mechanisms to extend the functions of Javascript scripts. [0003] A feasible strategy for implementing Javascript script calling compon...

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): G06F9/44
Inventor 贾靖陈冬晓宋宇培
Owner KORTIDE LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products