如何在gwt web应用程序中进行等于Ctrl + R的刷新? [英] How to give a refresh equal to Ctrl+ R in gwt web app?

查看:95
本文介绍了如何在gwt web应用程序中进行等于Ctrl + R的刷新?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的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();


  1. 只要确保使用正确的 窗口 strong> import。

  2. 阅读重新加载文档
  1. Just ensure you are using the right Window import.
  2. Read reference for the reload documentation.

这篇关于如何在gwt web应用程序中进行等于Ctrl + R的刷新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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