最近看到hashchange事件,自己做demo一下 window.addEventListener("hashchange", function (event) { console.log(event);
},false);可惜无论如何也没有输出任何信息,无论我的url怎么变化,想请教一下测试浏览器是版本 55.0.2883.95 (64-bit),最新版的Safari firefox也测试过我看mdm上也是支持的, https://developer.mozilla.org...我测试的时候是将url修改,http://localhost:63342/test-w... 改成http://localhost:63342/test-w...然后后退前进谢谢
添加回答
举报
0/150
提交
取消