Home > Tech.Notes > Extjs Tree通过递归删除子节点

Extjs Tree通过递归删除子节点

Extjs Tree通过递归删除子节点信息:

function removeChildrenRecursively(node) {
    if (!node) return;
    while (node.hasChildNodes()) {
        removeChildrenRecursively(node.firstChild);
        node.removeChild(node.firstChild);
    }
}

参考: http://www.realcoding.net/article/view/4557

Categories: Tech.Notes Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

Additional comments powered by BackType