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

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

91. 为什么小游戏的发布非要把所有js打包到一个js里? [ 56%]

...到的js都打包在一起, 分开的js文件,在微信的game.js里写require("xxx.js")就可以了 2018-05-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 w1114367261 赞同来自: 发布后的js是有一...

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

92. 安装layaair2-cmd一直失败 [ 56%]

...ming\npm\node_modules\layaair2-cmd\no de_modules\core-js > node -e "try{require('./postinstall')}catch(e){}" Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript stand ard library! The project needs your help! Please consider supporting of core-js on Open...

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

93. layaair2-cmd compile 有bug [ 55%]

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

94. LayaAir 2.0 微信排行榜 离屏画布不能直接附加到组件纹理上 [ 55%]

...的报错Uncaught ReferenceError: loadLib is not defined at index.js:11 at require (WAGameSubContext.js:3) at subcontext.html:11 开放域代码到底怎么发布到主域呢 Max.魚魚魚鱼魚魚 • 2019-02-16 10:11 楼主问题解决了吗?方便的话,能分享一下2.0制作排行榜的dem...

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

95. laya2.0引入第三方库失败 [ 53%]

... 1 个回复 rabbit 赞同来自: karin666 、李家智 import YQBCommon = require("../../libs/pb2");引用这个没必要,而且路径也是错的。删除这行,pb2.d.ts没问题后,即可正常使用。。   pb2.d.ts和protobufjs.d.ts也有问题,别用export as namespace 用 declare mo...

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

96. layaair1.5.4测试版本ide下调试 报protobuf错误 [ 53%]

...oto: conf_game, _callBack: null, _proxy: Proxy, _data: null…} TypeError: require is not a function at Object.ProtoBuf.Util.Util.fetch (file:///D:/workspace_laya/car_h5_nonet/bin/h5/protobuf.js:354:26) at Object.ProtoBuf.loadProtoFile (file:///D:/workspace_laya/car_h5_nonet/bin/h5/protobuf.js:5150:...

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

97. Laya2下ts继承报错! [ 52%]

...应的类,你才能调用它。(看js文件源码的类结构部分,require的顺序,也就是对应import form的顺序是优先于类的声明的)   大概解决方法,砍掉循环,1和2,2和3,3和4之间,随便断开一个关联,使循环不成立即可。。 2018-11-17 0 2 分...

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

98. 仿<蚂蚁森林>案例——含C/S端源码 [ 52%]

... 非常感谢 有品青年 • 2018-10-11 10:45 你好,我运行是提示require is not define,是咋回事

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

99. App Updates for HTML5 Apps 这意味着iOS端就废了? [ 51%]

...you to update your existing apps as soon as possible. If your existing app requires more time to implement the guidelines, we've provided an additional six months, until March 3, 2020, to bring it into compliance. 2019-09-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

100. 打包native报错 [ 49%]

...he package:app.json   2019-06-18 13:34:09.276568+0800 test1[6479:65523]  require(/sdcard/layabox/scripts/index.js) 2019-06-18 13:34:09.277721+0800 test1[6479:65523] found the file in the package:scripts/index.js   2019-06-18 13:34:09.279091+0800 test1[6479:65523]  ===============================...

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