在js中如何判断当前环境是debug还是publish

如题…

直接 if (CC_BUILD) { … }
详见 http://docs.cocos.com/creator/api/zh/modules/GLOBAL-MACROS.html

2赞