History.js 能在所有浏览器中完美支持 HTML5 的 History/State API(pushState、replaceState、onPopState),同时继续支持数据、标题以及 replaceState 功能。它还兼容 jQuery、MooTools 和 Prototype。对于 HTML5 浏览器而言,这意味着用户可以直接修改 URL,而无需再使用哈希值;而对于 HTML4 浏览器,则会恢复使用旧的 onhashchange 功能。
OTHERJavaScripthtml5-history-apihtml5-historyjavascriptpolyfillhashchange
browserstate.github.com/history.js/demo