has-localstorage:如果支持localStorage则返回true

时间:2021-02-13 14:44:03
【文件属性】:
文件名称:has-localstorage:如果支持localStorage则返回true
文件大小:30.72MB
文件格式:ZIP
更新时间:2021-02-13 14:44:03
JavaScript 有本地存储 如果支持并持久化localStorage,则返回true 根据是否支持localStorage返回true或false 。 请注意,某些浏览器(例如Safari)在私有模式下不支持localStorage。 下载或安装 下载 或:通过Bower安装: bower install --save has-localstorage 或:通过npm安装: npm install --save has-localstorage 用法 if ( hasLocalStorage ( ) ) { // localStorage can be used, all data gets persisted } else { // localStorage is not available, or changes are not persisted } 把招工广告! 当前的测试设置非常
【文件预览】:
has-localstorage-master
----.travis.yml(609B)
----bin()
--------test-browser.js(4KB)
--------test-node.sh(337B)
----vendor()
--------selenium-server-standalone-2.43.0.jar(33.31MB)
----docs()
--------index.html(13KB)
--------template.jade(13KB)
--------has-localstorage.js.html(13KB)
----package.json(1KB)
----tests()
--------test.has-localstorage-in-node.js(248B)
--------webrunner.js(2KB)
--------node.setup.js(142B)
--------index.html(651B)
--------test.has-localstorage-in-browser.js(249B)
----.npmignore(7B)
----.gitignore(13B)
----lib()
--------has-localstorage.js(1KB)
----CODE_OF_CONDUCT.md(3KB)
----README.md(1KB)
----.jshintrc(1KB)
----bower.json(479B)

网友评论