栗子如下:
http://j.news.163.com/
HTML5 中提出的新方法 pushState
参考资料:
https://developer.mozilla.org/zh-CN/docs/DOM/Manipulating_the_browser_history
根据你提供的例子, 应该是在用户单击的时候, 使用 location.hash = 'xxxx'
来修改的地址栏中的 hash
值.
推荐使用jQuery-Pjax 参考:https://github.com/defunkt/jquery-pjax
hashchange啊
====
竟然有人踩,也是醉了。。。