大约有 8 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0026 秒)
...i+'tong.jpg'}}; this.data.push(item); } console.log(this.data); this.list1.dataSource = this.data; this.list1.x = 50; this.list1.y = 500; this.list1.getChildAt(0).height = 100; this.list1.vScrollBarSkin = ""; this.list1.hScrollBarSkin = "comp/hscroll.png"; this.list1.renderHandler = new Laya.Handler...
来源: Laya_社区 发布时间: 20170914
...tem(cell, index) { console.log(index); // console.log(cell.dataSource); cell.setImg(cell.dataSource[index]); cell.on(Laya.Event.CLICK, function() { console.log("click") }) } function onSelect(index) { console.log("当前选择的索...
来源: Laya_社区 发布时间: 20180724
...ist.getItem(xxx).getChildByName()无效,获取不到,我发现只要是DataSource里面没有定义的参数用list.getItem(xxx)都获取不到,list.getItem(xxx)就是list.datasource[xxx]吧? weiyongwill • 2017-01-06 11:21 "this.sList.getItem(...).getChildByName is not a function"...
来源: Laya_社区 发布时间: 20170105
...ist.array = effList; } function updateItem(cell, index) { console.log(cell.dataSource); cell.setImg(cell.dataSource); } function onSelect(index) { console.log("当前选择的索引:" + index); } 我想实现的效果是 设置每个特效宽高都为80 * 80 然后一排显示3个 界...
来源: Laya_社区 发布时间: 20170627
...rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes("config/i18n.json"); text_info.text = i18n[`tips_text$text_i18n$${1101 + index}`][ConfigInfo.lang] } public setCurPage(ind...
来源: Laya_社区 发布时间: 20170215
...rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes("config/i18n.json"); text_info.text = i18n[`tips_text$text_i18n$${1101 + index}`][ConfigInfo.lang] } public setCurPage(ind...
来源: Laya_社区 发布时间: 20181112
...rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes("config/i18n.json"); text_info.text = i18n[`tips_text$text_i18n$${1101 + index}`][ConfigInfo.lang] } public setCurPage(ind...
来源: Laya_社区 发布时间: 20180724
...ull, onLoaded)); }*/ function updateItem(cell, index) { cell.setImg(cell.dataSource); } function onLoaded(): void { var rankList = new Laya.List(); //rankList.scrollBar.elasticBackTime = 200; //rankList.scrollBar.elasticBackTime = 200;//设置橡皮筋回弹时间。单...
来源: Laya_社区 发布时间: 20180507