大约有 28 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0035 秒)
... 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
...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
...json,似乎和AS3的不太一样。 我的tieldmap生成的json文件里data是这种格式,地图显示有误 我用list.array=Array;数据全部插进去数组里了,但是list中没有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据...
来源: Laya_社区 发布时间: 20151110
怎么使用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
...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
...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
...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
...码后,现在显示正常了。 __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
..."post", "text"); http.once(Laya.Event.COMPLETE, this, function(data:any){ var data = JSON.parse(data); }); 附件 : --> 2024-01-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个...
来源: Laya_社区 发布时间: 20240121
...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