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

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

51. 播放背景音乐的问题 刚打开 桌面调试出现报错Uncaught (in promise) DOMException: play() [ 70%]

...,Chrome下chrome://flags/#autoplay-policy,然后选No user gesture is required 。 2018-07-10 2 0 分享 微博 QZONE 微信 anghuo 赞同来自: 自己顶一下!先 2018-06-09 0 0 分享 微博 QZONE 微信 老衲当时慌了 赞同来自: 在最新版的Chrome浏览器(以及所有以Chrom...

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

52. layaBOX实时语音聊天与微信登陆接口分享 [ 69%]

...语音接口 nodejs 安装 模块   npm install yimwx-api var YIM = require("yimwx-api"); var io = require("socket.io").listen(8800); var app = express(); var router = express.Router(); var token = "213123";//微信上的自定义TOKEN 用于签名验证 YIM.appkey = "123123123"; YIM.appsecret ...

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

53. 今天打开微信工具出现错误Cannot read property 'USER_DATA_PATH' of undefined [ 66%]

...131022:24)     at http://127.0.0.1:37684/game/code.js:131545:21     at require (http://127.0.0.1:37684/game/__ ... :13718)     at http://127.0.0.1:37684/game/__ ... 13432     at http://127.0.0.1:37684/game/game.js:4:1     at require (http://127.0.0.1:37684/game/__ ... :13718)     at http...

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

54. 微信小游戏是不是不支持xml解析? [ 64%]

...关的xml解析来,然后在小游戏里使用即可。 window.Parser = require("./js/dom_parser");引入方式 js.zip 2018-04-04 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 sleepfish 相关问题 关于微信小游戏关系链的...

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

55. 开放数据域组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 64%]

...js文件中,并在微信开发者工具中查看效果: const Layout = require("./engine.js").default; let sharedCanvas = wx.getSharedCanvas(); let sharedContext = sharedCanvas.getContext("2d"); // 使用XML格式的内容来描述开放数据域的界面,一般使用模板函数来构建 let ...

来源: Laya3.0_文档 发布时间: 20251010

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

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

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

57. 使用2.6引擎版本vscode开发不支持async await语法 编译出现提示缺少tslib错误 [ 63%]

...await语法 编译出现提示缺少tslib错误 错误提示:This syntax requires an imported helper but module 'tslib' cannot be found    semantic error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found.     at error (D:\Program Files\nodejs\node_global\npm\n...

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

58. 微信小游戏JS合并问题 [ 62%]

...在微信小游戏那边game.js里面导入这个JS文件 window.Matter = require("./matter.js"); 这样写确实能用了,但这个写法在有些机器上面不支持,会直接卡死,直接卡死在微信那边的loding界面(已经测试过百分百触发),只要这样些就会卡死...

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

59. app构建IOS包 进入游戏提示加载游戏失败,可能由于你的网络不稳定,请退出重进 [ 62%]

...e in the package:app.json 2018-01-09 20:50:15.573 ZhuaWawa[2531:1863829]  require(/sdcard/layabox/scripts/index.js) 2018-01-09 20:50:15.575 ZhuaWawa[2531:1863829] found the file in the package:scripts/index.js 2018-01-09 20:50:15.580 ZhuaWawa[2531:1863829]  ========================================...

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

60. Laya 2.0 微信白名单 nativefiles 配置 [ 62%]

...回复 bpmf_d 赞同来自: 136*****507 laya.wxmini.js  是在game.js里require的 2019-05-14 1 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 laozhou 相关问题 看了其他引擎才发现 LAYA 真的太太太太好用了!!!! ...

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