iTree怎么实现折叠,API中无效果

提问 未结 4 5562
悬赏:20飞吻
onLoadSuccess: function (node, data) {
var children = $("#" + myTreeId).iTree("getChildren");
console.log(children);
for (var i = 0; i < children.length; i++) {
//if (children[i].iLevel >= level) {
$("#" + myTreeId).iTree('collapse', children[i].target);
//}
}
$("#" + myTreeId).iTree('collapseAll');
}
回帖
回帖须知