本文共 260 字,大约阅读时间需要 1 分钟。
<script language="javascript">history.pushState(null,null,document.URL);
window.addEventListener('popstate',finction(){
var url = document.URL;
if(url.indexOf("/register/register") > -1){
history.go(-1);
}else{
history.pushState(null,null,url);
}
})
</script>
转载地址:http://rpxvi.baihongyu.com/