【文件属性】:
文件名称:Mobot:JSCSS移动端LocalStorage缓存资源方案
文件大小:9KB
文件格式:ZIP
更新时间:2021-02-04 11:58:06
css mobile js cache localstorage
移动端LocalStorage缓存资源方案
安装
npm install mobot
使用
mobot . timeout = 10000 ; // 请求超时10s
mobot . prefix = 'mobot-' ; // LocalStorage前缀
mobot . expire = 24 * 7 ; // 7天的缓存时间
mobot . require ( [
{
url : 'https://www.xxx.xxx/static/styles.123.css' ,
key : 'styles' ,
unique : '123' ,
cache :
【文件预览】:
mobot-master
----.gitignore(78B)
----package.json(775B)
----.npmrc(36B)
----package-lock.json(1013B)
----mobot.js(6KB)
----LICENSE(1KB)
----logo.svg(4KB)
----README.md(1KB)
----mobot.min.js(2KB)
----.editorconfig(188B)