var treeObj = $.fn.zTree.getZTreeObj("treeDemo"); var node = treeObj.getNodeByParam("id", "370000"); treeObj.selectNode(node); setting.callback.onClick = onClick;//要执行的方法function onClick() {......}
转载于:https://blog.51cto.com/lujinxiong/1837062
var treeObj = $.fn.zTree.getZTreeObj("treeDemo"); var node = treeObj.getNodeByParam("id", "370000"); treeObj.selectNode(node); setting.callback.onClick = onClick;//要执行的方法function onClick() {......}
转载于:https://blog.51cto.com/lujinxiong/1837062