微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

html5 – 如何使用localstorage禁用浏览?

我正在建设的网站使用localstorage回退到PHP会话。

如何在不降级Firefox,Internet Explorer 8,Chrome或Safari的情况下在本地存储免费环境中测试我的网站?所以我可能正在寻找一个附加的这些浏览器之一?

我试过ie7模式在ie8 – 没有快乐:(

解决方法

对于Firefox:

07000

The Web Applications 1.0 specification defines a mechanism allowing web pages to store information with a web browser (similar to cookies) called “client-side session and persistent storage.” Although use of session storage is subject to a user’s cookie preferences,this preference allows it to be disabled entirely.

适用于Chrome:

07001

While some resources on the Internet claims that Chrome’s cookie blocking does not also block LocalStorage,I just ran a quick test and discovered that it does actually block LocalStorage,(at least in Chrome 12,the current beta version).

不太确定IE和我想象的Safari是类似于Chrome。

原文地址:https://www.jb51.cc/html5/169443.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。