function 设置多选互斥功能(多选组件数组) {
for (let i = 0; i < 多选组件数组.length; i++) {
let object = 多选组件数组[i];
ui.setEvent(object, ‘checkedChange’, function (v1, isChecked) {
if(isChecked){
for (let j = 0; j < 多选组件数组.length; j++) {
多选组件数组[j].checked = false
}
v1.checked = true;
}
})
}
}
10-23
354
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
12-08
1613
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)