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

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

11. 【经验分享】如何让ts项目支持装饰器语法,以及自动化发布相关的一些东西 [ 68%]

... 文件:将该文件的 16065 行注释掉,注释后的代码如下: error(err, pos) { if (typeof err === 'string') err = { message: err }; if (pos) augmentCodeLocation(err, pos, curSource, id); err.id = id; err.hook = 'transform'; // return pluginContext.error(err); },该方法虽然可以解...

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

12. 编译报错。如何定位问题 [ 64%]

编译报错。如何定位问题 SyntaxError: Unexpected token: punc (,) at JS_Parse_Error.get (eval at <anonymous> (/Applications/LayaAirIDE_beta.app/Contents/Resources/app/node_modules/layacmd/node_modules/uglify-js/tools/node.js:27:1), <anonymous>:86:23) 2017-11-13 添加评论 免...

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

13. 最新版本IDE,如何获取http返回的json数据 [ 64%]

...时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.once(Event.PROGRESS,this,processHandler);  var sendData = {account:"aaa",password:"bbb"} xhr.send("http://xxx/login", JSON.stringify(sendData), "post", "json", ["content-type","application/json"...

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

14. 关于laya图片资源缓存的问题 增量更新文件缓存 [ 64%]

...= _name + _hash } _content = JSON.stringify(_content) } catch(e) { console.error(e) } file.contents = new Buffer(_content) this.push(file) return cb() }) }()) .pipe(gulp.dest('./server/static')) }) gulp.task('default', ['updata_atlas_version'])   供大家参考 ^_^ 附件 : --> 2018-04-12 添加...

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

15. IDE动画 添加过程出现图片资源丢失 [ 64%]

...素始终保持在最底部显示? 编译调试启动chrome出现错误: Error processing launch: Error Could not attach to main target Laya mac版的IDE 是没测试就上线了吗? 版本不匹配! 全局 tsc (2.2.2) != VS Code 的语言服务(2.1.5)。可能出现不一致的编译错误 谷...

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

16. downloadFile:fail url scheme is invalid [ 63%]

...r 运行了url地址会停止当前运行 发布小游戏时提示:[xmldom error] element parse error: Error: invalid tagName: 问题状态 最新活动: 2019-02-14 17:02 浏览: 4494 关注: 6 人 159*****938 • 2019-02-14 17:09 解决了吗 zkang5 • 2018-11-29 14:32 我也有这个问题,不...

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

17. laya2.0 localStorage语法错误 [ 62%]

...先登录 发起人 yao 相关问题 编译调试启动chrome出现错误: Error processing launch: Error Could not attach to main target 版本不匹配! 全局 tsc (2.2.2) != VS Code 的语言服务(2.1.5)。可能出现不一致的编译错误 laya2.0加载3d场景报错Uncaught TypeError: Cannot...

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

18. uglify压缩后的错误堆栈解析 [ 62%]

...mes:true } })) .pipe(sourcemaps.write(releaseDir + '/../sourcemaps')) .on('error', function (err) { console.warn(err.toString()); }) .pipe(gulp.dest(releaseDir)); } }); 可以看到laya是用uglify工具压缩的js   2、生成js对应的 .js.map文件 .js.map :map文件是js文件压缩后,文...

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

19. socket大型项目回调 [ 60%]

...eloLaya{ export class Pomelo{ static DEBUG:boolean = true; static EVENT_IO_ERROR:string = "io-error"; static EVENT_CLOSE:string = "close"; static EVENT_KICK:string = "onKick"; static EVENT_HEART_BEAT_TIMEOUT:string = 'heartbeat timeout'; private JS_WS_CLIENT_TYPE:string = 'js-websocket'; private JS_...

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

20. 解析sk资源报错 [ 59%]

解析sk资源报错 GameDemo.max.js:21170 Uncaught RangeError: Offset is outside the bounds of the DataView   代码: package com.ppt.components.role {     import laya.ani.bone.Skeleton;     import laya.ani.bone.Templet;     import laya.events.Event;          public class CombatR...

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