$(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()
以上三个知识点自行百度 记得双击么么哒