ztree通过id获取节点对象
var treeObj = $.fn.zTree.getZTreeObj("treeId"); var node = treeObj.getNodeByParam("id", nodeId, null); // nodeId就是要查询的id,最后一个参数是指定节点下查询,全局的一般可以不写 var node = treeObj.getNodeByParam("id", nodeId);
var treeObj = $.fn.zTree.getZTreeObj("treeId"); var node = treeObj.getNodeByParam("id", nodeId, null); // nodeId就是要查询的id,最后一个参数是指定节点下查询,全局的一般可以不写 var node = treeObj.getNodeByParam("id", nodeId);