我想讓ionic framework應用程序啓動,並且我想在其中使用file system API。Phonegap插件在離子框架上?
我跑了以下內容:
$ionic plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-file.git
這似乎已經沒有一個錯誤完成。然而,當我使用本地鉻運行應用程序,我在這條線得到一個錯誤:
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, ...
檢查控制檯,我看到的錯誤是:
ReferenceError: LocalFileSystem is not defined
我的問題是:什麼是在離子項目中使用文件系統庫的正確方法,如果甚至可能的話?