LocalStorage Firefox 3.6 [英] LocalStorage Firefox 3.6
本文介绍了LocalStorage Firefox 3.6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
函数supports_html5_storage(){在窗安培
尝试{
返回 '的localStorage'?; &安培;窗口['localStorage']!== null;
} catch(e){
alert('failing');
返回false;
$ b $ p注:页面有一个HTML5文档类型(尽管我认为这没什么区别)。解决方案即使Firefox支持localStorage,也可以关闭。检查它是否已打开。
转至 about:config
并检查 dom .storage.enabled
设置为 true
。
According to everything I've read, Firefox 3.5+ supports localStorage. And yet I'm seeing the alert (failing) in Firefox 3.6. Do I have some strange settings in my Firefox? Any ideas?
function supports_html5_storage() {
try {
return 'localStorage' in window && window['localStorage'] !== null;
} catch (e) {
alert('failing');
return false;
}
}
Note: The page has an HTML5 doctype (though I think this makes no difference).
解决方案 Even though Firefox supports localStorage, it can be turned off. Check that it is turned on.
Go to about:config
and check that dom.storage.enabled
is set to true
.
这篇关于LocalStorage Firefox 3.6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文