HTML 5 Local Storage在Firefox中不持久 [英] Html 5 Local Storage not persistent in firefox

查看:98
本文介绍了HTML 5 Local Storage在Firefox中不持久的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了一个简单的功能

localStorage.setItem('foo', 'bar')  
alert(localStorage.getItem('foo'));

如果我这样运行它,它将起作用. 如果我在运行一次后删除了第一行,就只允许这样做

If I run it like this it works. If I remove the first line after I run it once and I let only this

alert(localStorage.getItem('foo'));

我在Firefox 3.6.12中得到一个空值 在Chrome浏览器中有效.

I get a null value in Firefox 3.6.12 In chrome it works.

有什么想法吗?

推荐答案

这是一个错误[ https://bugzilla.mozilla.org/show_bug.cgi?id=507361 ]

这篇关于HTML 5 Local Storage在Firefox中不持久的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆