标签: javascript html5
在使用历史记录API(例如pushState(data,title,url)和replacestate(data,title,url)时如何访问输入的网址,换句话说,当我点击后退按钮时,我想检查输入的网址,以便我可以尝试重建他的功能来打电话。
pushState(data,title,url)
replacestate(data,title,url)
答案 0 :(得分:0)
window.location.hash,另请参阅hashchange event。
window.location.hash
hashchange