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

大约有 105 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0040 秒)

31. laya的ide如何import js并调用里面的类和方法?VS Code正常。 [ 78%]

...差异,下面这行<script type="text/javascript" src="node_modules/requirejs/require.js"></script>  ,而vscode里可以注释掉,还是正常。   用VS Code测试: 运行后一切正常: 而layaAir IDE,如果注释掉这一行,就一片空白,不会输出任何东西...

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

32. 微信小游戏 [ 77%]

...737/game/code.js:28297:7 at http://127.0.0.1:49737/game/code.js:28300:3 at require (http://127.0.0.1:49737/game/__ ... :13675) at http://127.0.0.1:49737/game/__ ... 13424 at http://127.0.0.1:49737/game/game.js:4:1 at require (http://127.0.0.1:49737/game/__ ... :13675) 2018-05-10 添加评论 免费...

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

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

...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

34. 请问下现在Laya支持接入百度开放域吗 [ 76%]

...adapter.js.Object.defineProperty.value (weapp-adapter.js:243) at __webpack_require__ (weapp-adapter.js:20) at Object.../../../Laya2.0Project/MiniDemo/release/bdgame/openContext/weapp-adapter.js.Object.defineProperty.value (weapp-adapter.js:138) at __webpack_require__ (weapp-adapter.js:20) at Object....

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

35. 发布的微信小游戏代码运行出错 [ 75%]

...: Window is not defined at http://127.0.0.1:11874/game/code.js:1:773096 at require (http://127.0.0.1:11874/game/__ ... :13718) at http://127.0.0.1:11874/game/__ ... 13432 at http://127.0.0.1:11874/game/game.js:4:1 at require (http://127.0.0.1:11874/game/__ ... :13718) at http://127.0.0.1:11874/game/...

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

36. 微信小游戏引用spine-core-3.8.js报错 [ 75%]

...AGame.js:2 Error: module "libs/spine-core-3.8.js" is not defined     at require (VM97 WAGameSubContext.js:2)     at a (VM97 WAGameSubContext.js:2)     at index.js? [sm]:28     at require (VM97 WAGameSubContext.js:2)     at a (VM97 WAGameSubContext.js:2)     at game.js? [sm]:9   ...

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

37. 【分享】通过命令行调用compile.js编译,不使用laya-cmd [ 75%]

... set compilejs=%~dp0.laya\compile.js ::创建一个js文件 echo let app = require("electron").app>compile_temp.js echo let gulp = require('gulp')>>compile_temp.js echo let childprocess = require('child_process')>>compile_temp.js echo let defaultTask = "compile">>compile_temp.js...

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

38. 打包微信小游戏报错 ReferenceError: Matter is not defined [ 75%]

...报错:Matter is not defined, 在game.js里面添加了 let matter = require("matter.js"); window.Matter = matter; 但是还是不行,有没有其他方法解决 附件 : --> 2018-05-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

39. 如何引入npm包? [ 74%]

...码提示是有的,但是编译运行后就报错了,ReferenceError: require is not defined 是我引入的方式不对吗? 论坛里也没有搜到相关的,请大神给个typescript的使用例子       附件 : --> 2017-12-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

40. Error: 代码包大小为 6018 kb,上限为 4096 kb,请删除文件后重试 [ 74%]

...s not defined Error: module "libs/laya.wxmini.js" is not defined     at require (http://127.0.0.1:43425/game/__ ... :13569)     at http://127.0.0.1:43425/game/__ ... 13424     at http://127.0.0.1:43425/game/game.js:6:2     at require (http://127.0.0.1:43425/game/__ ... :13675)     at ...

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