PEIYANGXINQU

 

ztree根据treeId展开指定节点并触发单击事件

ztree.expandNode(ztree.getNodeByParam("id",treeId,null));//展开指定节点
ztree.selectNode(ztree.getNodeByParam("id",treeId,null));//选中指定节点

ztree.setting.callback.onClick(null, ztree.setting.treeId, ztree.getNodeByParam("id",treeId,null));//触发函数

 

http://blog.csdn.net/wzk2015/article/details/18652645

https://code.google.com/p/jquerytree/issues/detail?id=7

// onClick中的参数请参考ztree API
$.fn.zTree.getZTreeObj("treeElId").setting.callback.onClick();

posted on 2014-03-27 22:25  PEIYANGXINQU  阅读(13371)  评论(0编辑  收藏  举报

导航