有什么办法可以在window.popstate被解雇时获得新页面的网址吗?
window.onpopstate(function (){
newPageUrl = //get the new page's URL
})
Run Code Online (Sandbox Code Playgroud)
KAN*_* UG 12
用这个
window.onpopstate(function (){
newPageUrl = location.href;
})
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4608 次 |
| 最近记录: |