如何在gwt web应用程序中进行等于Ctrl + R的刷新? [英] How to give a refresh equal to Ctrl+ R in gwt web app?
问题描述
在我的web应用程序中,我正在更改设置中的区域设置,并且我发现只有在按下 F5
按钮或 Ctrl + R后,语言环境更改才会生效
。我已经测试了不同的方法,以编程方式进行平等刷新(更改区域设置),但没有成功。什么是相当于该刷新事件的程序设计?
In my web app I am changing locale in settings and I found out the locale change takes effect only after pressing F5
button or Ctrl + R
. I have tested different approaches to programmatically make equal refresh (one that changes locale), but no success on that. What is the programmatic equivalent to that refresh event?
我尝试了 Window.Location.reload();
I tried Window.Location.reload();
with no desired effect.
推荐答案
F5即通过GWT的Ctrl + R等效项是 com.google.gwt.user .client.Window.Location.reload();
F5 i.e Ctrl+R equivalent via GWT is com.google.gwt.user.client.Window.Location.reload();
- 只要确保使用正确的 窗口 strong> import。
- 阅读重新加载文档。
- Just ensure you are using the right Window import.
- Read reference for the reload documentation.
这篇关于如何在gwt web应用程序中进行等于Ctrl + R的刷新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!