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

JavaScript event extension method supporting asynchronous call

A technology of asynchronous calling and extending methods, applied in the direction of program control devices, etc., can solve problems such as difficulties in asynchronous calling, achieve the effect of broadening calling methods and saving computing resources

Active Publication Date: 2016-06-01
ZHENGZHOU SEANET TECH CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The purpose of the present invention is to overcome the relatively difficult defect of asynchronous calls between local components and JavaScript in the prior art, thereby providing a method that can better realize asynchronous calls between local components and JavaScript

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
  • JavaScript event extension method supporting asynchronous call
  • JavaScript event extension method supporting asynchronous call
  • JavaScript event extension method supporting asynchronous call

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] The present invention will be further described now in conjunction with accompanying drawing.

[0031] The method of the present invention is implemented based on WebKit. For ease of understanding, before the method of the present invention is described in detail, a brief description of WebKit is firstly made.

[0032] WebKit is an open source web page typesetting engine. The core of WebKit mainly includes two parts: WebCore and JavaScript engine.

[0033] WebCore is an HTML document typesetting engine responsible for parsing, laying out, and rendering HTML documents. It contains the implementation of DOM (DocumentObjectModule, Document Object Model), and WebCore also has a binding module, which can be bound to the JavaScript engine. In this way, the JavaScript engine can manipulate the DOM module and control the behavior of the web page.

[0034] The JavaScript engine is an interpreter of the JavaScript language, which provides a JavaScript runtime environment and ca...

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 JavaScript event extension method supporting an asynchronous call. The method is realized based on WebKit, and comprises the following steps: extending a name of the JavaScript event according to a naming mode of a DOM event in a WebCore; creating a JavaScript event object according to a creation mode of the JavaScript object in the WebCore; extending the created JavaScript event object into EventTarget; packaging an event in the WebCore into an event object in V8; and compiling and deploying a dynamic library.

Description

technical field [0001] The invention relates to the embedded field, in particular to a JavaScript event extension method supporting asynchronous calling. Background technique [0002] On an embedded device, users can not only obtain information on the Internet through a browser, but also manipulate the device through a browser to interact with local functional components. Web applications based on browsers are gradually emerging. Web applications have the advantages of low development threshold and easy transplantation. When building a web application, an important issue is to extend the interface of the local component to a JavaScript interface for the web application to call. Extending the native component interface to JavaScript has a wide range of needs. Synchronous calls between local components and JavaScript are relatively easy to implement, but due to the need for cross-thread message passing during asynchronous calls, and the need to return results in the form of ...

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
Inventor 胡琳琳王硕郭志川
Owner ZHENGZHOU SEANET TECH CO LTD