If you want to return the page to the previous level, you can return to the state you got when you last left it, including a series of styles. There is no btn to return to the previous level on the page. It feels difficult to achieve! People on the Internet say to use hash, cookie, and storage. I feel that this is not reliable. I can't get the page to jump to or return to. Please give me some guidance!
window.history.go(-1);
Simple, when you leave, add a parameter to your url: the address of the previous page after encode_url!
Yes, there is currently no way to determine how the page is entered. It may be going back or forward.
http://www.zhangxinxu.com/wor...
Now I have 2 pages: Page A and Page B
Page B
Page A
Process:
Copy the contents of pages A and B to test yourself - -