如: https://github.com/rails/rails/tree/master/activerecord
但是IE上没有这种效果,是整页刷新的。
回复内容:
通过调用 history.pushState 方法。
详见:
https://developer.mozilla.org/en/DOM/Manipulating_the_browser_history
IE 和 firefox4 以下是不支持history.pushState的, 应该有代码判断是否支持此funtion然后相应会整页刷新。你可以用history.js,兼容低版本浏览器 :
https://github.com/balupton/History.js/
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn