callback: { onAsyncSuccess: zTreeOnAsyncSuccess } //异步加载成功回调函数 function zTreeOnAsyncSuccess(event, treeId, treeNode, msg){ $.fn.zTree.getZTreeObj(treeId).expandAll(true); }