【文件属性】:
文件名称:Lostora.js:支持 Object 或 JSON 的 localStorage 处理程序
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-30 03:16:26
JavaScript
洛斯托拉
支持 Object 或 JSON 的 localStorage 处理程序
用法
安装
应用程序接口
Lostora.set(键,值)
Lostora.set("foo","bar")
console.log(localStorage)
存储 {foo: "bar", 长度: 1}
Lostora.set("baz",{baz:"qux"})
console.log(localStorage)
存储 {baz: "{"baz":"qux"}", foo: "bar", length: 2}
【文件预览】:
Lostora.js-master
----gulpfile.js(834B)
----src()
--------js()
--------jade()
----.gitignore(827B)
----README.md(341B)
----.gitattributes(378B)
----build()
--------index.html(476B)
--------lostora.js(1KB)