你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
发现
话题
全文搜索
登录
[] BackGround.super(this);这个报错 Cannot read property 'call' of undefined
没有找到相关结果
已邀请:
与内容相关的链接
提交
3 个回复
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语法问题,建议开发者自己查下相关资料。如果找不到,麻烦上传一个可以运行的例子,我们帮你修改下代码
要回复问题请先
登录
发起人
oy2419498011
相关问题
Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined?
laya2.0加载3d场景报错Uncaught TypeError: Cannot read property 'btCollisionObject' of undefined
【带附件】 使用Laya2.0.0beta5.1 发布官方示例 真机报错 window is not defined
使用谷歌chrom96版本滤镜报错
Chrome104.0.51112.102版本LayaBox2.13.0启动报错
ide 2.4 layaair2-cmd 编译报错
3d项目-unity添加物理组件 layanative2 打包android平台 报错 btCollisionObject undefined
laya2.6.0项目打apk就会报错
在渲染时会报_getSource为undefined
module写法的模块无法使用,其他地方使用会报错
IDE通过.ui自动生成的ui代码报错
问题状态
最新活动:
2018-01-10 15:05
浏览:
1761
关注:
2
人
商务合作
3 个回复
Aar0n
赞同来自:
oy2419498011
赞同来自:
(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
赞同来自: