1.設置所有非末級節點不可選 var nodes = treeObj.transformToArray(treeObj.getNodes()); for (var i = 0; i < nodes.length; i++) { if (nodes[i].isParent) { treeObj.set ...
1.設置所有非末級節點不可選
var nodes = treeObj.transformToArray(treeObj.getNodes());
for (var i = 0; i < nodes.length; i++) {
if (nodes[i].isParent) {
treeObj.setChkDisabled(nodes[i], true);
}
}