不想浏览器回退
if(window.history&&window.history.pushState){ $("window").on('popstate',function(){ window.location.href = locatin.href; }); } window.history.pushState('forward',null,'#'); window.history.forward();
不想浏览器回退
if(window.history&&window.history.pushState){ $("window").on('popstate',function(){ window.location.href = locatin.href; }); } window.history.pushState('forward',null,'#'); window.history.forward();