var foo = {};class foo.Test extends createjs.Container{ ...}//这样写foo.Test直接报错,难道必须先定义Test,然后foo.Test = Test;吗?
认证高级PHP讲师
var foo = {} foo.Test = class extends createjs.Container { constructor() { // ... } }
var foo = { Test: class extends createjs.Container { // ... } }
认证高级PHP讲师