我正在使用 WebSQL 数据库将我的数据存储在我的 ionic 应用程序中,但我了解到,如果您使用 LocalStorage,如果智能手机的存储容量不足,数据可能会在 IOS 上丢失。所以我想知道 WebSQL 是否同样如此?
不推荐使用 WebSQL 数据库,因为它已被弃用。网络摘录清楚地说明了以下内容:
Since November 18, 2010, the W3C announced that Web SQL database is a deprecated specification. This is a recommendation for web developers to no longer use the technology as effectively, the spec will receive no new updates and browser vendors aren't encouraged to support this technology. The new alternative is IndexedDB which is already available on Chrome 12+, Firefox 5+ and in IE 10+ as well.
据我所知,如果使用 Cordova,最好使用 SQLite storage plugin用于存储数据。
关于javascript - IOS 是否会在存储容量不足时删除 WebSQL 数据库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37475631/
欢迎光临 OGeek|极客世界-中国程序员成长平台 (https://ogeek.cn/) | Powered by Discuz! X3.4 |