[LayaAir3]list.selectHandler
list.selectHandler选项点击事件,不能连续点击同一index的选项
private onSelect(index: number): void {
console.log("当前选择的索引:" + index);
let checkBoxItem:Laya.CheckBox = this._list.getChildAt(index).getChildAt(0) as Laya.CheckBox;
if(checkBoxItem!=null){
switch(checkBoxItem.name.trim()){
case "0":{
console.log("目录");
}break;
case "1":{
console.log("自转");
}break;
private onSelect(index: number): void {
console.log("当前选择的索引:" + index);
let checkBoxItem:Laya.CheckBox = this._list.getChildAt(index).getChildAt(0) as Laya.CheckBox;
if(checkBoxItem!=null){
switch(checkBoxItem.name.trim()){
case "0":{
console.log("目录");
}break;
case "1":{
console.log("自转");
}break;
没有找到相关结果
已邀请:
2 个回复
shiyang
赞同来自: layabox
谷主
赞同来自: