最後的狀態是有可能得到的最後狀態的HTML推到歷史堆棧,這樣的事情:流行音樂歷史
history.pushState(null, null, {html: $('body').html()});
改變窗口的位置:
window.location = url;
現在從新位置:
window.addEventListener('popstate', function(event) {
// back to the last state - event.state.html
}
history.back() // That what's firing the popstate event?
「*這樣的事情*」 - 所以不工作? – Bergi