删除GWT中的URL参数 [英] Remove URL parameters in GWT

查看:94
本文介绍了删除GWT中的URL参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的着陆页(HTML)通过URL与一个参数 login 进行通信,所以根据您在着陆页上按下的按钮,它会重定向到 http://myapp.appspot.com?login=1 (或2或3)。

My landing page (HTML) communicates with a GWT app via URL with one parameter login, so depending on the button you press on the landing page it will redirect to http://myapp.appspot.com?login=1 (or 2 or 3).

在GWT应用程序我处理该参数,但我需要从URL中删除它,而无需重新加载网页。有没有办法做到这一点?如果没有,我可以以不同的方式传递这个参数给我的GWT应用程序吗?

In the GWT app I process that parameter but I need to remove it from URL without reloading the webpage. Is there a way to do this? If not, can I pass this parameter in a different way to my GWT app?

谢谢

Thanks

推荐答案

我认为你不能在没有重新加载的情况下改变参数。但是您的GWT应用可以使用 WindowLocation.getParameter 并根据它做不同的事情。

I think that you cannot change the parameter without reloading. But your GWT app can read the parameter using WindowLocation.getParameter and do different things depending on it.

这篇关于删除GWT中的URL参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆