开发者

how to tell different modes in gwt 2.0

开发者 https://www.devze.com 2023-01-20 06:17 出处:网络
Anyone know how to tell what mode an GWT 2.0 app is currently running at? The idea is that i could do something like:

Anyone know how to tell what mode an GWT 2.0 app is currently running at?

The idea is that i could do something like:

if(GWT.wha开发者_如何转开发tIsYourmode() == 'dev')
  //run some code
else
  //run some different code


I think what you're looking for is GWT.isClient(), GWT.isProdMode() or GWT.isScript(). You can find the Javadoc here.

0

精彩评论

暂无评论...
验证码 换一张
取 消