如何在GWT中重新加载网页 [英] How to reload web page in GWT

查看:125
本文介绍了如何在GWT中重新加载网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在GWT中重新加载网页?我想在用户登录系统后重新加载页面,然后它会在页面顶部显示个人状态。任何想法如何?

How to reload the web page in GWT? I want to reload the page after a user logged in the system and then it will show the personal status on top of the page. Any idea how?

非常感谢。

Thanks a lot.

推荐答案

Window.Location.reload()将重新加载页面,但我确信重新加载页面并不是你想要的。

Window.Location.reload() will reload the page, but I'm pretty sure reloading the page is not what really you want.

您可能只想刷新页面的某些部分以在用户登录后更新。

You probably just want to refresh certain parts of the page to update once the user logs in.

原因是,重新加载该页面将重新下载页面上的JavaScript和图像,这是很多流量来刷新用户界面。

The reason is, reloading the page will re-download the JavaScript and images on the page, which is a lot of traffic just to refresh the UI.

这篇关于如何在GWT中重新加载网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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