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

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

21. ts中调用js报错 [ 82%]

ts中调用js报错 如图所示,我调用require方法,它就报错了。 附件 : --> 2018-10-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: LayaIDE1.x版本,还不支持require...

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

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

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

23. 苹果上架问题, [ 81%]

..., 2017年12月8日 上午9:53 发件人 Apple2. 5 Performance: Software Requirements 4. Design: Preamble Guideline 2.5.2 - Performance - Software Requirements Your app, extension, or linked framework appears to contain code designed explicitly with the capability to change your app’s behavior ...

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

24. 分包发布,static方法拿取不到。报错:类名.静态方法名 is not a function [ 81%]

... a function OPPO分包发布时遇到一个问题,当在index.js中最后require("./libs/laya.d3.js");时会报错Shader3D.propertyNameToID is not a function。将require该库的语句提前,则不会报错。但是后导入的类的静态方法会报同样的错误。例如:Laya.QGMiniAdapte...

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

25. 发布到微信小游戏,编译报错Laya is not defined [ 81%]

... 分享 微博 QZONE 微信 ITJacob 赞同来自: 在game.js文件中加上require("libs.js");即可,好像说微信小游戏自带了laya包,不过本地调试的时候加上这条就好了,把libs 里的require("./libs/laya.core.js");加上,本地环境里就有laya了。 2020-08-30 0 0 ...

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

26. 微信小游戏,请先初始化小游戏适配库 [ 80%]

...us) @ code.js:7057 (anonymous) @ code.js:53348 (anonymous) @ code.js:53360 require @ WAGame.js:3 (anonymous) @ WAGame.js:3 (anonymous) @ game.js? [sm]:2 require @ WAGame.js:3 (anonymous) @ gamePage.html:156 WAGame.js:3 gameThirdScriptError window.focus is not a function TypeError: window.focus is no...

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

27. 全局安装layaair2-cmd报错怎么办啊 [ 80%]

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

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

28. 小游戏发布 本地包大小问题,code.js 太大了怎么处理呢? [ 80%]

...05-11 11:23 发布后的微信小游戏工程里改game.js: let matter = require("matter.js"); window.Matter = matter; require("weapp-adapter.js"); require("code.js"); 吉日-jerry • 2018-05-11 11:28 这种方式在个别手机上有问题,等待官方回复吧

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

29. 微信小游戏:Matter is not defined [ 80%]

...aya_Aaron: 好吧。谢谢。 冰水blue • 2018-06-13 11:54 let matter = require("./libs/matter.js"); window.Matter = matter; require("./code.js"); 确实可以了,麻烦看下,下面这个系统问题是什么原因,谢谢您!

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

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

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