[]微信开发者工具出现错误:Laya3D init error must support webGl
在layaide里是没有问题的。导出微信小游戏,用微信开发者工具打开之后就出现了这个错误:
gameThirdScriptError
alert is not defined
ReferenceError: alert is not defined
at Function.Laya3D.init (http://127.0.0.1:38102/game/code.js:67387:4)
at new Main (http://127.0.0.1:38102/game/code.js:111146:16)
at http://127.0.0.1:38102/game/code.js:111237:1
at require (http://127.0.0.1:38102/game/__ ... :13718)
at http://127.0.0.1:38102/game/__ ... 13432
at http://127.0.0.1:38102/game/game.js:4:1
at require (http://127.0.0.1:38102/game/__ ... :13718)
at http://127.0.0.1:38102/game/gamePage.html:159:5
错误对应的代码位置是在code.js的Laya.init方法:
if (!Render.isConchNode && !WebGL.enable()){
alert("Laya3D init error,must support webGL!");
return;
}
这个应该是引擎自动生成的代码吧,应该如何解决呢?
gameThirdScriptError
alert is not defined
ReferenceError: alert is not defined
at Function.Laya3D.init (http://127.0.0.1:38102/game/code.js:67387:4)
at new Main (http://127.0.0.1:38102/game/code.js:111146:16)
at http://127.0.0.1:38102/game/code.js:111237:1
at require (http://127.0.0.1:38102/game/__ ... :13718)
at http://127.0.0.1:38102/game/__ ... 13432
at http://127.0.0.1:38102/game/game.js:4:1
at require (http://127.0.0.1:38102/game/__ ... :13718)
at http://127.0.0.1:38102/game/gamePage.html:159:5
错误对应的代码位置是在code.js的Laya.init方法:
if (!Render.isConchNode && !WebGL.enable()){
alert("Laya3D init error,must support webGL!");
return;
}
这个应该是引擎自动生成的代码吧,应该如何解决呢?
没有找到相关结果
已邀请:
要回复问题请先登录
2 个回复
Aar0n
赞同来自:
bq49
赞同来自: