[] BackGround.super(this);这个报错 Cannot read property 'call' of undefined

已邀请:

Aar0n

赞同来自:

你具体描述一下你出现问题的环境, 以及你想做什么,出现的问题

oy2419498011

赞同来自:

var shouye=(function(){
(function shouye(){
Laya.init(100,300);
this.bgimg=new BackGround();
Laya.stage.addChild(this.bgimg);
})();
return shouye;
})();

var BackGround = (function (_super) {
function BackGround() {
BackGround.super(this);
this.bg=new Laya.sprite;
this.bg.loaImage("war/beijing.png");
this.addchild(this.bg); 
};
Laya.class(BackGround,"BackGround",_super)
return BackGround;
})(Laya.sprite);


BackGround.super(this);这个报错 Cannot read property 'call' of undefined

Aar0n

赞同来自:

该问题属于js语法问题,建议开发者自己查下相关资料。如果找不到,麻烦上传一个可以运行的例子,我们帮你修改下代码

要回复问题请先

商务合作
商务合作