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

前端之家收集整理的这篇文章主要介绍了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。

猜你在找的HTML5相关文章