Coder Social home page Coder Social logo

curd-of-indexdb's Introduction

什么是IndexDb? The Indexed Database API, or IndexedDB (formerly WebSimpleDB), is a W3C recommended web browser standard interface for a transactional local database of JSON objects collections with indices. W3C issued its final recommendation for the IndexedDB interface on January 8, 2015. 很抱歉,我没找到中文的注解。

如何使用? 1、将indexDb.js引入 2、使用 dbObject.init({'database1'},'version1','table1'});初始化数据库、表 并获取全局dbObject对象 3、使用dbObject.put(jsonObject,id,'add')来插入数据 4、使用dbObject.put(jsonObject,id,'update')来更新数据 5、使用dbObject.delect(id)来删除数据 6、使用dbObject.select(key)来获取数据,key不存在则获取所有数据 7、使用dbObject.clear()来删除表内所有数据

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.