//可以参考这个
var date1=列表参数1.getSelectedObjects()
var select_date1=[]
for (var i=0;i<date1.length;i++){
select_date1.push(date1[i)
}
param["date1"]=select_date1
param["select_date1"]=param["date1".join("") //将数组转为字符串
if(param["select_date1".indexOf("a")!=-1 && param["select_date1".indexOf("b")!=-1){ //当a、b都勾选时
列表参数2.setObjects(["1","2","3","4","5") //设置组件数据
}else if(param["select_date1".indexOf("a")!=-1 && param["select_date1".indexOf("b")==-1){ //当只勾选a时
列表参数2.setObjects(["1","2")
}else if(param["select_date1".indexOf("a")==-1 && param["select_date1".indexOf("b")!=-1){ //当只勾选b时
列表参数2.setObjects(["3","4","5")
}else{ //当a、b都不勾选
列表参数2.setObjects(["1","2","3","4","5")
}
|