你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
没有找到相关结果
Laya_XS
赞同来自:
var BackGround=(function(_super){ function BackGround(){ BackGround.__super.call(this); this.bg1 = new Laya.Sprite(); this.bg1.loadImage("comp/bg.png"); this.addChild(this.bg1); } Laya.class(BackGround,"BackGround",_super); return BackGround; })(Laya.Sprite)
要回复问题请先登录
1 个回复
Laya_XS
赞同来自:
var BackGround=(function(_super){代码我这样写可以正常显示,你试试function BackGround(){
BackGround.__super.call(this);
this.bg1 = new Laya.Sprite();
this.bg1.loadImage("comp/bg.png");
this.addChild(this.bg1);
}
Laya.class(BackGround,"BackGround",_super);
return BackGround;
})(Laya.Sprite)