开发者

how to tell different modes in gwt 2.0

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜