0
g = function() {
require(["game"], function(b) {
...
}
}
我怎么会去内game
暴露一切的代码片段?如果有帮助,我正在使用RequireJS?
如果我做,如果我做window.b= b;
并尝试访问b.functionWithin()
我得到的错误functionWithin not a function
得益于该模块的出口
http://stackoverflow.com/questions/15287537/calling-function-inside-a-function-in-requirejs-module-javascript – Nevertheless