简体   繁体   中英

Dexie.js db instances on iOS Safari

I'm currently trying dexie.js to wrap over indexedDb for a simple usecase on my javascript app. On iOS Safari it seems to be creating multiple instances of a database like so:

通过dexie.js的iOS Safari indexedDb

I figure that dexie is creating a new db instance for every write transaction which is quite odd behavior. Is there a wrapper with cross-browser implementation over indexeddb that works? Especially on iOS Safari!?

If you need something that will work with iOS, I suggest you take a look at localForage on Github. It has a very simple API and was designed for mobile use, so it has fallbacks for devices that might not support IndexedDB.

https://localforage.github.io/localForage/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM