var treeObj = $.fn.zTree.getZTreeObj("tree"); var nodes = treeObj.getSelectedNodes(); if(typeof nodes[0].children.length>0){ //为父节点 }
时间: 2024-10-24 10:31:48
var treeObj = $.fn.zTree.getZTreeObj("tree"); var nodes = treeObj.getSelectedNodes(); if(typeof nodes[0].children.length>0){ //为父节点 }