你自己参考吧,最主要的是下面的一个if里面的判断
先使用find函数根据id找到节点,再用select函数显示。如:
var node = $('#tt').tree('find', 12);
$('#tt').tree('select', node.target);
先使用find函数根据id找到节点,再用select函数显示。如: var node = $('#tt').tree('find', 12); $('#tt').tree('select', node.target)天津众 维UI设计提供