标签:
var treeObj = $.fn.zTree.getZTreeObj("tree"); var nodes = treeObj.getSelectedNodes(); if(typeof nodes[0].children.length>0){ //为父节点 }
zTree判断是否为父节点
原文地址:http://www.cnblogs.com/liuswi/p/4381989.html