$(function () {
// 捕捉後退
$(document).ready(function (e) {
window.history.pushState('forward', null, '#');
window.history.forward(1);
if (window.history && window.history.pushState) {
$(window).on('popstate', function () {
//後退之後要做的事
});
}
});
})
1.pushState(stateObject,title,URL)
2.forward()
3.popstate()
以上三個知識點自行百度 記得雙擊麼麼噠