cordova插件开发札记

0
39

原文:
Plugin Initialization and Lifetime
One instance of a plugin object is created for the life of each WebView. Plugins are not instantiated until they are first referenced by a call from JavaScript, unlesswith an onload name attribute is set to “true” in config.xml. For example,


如果不加,则插件只有在被首次调用时才会被实例化

留下一个答复

Please enter your comment!
Please enter your name here