Code Monkey home page Code Monkey logo

indb's People

Contributors

frustigor avatar tangshuang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

indb's Issues

about license

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.

TypeError: r.transaction.commit is not a function

at t.iterate.direction (xxxx.js)
at onTouch (xxxx.js)
at IDBRequest.objectStore.then.s.onsuccess (xxxx.js)

后来我阅读mdn文档,发现 事物的commit方法 存在兼容性,而且indexdb的事物是自动提交的,不需要人为干预

{"stack":"Error: Failed to execute 'transaction' on 'IDBDatabase': One of the specified object stores was not found.\n at xxx.js

总结原因:
"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 手机隐私模式无权限访问

你好,请问使用select怎么做分页

感觉您的教程让使用indexdb更加方便,但是目前我还是有一些不清楚的地方,比如如何做分页,尤其是当我们多条件查询的时候做分页,能否添加一下示例,感谢~

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.