Javascript phonegapp-未定义本地文件系统
我从phonegap builder页面下载了示例应用程序,并编辑了index.js文件,如下所示:Javascript phonegapp-未定义本地文件系统,javascript,cordova,Javascript,Cordova,我从phonegap builder页面下载了示例应用程序,并编辑了index.js文件,如下所示: onDeviceReady: function() { alert("DEVICE-READY!") window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, this.onFSSuccess, this.onError); app.receivedEvent('deviceready');
onDeviceReady: function() {
alert("DEVICE-READY!")
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, this.onFSSuccess, this.onError);
app.receivedEvent('deviceready');
}
deviceready事件被触发,但我仍然得到一个错误,即没有定义LocalFileSystem。我使用ripple仿真器在chrome中运行这个
你知道我做错了什么吗?如果你不能使用ripple访问文件系统,请在真实设备上试用,或者使用genymotion模拟android设备: