一.思路

1、利用 getNodeByParam 等方法找到你需要选中的节点
2、利用 selectNode 方法选中节点
3、直接调用 callback.click

二.代码

var treeObj = $.fn.zTree.getZTreeObj("divId");
var nodes = treeObj.getNodesByParam("code", "xaList", null);
treeObj.selectNode(nodes[0]);
menuClick(null,"divId",nodes[0]);

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-19
  • 2022-12-23
  • 2022-12-23
  • 2021-11-06
  • 2022-02-07
猜你喜欢
  • 2022-01-23
  • 2022-12-23
  • 2021-11-30
  • 2021-07-29
相关资源
相似解决方案