我要给树的某个父节点加上焦点,可以展开节点,但是在给节点焦点时提示:
“节点 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 没有正确的挂靠在有效树节点上!
节点 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");
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货