【文件属性】:
文件名称:localStorage_tools:localstorage工具
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-17 14:56:26
JavaScript
localstorge_tools
localstorage工具
支持函数:
dawn_ls_tools.checkCache('键', '传入的时间和localstorage之间的关系(> | >= | == | <= | <)', '要比对的时间(时间戳,不传表示当前时间)' ) // 判断缓存是否过期
dawn_ls_tools.addCache('键', '值', '存入的时间(时间戳,不传表示当前时间)') // 存值
dawn_ls_tools.getCache('键') // 取值
dawn_ls_tools.delCacheByTime('键', '传入时间(时间戳,不传表示当前时间)') // 当前时间或传入时间 大于 缓存时间,删除对应元素
返回值:
假设当前是chrome浏览器
root = window
root.LS_TRUE = 0;
root.LS_NO_P
【文件预览】:
localStorage_tools-master
----localStorage_tools.min.js(2KB)
----README.md(1KB)
----localStorage_tools.js(3KB)