我尝试将 openDatabase
与 Google Chrome 应用一起使用,但显示以下错误:
Uncaught ReferenceError: openDatabase is not defined
我还在manifest.json中添加了权限(unlimitedStorage
)。
最佳答案
Chrome 应用程序禁用了 WebSQL,如 documentation 中所示。 .
如果您想持久保存数据,请使用chrome.storage
API,IndexedDB
或chrome.fileSystem
API(不要与 HTML5 Filesystem API 混淆!)。
关于javascript - Uncaught ReferenceError : openDatabase is not defined,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13704655/