大约有 48 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0033 秒)
Laya_社区(39) Laya2.0_文档(3) Laya_示例(1) laya_api(1) Laya3.0_api(1) Laya2.0_示例(1) Laya2.0_api(1) Laya3.0_文档(1)
...ateItem(items):void{ var posY = 0; var data: Array<any> = []; for(var i= 0 ;i< items.UserWareList.length;i++){ var itemList = new BagItem(items.icon,items.name,items.count); itemList.pos(70,posY); ...
来源: Laya_社区 发布时间: 20170310
...被添加到舞台后 onEnable(): void { // 给List对象赋值 var data: Array<any> = []; for (var m: number = 0; m < 20; m++) { data.push({ m_label: "No." + m }); } this.list.array = data; } } 代码中,m_label的命名要与List列表项下的Label组件命名相同。 1.2.5 运行查...
来源: Laya3.0_文档 发布时间: 20251010
...otstrapper extends Sprite { protected var _list:List; protected var _items:Array; protected var _loadingBg:Sprite; public function Bootstrapper() { Laya.init(696, 1118, WebGL); Laya.stage.bgColor = "#232628"; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.screenMode = Stage.SCREEN_VERTICAL; ...
来源: Laya_社区 发布时间: 20170323
...es/ui/listskins/4.jpg"); data.push("../../res/ui/listskins/5.jpg"); } list.array = data; } function updateItem(cell, index) { cell.setImg(cell.dataSource); } function onSelect(index) { console.log("当前选择的索引:" + index); } })(); 2018-07-31 添加评论 免费帖 --> 分享 微博 ...
来源: Laya_社区 发布时间: 20180731
...ui/listskins/4.jpg"); // data.push("../../res/ui/listskins/5.jpg"); } list.array = data; } function updateItem(cell, index) { cell.label.text = cell.dataSource.lb; cell.input.text = cell.dataSource.value; // cell.setImg(cell.dataSource); } function onSelect(index) { console.log("当前选择的索...
来源: Laya_社区 发布时间: 20180312
...erHandler = new Handler(this, updateItem); Laya.stage.addChild(list); list.array = effList; } function updateItem(cell, index) { console.log(cell.dataSource); cell.setImg(cell.dataSource); } function onSelect(index) { console.log("当前选择的索引:" + index); } 我想实现的效果是 ...
来源: Laya_社区 发布时间: 20170627
list问题 我使用this.taskShowMainList.array = data,创建了一个list,data的数据长度是10,但是在打印console.log(this.taskShowMainList.cells)的时候,发现cells的长度只有8, 这样我就并不能获得list下的所有生成的item。我想获取list下生成的所有...
来源: Laya_社区 发布时间: 20190723
...this, this.onMouse) } onOpened(param: any) { super.onOpened(param); let imgArray = ; for (let i = 1; i < 7; i++) { imgArray.push(`ui/bg_help_0${i}.png`) } this.list_rule.array = imgArray; } public updateItem(cell: Laya.Box, index: number): void { let img_rule = cell.getChildByName("img_rule") as ...
来源: Laya_社区 发布时间: 20171202
...this, this.onMouse) } onOpened(param: any) { super.onOpened(param); let imgArray = []; for (let i = 1; i < 7; i++) { imgArray.push(`ui/bg_help_0${i}.png`) } this.list_rule.array = imgArray; } public updateItem(cell: Laya.Box, index: number): void { let img_rule = cell.getChildByName("img_rule") a...
来源: Laya_社区 发布时间: 20181112
...5) ####6. 在代码里给 List 对象赋值。 ```javascript var data: Array = []; for(var m:number =0;m (图6) ####8. 在代码里添加脚本,隐藏滚动条,设置拖拽的橡皮筋效果。 ```javascript m_list.scrollBar.hide = true;//隐藏列表的滚动条。 m_list.scrollBar.el...
来源: Laya2.0_文档 发布时间: 20210715