This article mainly introduces how to change the current URL code under the premise of not refresh, have a certain reference value, and friends needed can be referred to. I hope that everyone has a big gain after reading this article. Let’s take a look at you with everyone.
WINDOW.HISTORY.BACK (); // Back
window.history.Forward (); // forward
window.history.go (-1); // Move to the specified record Point, the current reverse 1, equivalent to window.history.forward ()
Window.history.Length // How many record points in history can be found
The above is only checked
History.pushState and History.ReplaceState
History.pushState will add a history,
History.ReplaceState will replace it without increasing, So it will be more comfortable.
Thank you for reading this article carefully. I hope that Xiaobian shares does not refresh. How to change the current URL code content is helpful to everyone, and I hope everyone will support Tumi Cloud, pay attention to Tumi cloud industry Information channel, you will find Tumi clouds in trouble, the detailed solution is waiting for you!