html里的控件事件:onbeforenodeselect = beforenodeselect js里: beforenodeselect : function(e){ //禁止选中父节点 if (e.isLeaf == false) e.cancel = true; } 转载于:https://www.cnblogs.com/attlia/p/3660721.html