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

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

1. Uncaught 无法实例class PhysicsCollider extends PhysicsTriggerComponent [ 100%]

...     this._simulation._removePhysicsCollider(this);     }     _parse(data) {         (data.friction != null) && (this.friction = data.friction);         (data.rollingFriction != null) && (this.rollingFriction = data.rollingFriction);         (data.restitution != nul...

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

2. Laya.loader加载BUG [ 95%]

...eturn;         }   而type 是 atlas   __proto.onLoaded=function(data){         //add by yeyq, 检查是否正在下载,避免网页reload         this.event("progress",0);          var type=this._type;         if (type=="plfb"){             t...

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

3. 解析JSON格式的数据 [ 82%]

...json,似乎和AS3的不太一样。 我的tieldmap生成的json文件里data是这种格式,地图显示有误 我用list.array=Array;数据全部插进去数组里了,但是list中没有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据...

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

4. 怎么使用http请求 [ 81%]

怎么使用http请求 httpRequest: function (url, data) { var xhr = cc.loader.getXMLHttpRequest(); if (!xhr.onreadystatechange) { xhr.onreadystatechange = function () { if (xhr.readyState == 4 && (xhr.status >= 200 && xhr.status <= 207)) { //cc.log("response:\n" + xhr.respons...

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

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

...lp = fork(gulpPath, cmd, { silent: true, shell: true, }); _gulp.stdout.on('data', (data) => { console.log(`${data}`); }); _gulp.stderr.on('data', (data) => { console.log(`${data}`); }); _gulp.on('close', (code) => { console.log(`exit:${code}`); });   b)、创建并编写脚本 tools-publ...

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

6. socket大型项目回调 [ 76%]

...dlers[Package.TYPE_HEARTBEAT] = this.heartbeat; this.handlers[Package.TYPE_DATA] = this.onData; this.handlers[Package.TYPE_KICK] = this.onKick; } public init(params,cb:Function):void{ console.log("init",params); this.initCallback = cb; var host = params.host; var port = params.port; var uid = params...

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

7. XMLRequest在layaNative下请求崩溃,请求官方协助! [ 75%]

...yaNative下请求崩溃,请求官方协助!  public post(url: string, data: any, callback: (this: void, data: JSON) => void): void {         let hr = new Laya.HttpRequest();         hr.once(Laya.Event.COMPLETE, this, (e: any): void => {             callback(JSON.parse(hr.dat...

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

8. png使用base64显示异常 [ 75%]

...码后,现在显示正常了。 __proto.parseImgForBuffer = function(url,data){ var _this = this; var image; var onload = function () { // image.onload = null; // image.onerror = null; // var data = Laya.Texture2D._parse(image); // data._url = "sdfasf" // _this.onLoaded(data); img=HTMLImage.create...

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

9. [LayaNative3]打包安卓发送http发送数据发送后端接收不正确 [ 74%]

..."post", "text");         http.once(Laya.Event.COMPLETE, this, function(data:any){             var data = JSON.parse(data);         }); 附件 : --> 2024-01-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个...

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

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

...his,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"]);     function processHandler(data){ console.log (data) } function completeHa...

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