zTree——删除所有节点

var treeObj=$.fn.zTree.getZTreeObj('org');
var nodes = treeObj.getNodes();
for (var i = nodes.length-1; i >= 0; i--) {
	 treeObj.removeNode(nodes[i]);
}

你可能感兴趣的:(ztree)