db-browser
v1.0.2
Published
browser handle localstorage and sessionstorage
Downloads
3
Maintainers
Readme
浏览器端操作localStorage、 sessionStorage, 存储类型String, Boolean, Object, Function。
import {DB} from 'db-browser';
DB.LS.set(name, value); // DB.SS即为sessionStorage
DB.LS.get(name);
DB.LS.remove(name);
DB.LS.clear();