Archive

Posts Tagged ‘Extjs’

Extjs Tree通过递归删除子节点

June 24th, 2008 No comments

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: ,