如何获取树状过滤每层的值?
var sels = 树状过滤1.getSelectedObjects();
var filter = new Array();
var subFilter = new Array();
var thiFilter = new Array();
if(sels.length > 0){
for(var i = 0; i < sels.length; i++) {
for(var j= 0; j < sels[i].length; j++) {
if(j == 0){
filter[i]=sels[i][j]
}
else if(j==1){
subFilter[i]=sels[i][j]
}
else {
thiFilter[i]=sels[i][j]
}
}
}
}
param["firstFilter"]=filter
param["secondFliter"]=subFilter
param["thirdFilter"]=thiFilter
//debug(param["firstFilter"].join(',')) //去掉debug前面的双斜杠可以debug看一下数据是否正确
//debug(param["secondFliter"].join(','))
//debug(param["thirdFilter"].join(','))
|