简体   繁体   English

如何使用gwt历史查找浏览器后退按钮单击

[英]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'. 假设您位于page1,该页面由标记'page1'标识。 Now, you move to page2. 现在,您转到第2页。 If you click the back button, you will receive the token 'page1'. 如果单击后退按钮,您将收到令牌'page1'。 You can use this to set the state related to page1. 您可以使用它来设置与page1相关的状态。 See this Google doc for more info. 有关详细信息,请参阅此Google文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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