require is not defined

require is not defined

请问cocos2d-js怎么才能用 require(“xxx.js”);

1赞

同求,咋没人回答呢?初次接触 cocos2d-js,别人的项目里有个 require,在IDEA里总是跑不起来,提示require is not defined