var setting = {
showLine: true,
callback: {
beforeClick: zTreeBeforeClick
}
};
//当前选中的节点
function zTreeBeforeClick(treeId, treeNode, clickFlag) {
arrSelected=getChildNodes(treeNode);
};
function getChildNodes(treeNode) {
var childNodes = zTree.transformToArray(treeNode);
var nodes = new Array();
for(i = 0; i < childNodes.length; i++) {
nodes[i] = childNodes[i].id;
}
return nodes.join(",");
}