$(document).ready(function (e) {
var counter = 0;
if (window.history && window.history.pushState) {
$(window).on('popstate', function () {
window.history.pushState('forward', null, '#');
window.history.forward(1);
self.location="orderinfo.html";
});
}
window.history.pushState('forward', null, '#'); //在IE中必须得有这两行
window.history.forward(1);
});
--------------------- 本文来自 小小小乌龟丶 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/weixin_39973810/article/details/79351032?utm_source=copy