Generally, the routing of a single page is controlled by hash. You can monitor the window.onhashchange event evt.oldURL and you can see the hash of the previous step, and use this to determine whether to move forward or backward Then combine it with local storage to do what you want
Generally, the routing of a single page is controlled by hash. You can monitor the
window.onhashchange
eventevt.oldURL
and you can see the hash of the previous step, and use this to determine whether to move forward or backwardThen combine it with local storage to do what you want
sessionStorage。