localhistory:将历史记录存储到localStorage

时间:2021-05-25 05:22:55
【文件属性】:
文件名称:localhistory:将历史记录存储到localStorage
文件大小:58KB
文件格式:ZIP
更新时间:2021-05-25 05:22:55
javascript playground history JavaScript 当地历史 localhistory是将历史记录存储到的浏览器库。 防止localStorage异常到达您的代码。 修剪较旧的条目,以避免使localStorage饱和。 约1k缩小并压缩。 没有依赖关系。 localhistory最初是为了向语言游乐场添加历史功能而开发的。 如果您对此感兴趣,请查看。 demo目录中提供了一个的demo 。 安装 从dist目录下载localhistory.min.js 。 将其添加到您的网页: [removed][removed] 用法 localhistory.append(键,条目,[选项],[回调]) 将条目追加到历史记录。 争论 key是一个字符串,用于标识要附加的历史记录。 entry是要附加到历史记录的值。 entry可以是任何值。 [options]是一组可选的键/值对
【文件预览】:
localhistory-master
----.travis.yml(99B)
----.eslintrc(4KB)
----package.json(2KB)
----test()
--------.eslintrc(203B)
--------tests()
--------karma.conf.js(1006B)
----gulpfile.js(3KB)
----LICENSE(1KB)
----dist()
--------localhistory.min.js.map(14KB)
--------localhistory.js.map(13KB)
--------localhistory.js(8KB)
--------localhistory.min.js(3KB)
----src()
--------storage.js(2KB)
--------support.js(881B)
--------index.js(1KB)
--------promisify.js(716B)
----.gitignore(70B)
----demo()
--------.eslintrc(191B)
--------index.js(696B)
--------index.html(640B)
--------jquery-2.1.4.min.js(82KB)
--------index.css(123B)
----README.md(5KB)
----.editorconfig(208B)

网友评论