监听浏览器返回按钮,监听到以后执行来源重载 微信可用
$(document).ready(function(e) { var counter = 0; if (window.history && window.history.pushState) { $(window).on('popstate', function () { // 获取来源跳转 // location.href=document.referrer; }); } window.history.pushState('forward', null, '#'); //在IE中必须得有这两行 window.history.forward(1); });