This article mainly introduces the new HTML5 history features pushState, replaceState and the differences between the two. Friends who need it can refer to the window object in the DOM to provide reading of the browser history through the window.history method, allowing you to move forward and backward in the user's access record.
Starting with HTML5, we can start manipulating this history stack.
1.HistoryUse the back(), forward(), and go() methods to advance and backward in the user's history
Move forward and backward
Back:
Copy the code