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.
精彩评论