Internet Explorer 是否支持 pushState 和 replaceState? [英] Does Internet Explorer support pushState and replaceState?

查看:37
本文介绍了Internet Explorer 是否支持 pushState 和 replaceState?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道 Internet Explorer 是否支持 操纵浏览器历史记录?考虑到这些只是在 Firefox 4 中实现,我并没有屏住呼吸,但有人知道它们是否会在 IE9 中出现吗?

Does anybody know if Internet Explorer supports the history.pushState() and history.replaceState() methods for manipulating browser history? Considering these are just being implemented in Firefox 4, I'm not holding my breath, but does anybody know if they're coming in IE9?

推荐答案

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

Probably the best site for browser compatibility information is CanIUse. Here's the section on history.

总结 - IE9:否IE10:是(自平台预览 3 起)

Summary - IE9: no, IE10: yes (as of platform preview 3)

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

The first Release Candidate of IE9 (released 10th Feb 2011) does not support history.pushState or history.replaceState. Generally no new features are added after a product gets to RC stage so it is very unlikely that the final IE9 will support these methods.

Microsoft 对 IE9 确实具有的功能进行了很好的开发人员概述.

Microsoft have a good overview for developers of the features IE9 does have.

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

Update: Internet Explorer 9 was launched (on 14th March 2011) and definitely does not support history.pushState() or history.replaceState().

更新2:IE10 仍然不支持 pushState/replaceState.

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

Update 3: Platform Preview 3 of IE10 supports the history API! Details

这篇关于Internet Explorer 是否支持 pushState 和 replaceState?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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