localforage 对不一样浏览器 使用不一样的缓存策略 , 大大提升了性能 ,IndexedDB,WebSQL 和 localStorage 三种存储模式

  • 支持回调的异步 API;
  • 支持 IndexedDB,WebSQL 和 localStorage 三种存储模式(自动为你加载最佳的驱动程序);
  • 支持 BLOB 和任意类型的数据,让您能够存储图片,文件等等。
  • 支持 ES6 Promises;

  对 IndexedDB 和 WebSQL 的支持使您能够为您的 Web 应用程序存储更多的数据,要比 localStorage 容许存储的多不少。其 API 的无阻塞性质使得您的应用程序更快,不会由于 Get/Set 调用而挂起主线程。html

 

支持浏览器git

 

 

 

 

 

https://github.com/localForage/localForagegithub

 

 

http://www.cnblogs.com/lhb25/p/localforage-offline-storage-improved.htmlweb

相关文章
相关标签/搜索