您好我在createjs
中访问vars时遇到了问题如果您想要完整的脚本告诉我,我会简要介绍正在发生的事情。
var exportRoot, stage, etc//shouldn't these be global?
init(){
handleLoadComplete()
}
handleLoadComplete(){
myFucntionCall()
console.log(exportRoot); //works fine
}
console.log(exportRoot); //doesn't work
myFucntionCall(){
console.log(exportRoot); //works
}