Method for calling binary element in Javascript
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 st...
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Patent |
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | 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. |
---|