我正在使用cordova-plugin-emm-app-config
link开发离子应用程序。当我尝试使用addEventListener
时:
try {
document.addEventListener("deviceready", onDeviceReady, false);
}
catch (Error){
this.error = Error.message;
}
它返回undefined is not an object (evaluating 'this.cordova.plugins')
,但我无法调用onDeviceReady()
函数。
我想知道是什么原因造成的?