大约有 91 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0027 秒)
Laya_社区(52) Laya2.0_文档(9) Laya_示例(5) laya_api(5) Laya3.0_api(5) Laya2.0_示例(5) Laya2.0_api(5) Laya3.0_文档(5)
...,真是服LAYA,哎,搞了我一晚上,真心不行 this.small_map.selectHandler = new Laya.Handler(this, onSelect_small); this.big_map.selectHandler = new Laya.Handler(this, onSelect_big); function onSelect_small(e) { Laya.big_switch = 0 Laya.maptype = "small" this.now_map.text = "当前地...
来源: Laya_社区 发布时间: 20180719
...dding = "0,0,0,0"; tab.selectedIndex = 1; onSelect(tab.selectedIndex); tab.selectHandler = new Handler(this, onSelect); Laya.stage.addChild(tab); return tab; } function onSelect(index) { console.log("当前选择的标签页索引为 " + index); } })();module laya { import Stage = Laya.Stage; import...
来源: Laya_示例 发布时间: 20251209
list的Handler.create的点击事件第二次点击不生效 list.selectHandler = Handler.create(this,onRender, null, false);//滚动列表点击事件 private function onRender(index:int):void{ list.setItem(lastSelect,arrConver(lastSelect,false));//取消选中效果 list.setItem(index,arrConver(i...
来源: Laya_社区 发布时间: 20171129
... = "0,0,0,0"; tab.selectedIndex = 1; this.onSelect(tab.selectedIndex); tab.selectHandler = new Handler(this, this.onSelect); Laya.stage.addChild(tab); return tab; } onSelect(index) { console.log("当前选择的标签页索引为 " + index); } } new UI_Tab();module laya { import Stage = Laya.Stage; ...
来源: Laya2.0_示例 发布时间: 20251209
...行的处理器,(默认返回参数: 项索引(index:number))。*/ selectHandler: Handler; /**单元格渲染处理器(默认返回参数cell:Box,index:number)。*/ renderHandler: Handler; /**单元格鼠标事件处理器(默认返回参数e:Event,index:number)。*/ mouseHandler: Handler; /...
来源: Laya_社区 发布时间: 20180801
关于下拉列表的选择触发 this.small_map.selectHandler = new Laya.Handler(this, onSelect_small); this.big_map.selectHandler = new Laya.Handler(this, onSelect_big); function onSelect_small(e) { Laya.big_switch = 0 Laya.maptype = "small" this.now_map.text = "当前地图:" + this.small_map....
来源: Laya_社区 发布时间: 20180719
...值 this.sList.selectEnable = true;//列表项是否可选 // this.sList.selectHandler = Laya.Handler.create(this,this.onSelect,null,false); this.sList.mouseHandler = new Laya.Handler(this,this.onMouse);//鼠标事件响应 } Laya.class(ServerListView,"ServerListView",_super); var _proto_ = ServerLi...
来源: Laya_社区 发布时间: 20170805
..."; rg.labelSize = 20; rg.labelBold = true; rg.labelPadding = "5,0,0,5"; rg.selectHandler = new Handler(this, this.onSelectChange); Laya.stage.addChild(rg); return rg; } private onSelectChange(index: number): void { console.log("你选择了第 " + (index + 1) + " 项"); } } } new laya.UI_RadioGroup(...
来源: Laya_示例 发布时间: 20251209
..."; rg.labelSize = 20; rg.labelBold = true; rg.labelPadding = "5,0,0,5"; rg.selectHandler = new Handler(this, this.onSelectChange); Laya.stage.addChild(rg); return rg; } private onSelectChange(index: number): void { console.log("你选择了第 " + (index + 1) + " 项"); } } } new laya.UI_RadioGroup(...
来源: Laya2.0_示例 发布时间: 20251209
...隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = true; list.selectHandler = new Handler(this, this.onSelect); list.renderHandler = new Handler(this, this.updateItem); // 设置数据项为对应图片的路径 let data = []; for (let i = 0; i = []; for (var i: number = 0; i < 10; ++i) {...
来源: Laya2.0_示例 发布时间: 20251209