有没有办法让GWT程序判断它是处于托管模式还是Web模式?

JP *_*son 8 java gwt

我希望我的GWT程序能够确定它是处于托管模式还是处于Web模式.有没有办法做到这一点?

谢谢!

Ton*_*him 9

GWT.isScript()在非托管模式下返回true,在托管模式下返回false.

http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/core/client/GWT.html#isScript()