1.设置所有非末级节点不可选
var nodes = treeObj.transformToArray(treeObj.getNodes());
for (var i = 0; i < nodes.length; i++) {
if (nodes[i].isParent) {
treeObj.setChkDisabled(nodes[i], true);
}
}
时间: 2024-10-01 08:02:55