大约有 229 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0085 秒)
...认值 最好比List 数据长度要大 private listArr =[]; //包含List 数组 private arr = [0,1,2,3]; //List 的数据源(此代码中arr只起到渲染数量作用) /** * 创建List */ var list =new Laya.List(); list.bgColor ...
来源: Laya_社区 发布时间: 20190522
..., this._render_bigList); this.addChild(this.bigList); this.bigList.array = 数组 _render_bigList: function (cell, idx) { var data = this.bigList.array; if (idx >= data.length) { return; } cell.removeChildren(); var root = cell.getChildByName('root'); if (!root) { root = new Sprite(); root.pos(0,...
来源: Laya_社区 发布时间: 20170324
...本地缓存有没有,有的话 不处理,没得话,创建,push到数组中 private getView(clazz: any):Laya.Node{ for(let i:number =0 ; i<this.uiList.length ; i++){ let uiData = this.uiList[i]; if(uiData.clazz == clazz){ return uiData.view; } } }[/i]根据clazz名字获取本地缓存的...
来源: Laya_社区 发布时间: 20190222
...一个hello world显示不出来 laya 怎么不用图集加载多图为帧数组。。 问题状态 最新活动: 2020-06-04 13:19 浏览: 1053 关注: 3 人
来源: Laya_社区 发布时间: 20200604
...else条件里面,又把stage事件刷了出来,然后加到了 sendArr 数组里面,并且只有一个,因为 我之前的UI那个事件在if (!preO)上面的send已经执行完毕了,。而且我再UI完毕的时候 已经设置了event.stopPropagation();,也就是 this._event._stoped...
来源: Laya_社区 发布时间: 20180529
...组件实例。 Returns ReadonlyArray<Component> 返回组件实例数组。 contextHeight get contextHeight(): number Defined in laya/html/dom/HTMLDivElement.ts:179 获取內容高度 Returns number contextWidth get contextWidth(): number Defined in laya/html/dom/HTMLDivElement.ts:172 获取...
来源: Laya3.0_api 发布时间: 20231102
...组件实例。 Returns ReadonlyArray<Component> 返回组件实例数组。 currentSrc get currentSrc(): string Defined in laya/device/media/Video.ts:244 获取当前播放源路径。 Returns string currentTime get currentTime(): number set currentTime(value: number): void Defined in laya/de...
来源: Laya3.0_api 发布时间: 20231102
...组件实例。 Returns ReadonlyArray<Component> 返回组件实例数组。 currentSrc get currentSrc(): string Defined in laya/media/VideoNode.ts:154 获取当前播放源路径。 Returns string currentTime get currentTime(): number set currentTime(value: number): void Defined in laya/media...
来源: Laya3.0_api 发布时间: 20231115
...orter还可以改写资源的输出,这主要是通过exportInfo.contents数组。默认情况下,exportInfo.contents包含了一个元素,它表示将源文件原样复制到输出目录。下面的例子是直接替换源文件的输出,改为输出一个文本。 this.exportInfo.contents[...
来源: Laya3.0_文档 发布时间: 20251010