JS engine replacement method and apparatus
The invention provides a JS engine replacement method and apparatus. After outer layer files of private objects are realized and bridge connection of a target JS engine to a webcore is finished, a public interface function of the private objects is defined according to the structure of the target JS...
Saved in:
Main Authors | , , |
---|---|
Format | Patent |
Language | Chinese English |
Published |
07.07.2017
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The invention provides a JS engine replacement method and apparatus. After outer layer files of private objects are realized and bridge connection of a target JS engine to a webcore is finished, a public interface function of the private objects is defined according to the structure of the target JS engine, the transition of intermediate layers of the private objects during JS engine replacement is realized, and the target JS engine runs by calling the public interface function. The public interface function of the private objects is defined, so that the condition that inner layer files containing corresponding private object specific realization functions need to be created in sequence for the private objects in the prior art is avoided, namely, re-modification of each private object realization function is avoided, the development cycle of the JS engine replacement is shortened, and the development cost of the JS engine replacement is reduced.
本发明提供的更换JS引擎的方法及装置,在将私有对象外层文件都实现后,并完成目标JS引擎对webcore的桥接后,通过根据目标JS |
---|---|
Bibliography: | Application Number: CN201710150699 |