1.0.1 • Published 8 years ago

fm-localstorage v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

fm-localstorage

安装

执行命令

npm install --save-dev fm-localstorage

或者在 html 中直接引用

<script src="./dist/fm-localstorage.min.js"></script>

使用方法

commonjs

var DS = require('./fm-localstorage');
DS.set(key,value);

global

<script src="./dist/fm-localstorage.min.js"></script>
DS.set(key,value);

api

DS.set(key, value, expire); //expire 过期时间,单位秒
DS.get(key);
DS.getAll();
DS.remove(key);
DS.clear();

Demo

demo: https://ifootmark.github.io/fm-localstorage/test/index.html

License

MIT

© allmeet.net