عنوان:

‫ذخیره سازی داده ها در کلاینت، ساده و سریع


نویسنده: احمد رجبی
تاریخ: ۱۳۹۷/۱۲/۰۲ ۱۲:۱۵
آدرس: www.dntips.ir

localForage is a fast and simple storage library for JavaScript.localForage uses localStorage in browsers with no IndexedDB or WebSQL.

localforage.setItem('key', 'value', function (err) {
  // if err is non-null, we got an error
  localforage.getItem('key', function (err, value) {
    // if err is non-null, we got an error. otherwise, value is the value
  });
});

:Framework Support

AngularJS

  Angular 4 and up

  Backbone

  Ember

  Vue 

TypeScript:

import localForage from "localforage"; 



مشاهده مطلب اصلی