Rumah > Soal Jawab > teks badan
var foo = {};
class foo.Test extends createjs.Container{
...
}
//这样写foo.Test直接报错,难道必须先定义Test,然后foo.Test = Test;吗?
PHP中文网2017-04-11 11:44:13
var foo = {}
foo.Test = class extends createjs.Container {
constructor() {
// ...
}
}