简体   繁体   中英

How to find out browser back button click using gwt history

我正在使用历史监听器进行前后浏览器按钮。但是我无法找到历史记录后退按钮点击。如果有任何想法,请为我​​提供帮助......谢谢...

Your code can use the tokens sent by History management system to determine what kind of action you want to take. Suppose you are at page1 and that page is identified by the token 'page1'. Now, you move to page2. If you click the back button, you will receive the token 'page1'. You can use this to set the state related to page1. See this Google doc for more info.

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