lawnchair 数据存储

lawnchair 是一个短小的数据存储脚本,主要适合应用于移动端的数据存储

特点

1 创建实例化了一个数组对象

2 底层存储区被抽象为一个统一的接口。

3 可修改的数据集合

var store = new Lawnchair({name:'testing'}, function(store) {

    // Create an object
    var me = {key:'brian'};

    // Save it
    store.save(me);

    // Access it later... Yes even after a page refresh!
    store.get('brian', function(me) {
        console.log(me);
    });
});
  • super micro tiny storage without the nasty sql: pure and delicious json.
  • default build weighs in at 3.4k minified; 1.5 gzip'd!
  • adaptors for any clientside store.
  • designed with mobile in mind.
  • clean and simple api.
  • key/value store ...key is optional.
  • terse syntax for searching/finding.
  • battle tested in app stores and on the open mobile web.
  • framework agnostic. (if not a framework athiest!)
  • mit licensed.

出处 http://brian.io/lawnchair/

posted @ 2015-07-23 06:59  一渡  阅读(204)  评论(0)    收藏  举报