标签:array getchild turn des func UNC lag call orm
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(",");
}
标签:array getchild turn des func UNC lag call orm
原文地址:https://www.cnblogs.com/genghuilove/p/9371097.html