internet-explorer - Internet Explorer 是否支持 pushState 和 replaceState?

标签 internet-explorer html pushstate

有人知道 Internet Explorer 是否支持 manipulating browser historyhistory.pushState()history.replaceState() 方法吗? ?考虑到这些只是在 Firefox 4 中实现,我没有屏住呼吸,但有人知道它们是否会出现在 IE9 中吗?

最佳答案

浏览器兼容性信息的最佳站点可能是 CanIUse .这是关于 history 的部分.

总结 - IE9:否IE10:是(截至平台预览 3)

IE9 的第一个候选版本(2011 年 2 月 10 日发布)不支持 history.pushState 或 history.replaceState。产品进入 RC 阶段后通常不会添加新功能,因此最终的 IE9 不太可能支持这些方法。

微软有一个很好的overview for developers IE9 确实具有的功能。

更新:Internet Explorer 9 发布(2011 年 3 月 14 日)并且绝对不支持 history.pushState()history.replaceState ().

更新2:IE10 still does not support pushState / replaceState的当前平台预览.

更新 3:IE10 平台预览版 3 支持历史 API! Details

关于internet-explorer - Internet Explorer 是否支持 pushState 和 replaceState?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3722815/

相关文章:

javascript - 区分人类生成的事件和旧 IE 中生成的浏览器事件

javascript - HTML5 - 跨浏览器 Iframe postmessage - 父子通信

javascript - Ember.js - 启用位置历史记录时如何处理 URL 参数?

excel - 如何使用 VBA 从 Internet Explorer 下载文件

html - IE下拉截止

javascript - selection.modify() 是否有 IE 替代品?

html - 如何访问带样式的 div 内的跨度?

javascript - 使用 HTML 表单值进行 AJAX/PHP MySqli 查询

internet-explorer - Backbone.js:在 Internet Explorer 中使用 pushstate 实现基于斜杠的 URL 的解决方法

jquery - 全屏部分的 History.js