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