[]报错 Laya 的标识符中重复
报错 Laya的标识符重复 运行没有问题 求解
代码:
(function()
{
var Sprite = Laya.Sprite;
var Stage = Laya.Stage;
var Event = Laya.Event;
var Browser = Laya.Browser;
var WebGL = Laya.WebGL;
var animation =Laya.Animation;
(function()
{
// 不支持WebGL时自动切换至Canvas
Laya.init(600,300);
Laya.stage.scaleMode = "showall";
Laya.stage.bgColor = "#232628";
var res = [
{url:"res/atlas/loading.json",type:Laya.Loader.ATLAS},
//{url:"res/atlas/loading.png",type:Laya.Loader.IMAGE},
//{url:"res/atlas/loading/01.png",type:Laya.Loader.IMAGE}
];
Laya.loader.load(res);
showact();
})();
代码:
(function()
{
var Sprite = Laya.Sprite;
var Stage = Laya.Stage;
var Event = Laya.Event;
var Browser = Laya.Browser;
var WebGL = Laya.WebGL;
var animation =Laya.Animation;
(function()
{
// 不支持WebGL时自动切换至Canvas
Laya.init(600,300);
Laya.stage.scaleMode = "showall";
Laya.stage.bgColor = "#232628";
var res = [
{url:"res/atlas/loading.json",type:Laya.Loader.ATLAS},
//{url:"res/atlas/loading.png",type:Laya.Loader.IMAGE},
//{url:"res/atlas/loading/01.png",type:Laya.Loader.IMAGE}
];
Laya.loader.load(res);
showact();
})();
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
cuixueying
赞同来自: ludwig