javascript - 哪些浏览器支持 globalStorage?

标签 javascript globalstorage

哪些浏览器(版本)支持 globalStorage?这是一个已弃用的 JavaScript 客户端浏览器存储 API。

我看到 http://caniuse.com/namevalue-storage ,但它没有明确提及 globalStorage。

最佳答案

以下是 Mozilla 开发者网络对 GlobalStorage 的看法:

Non-standard

This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

Obsolete since Gecko 13.0 (Firefox 13.0 / Thunderbird 13.0 / SeaMonkey 2.10)

This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

正如在该主题上比我更有权威的人所说:尝试根据旧的 GlobalStorage 规范编写代码是非常不可取的,因为它不再以任何编码形式存在。 GlobalStorage支持已经removed from Mozila software截至 2011 年。如果您需要在不支持 LocalStorage/SessionStorage 的极旧浏览器版本中提供存储支持,您最好寻求 polyfill(例如 sessionstorage)来为那些系统提供支持实际上目前作为标准存在。

关于javascript - 哪些浏览器支持 globalStorage?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23706727/

相关文章:

javascript - 当我可以在 es6 中使用导入/导出时,angular 的依赖注入(inject)有什么优势

javascript - Ember 2,使用 Ember.run.debounce 调用路由中的函数

javascript - 通过 chrome.tabs.sendMessage 发送 DOM 节点对象

javascript - 带有文本的 CSS 动画故障

php - 如何将 JavaScript 添加到 WordPress PHP 文件?