模拟器编译没有问题,但是上传到真机预览的时候提示错误
所以
2018-02-08
错误信息:
gameThirdScriptError
ReferenceError: Can't find variable:window at line 3 in undefined
require
require
global code
代码:
main.js:
window.PIXI = require('libs/gamelibs/pixi.min.js')
window.p2 = require('libs/gamelibs/p2.min.js')
window.Phaser = require('libs/gamelibs/phaser-split.min.js')
window.scrollTo = function () { }
卡在加载界面进不去 求大神指点
试试用 官方适配器里的 GameGlobal