大约有 59 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0041 秒)
LayaAir编译器错之for_in 编译器会新一个变$each_i来代替i 此情况下尽量写成以下方式 ------------------as------------------ for (var i:String in Loader.loadedMap) { var t:Texture = null; if(Lo...
来源: Laya_社区 发布时间: 20170113
... } var tAniSprite; for (var i = 0; i < this.aniSpriteArray.length; i++) { tAniSprite = this.aniSpriteArray[i]; tAniSprite.show(); } } ...
来源: Laya_社区 发布时间: 20220627
多个button如何区分 通过 for 循环 加入多个button 添加事件 this.emojiBut1.on(Laya.Event.CLICK,this,this.onEmojiBut1Click); 多个button 如何区分 点击的哪一个button 可以设置tag吗 或者通过监听事件透传? 附件 : --> 2017-04-25 添加评论 免费帖 --> ...
来源: Laya_社区 发布时间: 20170425
...个BUG,修复如下: laya.d3.js -> SimpleSingletonList.Clear -> for (var i = 0, n = this.length; i < n; i++) 引擎代码 i没有赋初值,导致 i<n永远为false. 2020-03-21 2 1 分享 微博 QZONE 微信 腊笔小新 赞同来自: 186*****645 clear() { var elements = th...
来源: Laya_社区 发布时间: 20200206
...(); } var __extends = (this && this.__extends) || function(d, b) { for (var p in b) { (b.hasOwnProperty(p)) && (d[p] = b[p]); } function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var BackGround = (function(...
来源: Laya_社区 发布时间: 20170619
...all.lh", Laya.Handler.create(this, function(sp){ for(var i=0; i<3; i++){ var ball = myscene.addChild(sp.clone()); ball.name = i.toString(); } console.l...
来源: Laya_社区 发布时间: 20200723
...e] || {self:name}; if(_super) { var supers=_super.split(','); a.extend=[]; for(var i=0;i<supers.length;i++){ var nm=supers[i]; ins[nm]=ins[nm] || {self:nm}; a.extend.push(ins[nm]); } } var o=window,words=name.split('.'); for(var i=0;i<words.length-1;i++) o=o[words[i]]; o[words[words.length-1]]...
来源: Laya_社区 发布时间: 20180806
...(RES.ONLOADGROUPERROR,"资源组名称不能为空"); return; } var group; for(var i in RES.groups){ var name = RES.groups[i].name; if(name == groupName){ group = RES.groups[i]; break; } } if(!group){ console.error("加载了不存在的资源组"); RES.getInstance().event(RES.ONLOADGROUPERROR,"加...
来源: Laya_社区 发布时间: 20161011
... var tTexture; var $each_tTexture; /*for each*/for($each_tTexture in this.subTextureDic){ tTexture=this.subTextureDic[$each_tTexture]; if(tTexture) tTexture.destroy(); ...
来源: Laya_社区 发布时间: 20190704
...((encode == null || encode) ? encodeURIComponent(param) : param); } else { for (var i in param) { var k = key == null ? i : key + (param instanceof Array ? '[' + i + ']' : '.' + i); paramStr += CommonUtils.urlEncode(param[i], k, encode); } } // var paramStr = ""; // for (var prop in param) { // para...
来源: Laya_社区 发布时间: 20170628