MzTreeView的问题,有使用过的进......

hnwlh hnwlh 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我要给树的某个父节点加上焦点,可以展开节点,但是在给节点焦点时提示:
“节点 2 没有正确的挂靠在有效树节点上!
 节点 id 序列 = 2”

请问这是什么情况?应该怎么解决这个问题?


var tree = new MzTreeView("tree");

function treefocus(index)
{
  tree.expand("1", true);
  if (index == "" || index == null)
  {
    return;
  }
  tree.expand(index, true); //展开节点
  tree.onfocus=tree.focus(index); //给节点加上焦点
}

treefocus("2");
...全文
评论 2
收藏 已收藏
分享
返回顶部
hnwlh
JavaScript 87,983 成员 224,681 内容