Html 5 本地存储在 Firefox 中不持久

标签 html storage local

我做了一个简单的函数

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

如果我这样运行它,它就会工作。 如果我在运行一次后删除第一行,我只让这个

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

我在 Firefox 3.6.12 中得到一个空值 在 Chrome 中它有效。

有什么想法吗?

最佳答案

关于Html 5 本地存储在 Firefox 中不持久,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4214759/

相关文章:

javascript - 导航栏错误

jquery - 如何在li元素右侧顶部设置删除按钮?

html - 将 HTML 页面连接到 Bootstrap (jumbotron)

ios - 云存储服务,什么,如何以及哪些?

python - 无界本地错误: Why Does it occur when a global variable is redefined inside a function but not when it is merely referenced?

asp.net - 禁用或隐藏文本区域中的滚动条

tomcat - Grails 和 Tomcat : Where to store uploaded files in filesystem?

HTML 5 文件系统如何增加持久存储

ios - 取消单次重复的本地通知

ruby-on-rails - 获取本地时间