Method for calling binary element 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: 2015-03-18
KORTIDE LTD
View PDF5 Cites 5 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 J

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
  • Method for calling binary element in Javascript
  • Method for calling binary element in Javascript
  • Method for calling binary element 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 invention provides a method for calling a binary element in a Javascript. The method comprises the following steps that: a Javascript engine obtains a character string in a Javascript sentence, and judges whether the character string is a is a Javascript language node or not; if the character string is not the Javascript language node, an exception interceptor of the Javascript engine intercepts and obtains the character string; whether the binary element corresponding to the character string exists or not is inquired in a loading path of the binary element; and a binary element object corresponding to the character string is created and is encapsulated into a Javascript object. The method achieves the effect of flexibly loading the binary element according to requirements in the Javascript parsing execution process.

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
IPC IPC(8): G06F9/44
Inventor 贾靖陈冬晓宋宇培
Owner KORTIDE 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