我正在尝试使用 ivhTreeviewBfs ( https://github.com/iVantage/angular-ivh-treeview#ivhtreeviewbfstree-opts-cb )
ivhTreeviewBfs(myTree, function(node) {
console.log(node)
})
但是,这仅打印第一级节点。我如何遍历整个列表?
我正在尝试使用 ivhTreeviewBfs ( https://github.com/iVantage/angular-ivh-treeview#ivhtreeviewbfstree-opts-cb )
ivhTreeviewBfs(myTree, function(node) {
console.log(node)
})
但是,这仅打印第一级节点。我如何遍历整个列表?