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

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

1. throw new Error 后无任何输出... [ 100%]

throw new Error 后无任何输出... 2016-12-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 popo 赞同来自: throw new Error("setChildIndex:The index is out of bounds.") 这一种写法就是个浪费劳动...

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

2. layaair2-cmd compile 一直报错loader.js:638 throw err; [ 94%]

layaair2-cmd compile 一直报错loader.js:638 throw err; 版本如下: PS E:\test2\test2> layaair2-cmd -v 1.6.15 PS E:\test2\test2> gulp -v CLI version: 2.3.0 Local version: Unknown PS E:\test2\test2> npm -v 7.19.0   报错内容: PS E:\test2\test2> layaair2-cmd compile internal/m...

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

3. 网络和格式-ProtocolBuffer [ 90%]

...ome.proto", onAssetsLoaded); function onAssetsLoaded(err, root) { if (err) throw err; // Obtain a message type var AwesomeMessage = root.lookup("awesomepackage.AwesomeMessage"); // Create a new message var message = AwesomeMessage.create( { awesomeField: "AwesomeString" }); // Verify the message if ...

来源: Laya_示例 发布时间: 20240930

4. 网络和格式-ProtocolBuffer [ 90%]

...ome.proto", onAssetsLoaded); function onAssetsLoaded(err, root) { if (err) throw err; // Obtain a message type var AwesomeMessage = root.lookup("awesomepackage.AwesomeMessage"); // Create a new message var message = AwesomeMessage.create( { awesomeField: "AwesomeString" }); // Verify the message if ...

来源: Laya2.0_示例 发布时间: 20240930

5. 解决游戏最小化退到后台后浏览器会强制1秒执行一次ILaya.stage._loop() [ 83%]

...mp; typeof ms !== 'bigint') {                     throw TypeError('sleep: ms must be a number')                 }                 throw RangeError('sleep: ms must be a number that is greater than 0 but less than Infinity')...

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

6. 在加载swf动画之后在封装的里面报错了 , 用的官网的例子 [ 72%]

...to.getInt16=function(){         if (this._pos_+2 > this._length)throw "getInt16 error - Out of bounds";         var us=this._d_.getInt16(this._pos_,this._xd_);         this._pos_+=2;         return us;     } 只在那个 If  那一行报错了 pos的大小是1...

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

7. ts加密md5码封装 [ 70%]

...r, bit: number = 8, max: number = Math.pow(2, bit) - 1) { if (code < 0) throw new Error("code should be greater than: 0"); if (code > max) throw new Error("code should be less than: " + max); return this.padding(code.toString(2), bit, "0", false); } to_hex(code: number, bit: number = 8, max: n...

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

8. rev-path的nodejs库被修改了,导致版本管理失效 [ 70%]

...name'); module.exports = (pth, hash) => { if (!(pth && hash)) { throw new Error('`path` and `hash` required'); } return modifyFilename(pth, (filename, ext) => `${filename}-${hash}${ext}`); }; module.exports.revert = (pth, hash) => { if (!(pth && hash)) { throw new Error('`pa...

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

9. box2d动态创建绑定多个关节报错 Node:the component is singleton,can't add the second one. [ 68%]

...ce=function(comp){         if (comp.owner)             throw "Node:the component has belong to other node.";         if (comp.isSingleton && this.getComponent((comp).constructor))             throw "Node:the component is singleton,can't add the second ...

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

10. 2.4.0bate IDE layaair2-cmd 安装错误求解 [ 67%]

...layagame\sblaya2> layaair2-cmd internal/modules/cjs/loader.js:638     throw err;     ^ Error: Cannot find module 'C:\Users\Administrator\AppData\Roaming\npm\node_modules\layaair2-cmd\layaair2-cmd.js'     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)     at Fu...

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