我想根据给定的节点找出动态树中的所有父节点并展开父节点。
function Expand(node){
$(".dynatree-node").each(function(){
if($(this).text() == node){
node.visitParents( function (node) {
node.toggleExpand();
},true);
}
});
}
我做错了什么?如何继续?
最佳答案
node.makeVisible() 将展开父级
关于javascript - 展开动态树中节点的父节点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17096731/