【文件属性】:
文件名称:NocaJs:一个可以轻松操作 localStorage 的小型库
文件大小:2KB
文件格式:ZIP
更新时间:2021-06-15 21:39:54
JavaScript
一个可以轻松操作javascript localStorage的小库
#依赖
Noca.js 没有任何依赖
#用法
首先,创建一个新的 Noca 实例:
var foobar = new noca ( ) ;
然后使用以下方法之一:
// all values are stored as string
foobar . update ( name , content ) ;
// Update your variable. If the variable doesn't exist, it will create a new one
// name = name your localStorage variable
// content = the value of your variable
foobar . remove ( name ) ;
//
【文件预览】:
NocaJs-master
----README.md(1KB)
----noca.js(1KB)
----script.js(164B)
----.gitattributes(378B)
----index.html(109B)