打包用的eclipse
扫码 pc 都没问题
Laya.init(600, 400);
Laya.stage.bgColor = "#ffffff";
Laya.stage.scaleMode = "exactfit";
Laya.stage.screenMode = "horizontal";
var asset = [];
asset.push({
url: ["../res/image/bg.png"],
type: Laya.Loader.IMAGE
});
Laya.loader.load(asset,Laya.Handler.create(this,graphicsImg));
function graphicsImg(){
var s = new laya.display.Sprite();
s.graphics.drawTexture(Laya.loader.getRes("../res/image/bg.png"),0,0);
Laya.stage.addChild(s);
} 新建一个工程 這样写打包之后会白屏