GWT程序是否有办法确定它是处于托管模式还是Web模式? [英] Is there way for a GWT program to tell if it's in hosted or web mode?
本文介绍了GWT程序是否有办法确定它是处于托管模式还是Web模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望我的GWT程序能够确定它是处于托管模式还是处于Web模式。有没有办法做到这一点?
I would like my GWT program to be able to determine whether it's in hosted mode or in web mode. Is there a way to do this?
谢谢!
推荐答案
GWT.isScript()在非托管模式下返回true,在托管模式下返回false。
GWT.isScript() returns true in non hosted mode and false in hosted mode.
这篇关于GWT程序是否有办法确定它是处于托管模式还是Web模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文