h5手机点击返回键,刷新页面

在js中,加上一下代码:


window.onpageshow = function(event) {
if (event.persisted) {
window.location.reload();
}
};

原文地址:https://www.cnblogs.com/luweib/p/7382496.html