js监听页面返回事件
"pushState" in window.history && (
window.history.pushState({
title: document.title,
url: location.href
}, document.title, location.href),
setTimeout(function () {
window.addEventListener("popstate", function (a) {
//你需要的操作
return false;
})
}, 1000)
);
js监听页面返回,h5监听页面返回