Frontend Development
history.replace() V.S. history.push()
1. history principle The visited addresses are stored on a stack (LIFO-last in first out) 2. history.go() /home ==> /home/qa ===> /home/video history.go(-1) // return to previous page, history.go(1) // go forward one page 3. history.replace() & history.push() Location Replace: The link of the page is set to the new one, Read more…