有没有一种方法可以通过phoneGap.js检查我的插件是否存在?我希望我的应用具有条件逻辑,因此如果不存在插件内容,它将不使用插件的内容。
最佳答案
查看window.PhoneGap.resources对象:
window.PhoneGap.resources
Object
• accelerometer: true
• app: true
• base: true
• battery: true
• camera: true
• capture: true
• compass: true
• contact: true
• crypto: true
• device: true
• file: true
• filetransfer: true
• geolocation: true
• media: true
• network: true
• notification: true
• position: true
• storage: true
• __proto__: Object
关于ios - 使用PhoneGap检查插件的存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9205424/