• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 232 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0039 秒)

81. __class is not defined [ 74%]

...728/game/code.js:53274:3 at http://127.0.0.1:56728/game/code.js:53276:4 at require (http://127.0.0.1:56728/game/__ ... :13675) at http://127.0.0.1:56728/game/__ ... 13424 at http://127.0.0.1:56728/game/game.js:4:1 at require (http://127.0.0.1:56728/game/__ ... :13675) at http://127.0.0.1:56728/game/...

来源: Laya_社区 发布时间: 20180506

82. Laya发布微信包提示Uncaught ReferenceError: Laya is not defined [ 73%]

...Error: Laya is not defined    解决方法:在game.js  的第一行即require的最开始的位置,再添加一个require("libs/laya.core.js");    如果bin的里面没有game.js   就加入到发布后的微信包的game.js里面 附件 : --> 2020-05-04 添加评论 免费帖 --> 分享 ...

来源: Laya_社区 发布时间: 20200504

83. 微信小游戏加云开发,项目怎样配置 [ 73%]

...s:349     at laya.ui.js:1     at wrapFn (gameContext?id=1:51)     at require (VM37 WAGameSubContext.js:2)     at VM37 WAGameSubContext.js:2     at index.js? [sm]:12     at wrapFn (gameContext?id=1:51)     at require (VM37 WAGameSubContext.js:2)     at VM37 WAGameSubContext.js:2 2021-...

来源: Laya_社区 发布时间: 20210322

84. 微信小游戏 gameThirdScriptError events [ 73%]

...e.js:21112:7     at http://127.0.0.1:52880/game/code.js:21113:3     at require (http://127.0.0.1:52880/game/__ ... :13675)     at http://127.0.0.1:52880/game/__ ... 13424     at http://127.0.0.1:52880/game/game.js:2:1     at require (http://127.0.0.1:52880/game/__dev__/WAGame.js:3:13675) ...

来源: Laya_社区 发布时间: 20180504

85. 升级到2.2.0Beta报错Uncaught TypeError: Class constructor Sprite cannot be invoked without 'new' [ 73%]

... 'new' at new Widget (laya.ui.js:139) at laya.ui.js:285 at laya.ui.js:1 at require (VM282 WAGame.js:1) at VM282 WAGame.js:1 at index.js? [sm]:17 at require (VM282 WAGame.js:1) at VM282 WAGame.js:1 at game.js? [sm]:9 at require (VM282 WAGame.js:1) 不勾选的话,部分不支持es6的机型会因...

来源: Laya_社区 发布时间: 20190812

86. [0]layaair2-cmd 编译bug [ 72%]

...layaair2-cmd/node_modules/natives/index.js:143:24)     at Object.req [as require] (/usr/local/lib/node_modules/layaair2-cmd/node_modules/natives/index.js:55:10)     at Object.<anonymous> (/usr/local/lib/node_modules/layaair2-cmd/node_modules/graceful-fs/fs.js:1:37)     at Module._compile...

来源: Laya_社区 发布时间: 20210420

87. 微信小程序打包,提示“laya is not defined” [ 72%]

...  at code.js:11708     at code.js:11720     at code.js:18226     at require (WAGame.js:11)     at WAGame.js:11     at game.js? [sm]:4     at require (WAGame.js:11)     at gamePage.html:135 window.onerror -------------------------- 堆栈代码片段:         附件 : --> 2018-01...

来源: Laya_社区 发布时间: 20180131

88. 官网的微信小游戏2D例子,发布以后无法运行 [ 72%]

...is not defined     at http://127.0.0.1:16026/game/code.js:29:15     at require (http://127.0.0.1:16026/game/__ ... :96033)     at http://127.0.0.1:16026/game/__ ... 95643     at http://127.0.0.1:16026/game/game.js:3:30     at require (http://127.0.0.1:16026/game/__ ... :96033)     at &lt...

来源: Laya_社区 发布时间: 20200326

89. Laya 安卓端 在服务端运行指令layadcc ./ 后进不去,提示 assetId is old 和 init dcc fail。然后过五六个小时后才不会报这个错。。才能进去 [ 72%]

...file in the package:app.json 12-09 22:04:33.108 12728-12832/? I/LayaBox:  require(/sdcard/layabox/scripts/scripts/index.js) 12-09 22:04:33.109 12728-12832/? I/LayaBox:  require(/sdcard/layabox/scripts/index.js) 12-09 22:04:33.110 12728-12832/? I/LayaBox: found the file in the package:scripts/index...

来源: Laya_社区 发布时间: 20181209

90. 怎么在laya2里使用第三方库 [ 72%]

...么在laya2里使用第三方库 我在gulpfile.js里写了 var express = require(ideModuleDir + "express"); express的文件夹也拷到了该拷的地方,编译没问题,但运行时就崩在var app = express();这句代码上了。 就想问怎么才能在新版里使用第三方库,或者...

来源: Laya_社区 发布时间: 20180920