zTree树形菜单回显功能

/**回调函数*/

callback: {
// beforeRemove: zTreeBeforeRemove,
// beforeRename: zTreeBeforeRename,
beforeCheck: zTreeBeforeCheck,
// beforeClick: zTreeBeforeClick,
onAsyncSuccess: zTreeOnAsyncSuccessPublic
}



function zTreeOnAsyncSuccessPublic(event, treeId, treeNode, msg) {


var treeObj = $.fn.zTree.getZTreeObj(treeId);
var node = treeObj.getNodeByParam("id", knowledgeId, null);
if(node!=null){
treeObj.checkNode(node, true, true);
}

 //   alert(msg);
};

你可能感兴趣的:(js)