tangshuang / indb Goto Github PK
View Code? Open in Web Editor NEWMaybe the best way to understand and use indexedDB. 😄😄😄
Maybe the best way to understand and use indexedDB. 😄😄😄
总结原因:
"object stores was not found" 原因:1: store的创建时在 open db后的upgradeneeded事件中触发的,但chrome54并不会触发upgradeneeded事件,需要每次自身版本号自增才可触发,解决此问题;
另外:初始化后,api方法的调用时机,确保后续创建事物,请求数据等操作,是发生在open sucess回调后处理。
其它原因:1:indexdb 兼容性 2: 通过事物操作数据 应放在事物的complete中,而非 当前请求 reques.onsucess 中,因为reques.onsucess成功后,事物仍有可能失败。3: safari 手机隐私模式无权限访问
at t.iterate.direction
(xxxx.js)
at onTouch
(xxxx.js)
at IDBRequest.objectStore.then.s.onsuccess
(xxxx.js)
后来我阅读mdn文档,发现 事物的commit方法 存在兼容性,而且indexdb的事物是自动提交的,不需要人为干预
感觉您的教程让使用indexdb更加方便,但是目前我还是有一些不清楚的地方,比如如何做分页,尤其是当我们多条件查询的时候做分页,能否添加一下示例,感谢~
What is the open source license? I have developed my own open source tool based on this component and would like to confirm the exact open source license. Thank you.
源码: src/utils 里的modifyError 方法未做判空,经测试发现 部分浏览器 e.message 为null 或undefined ,所以源码中 e.message.indexOf 方法报错
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.