安卓微信浏览器, 点击返回,需要手指点击页面任何部分之后,才会触发popstate,,如果不点击,直接按回退按钮,希望能触发popstate,请问有什么方法?
var state = {
title: "carMemberBenefit",
url: "#"
};
window.history.pushState(state, "carMemberBenefit", "#");
window.onpopstate = function (e) {
alert(e + "####")
};
https://blog.csdn.net/github_38186390/article/details/116794605