87,995
社区成员
发帖
与我相关
我的任务
分享
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");