大约有 76 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0038 秒)
...用2个方法,在 H5 上是可以正常输出内容的。 ```javascript require("a.js") require("b.js") a(); //a b(); //b ``` 但是在淘宝创意互动项目中是不支持这种写法的,需要把这 2 个方法挂载到全局变量 `$global.window` 上,修改如下: ```javascript //a.js ...
来源: Laya2.0_文档 发布时间: 20210714
...饰器语法 }, } 但修改完配置编译的时候会报错:This syntax requires an imported helper but module 'tslib' cannot be found 开发群里有大神提供了一种解决办法: 右键 LayaAirIDE.app->显示包内容,定位到 Contents->Resources->app->node_modules->rol...
来源: Laya_社区 发布时间: 20201223
...ction.Module._load (internal/modules/cjs/loader.js:562:25) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at Object.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_modules\layaair2-cmd\node_modules\vin...
来源: Laya_社区 发布时间: 20210701
...缺少代码,添加下面的代码可以解决问题。 window.loadLib = require; loadLib("weapp-adapter.js"); 另外,发布目录的index.html没有意义,可以删除。 2019-06-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...
来源: Laya_社区 发布时间: 20190626
...ble rectangular area). If the rectangular collision area does not meet the requirements, you can use the drawing area of the hit area as the collision area. The hit area takes precedence over width and height of node as the non-penetrable mouse collision area. * Note that for UI object nodes with a ...
来源: Laya_社区 发布时间: 20250825
...把matter.js加入了libs中。并且在game.js中加入了 let matter = require("libs/matter.js"); window.Matter = matter; 但是依然没有解决问题 2018-05-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 ...
来源: Laya_社区 发布时间: 20180512
...到的js都打包在一起, 分开的js文件,在微信的game.js里写require("xxx.js")就可以了 2018-05-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 w1114367261 赞同来自: 发布后的js是有一...
来源: Laya_社区 发布时间: 20180502
...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
... 1 个回复 rabbit 赞同来自: karin666 、李家智 import YQBCommon = require("../../libs/pb2");引用这个没必要,而且路径也是错的。删除这行,pb2.d.ts没问题后,即可正常使用。。 pb2.d.ts和protobufjs.d.ts也有问题,别用export as namespace 用 declare mo...
来源: Laya_社区 发布时间: 20190220
...的报错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