删除GWT中的URL参数

编程入门 行业动态 更新时间:2024-10-25 02:20:39
本文介绍了删除GWT中的URL参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我的着陆页(HTML)通过URL与一个参数 login 进行通信,所以根据您在着陆页上按下的按钮,它会重定向到 myapp.appspot?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 myapp.appspot?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参数

本文发布于:2023-11-01 11:32:40,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1549228.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:参数   GWT   URL

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!