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)
代码我这样写可以正常显示,你试试