更新
This commit is contained in:
parent
5648683c86
commit
0a8c3a14d3
@ -333,6 +333,7 @@ const goBackEvent = ()=>{
|
|||||||
window.onpopstate = function() {
|
window.onpopstate = function() {
|
||||||
//后退按钮触发事件
|
//后退按钮触发事件
|
||||||
console.log("后退");
|
console.log("后退");
|
||||||
|
window.history.go(-1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user