我正在使用 Phonegap 插件在 android 中创建自定义相机应用程序。我想通过请求文件系统来加载 index.html 文件中的图像。为此,我正在使用 Phonegap 文件 API,
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, onFSSuccess, fail);
由于它是Phonegap API,它不能在Phonegap的“deviceready”事件函数之外的其他Javascript函数之外使用。它在说“ LocalFileSytem is not defined
”。
我还想从 Javascript 的其他一些功能访问文件系统。有人知道吗?请帮忙......