ztree 判断是否叶子节点

$('#zfdb').combotree('tree').tree('isLeaf',node.target) == true 表示是叶子节点,

$('#zfdb').combotree({
				height:34,
				width:160,
				onClick:function(node) {
					//如果是叶子节点,才可以做后面的操作
					if($('#zfdb').combotree('tree').tree('isLeaf',node.target)){
						dept_uuid = node.deUuid;
						$('#zfdb').combotree('setText','');
					}
				}
			});

猜你喜欢

转载自blog.csdn.net/heqinghua217/article/details/84447739