简体   繁体   中英

Update previous state object in HTML5 History

In HTML5 History we have the replaceState() method to update the state object of the current history entry.

Do we have something like previousState() to update the state object of the previous history entry?

I think you can use history.back() or history.go() for it. And then you can use replaceState() for new current item from history. replaceState() is not used for previous history.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM