extjs,清空treepanel数据. //调用 var rootNode = tree.getRootNode(); removeChildrenData(rootNode); //清理节点的数据 function removeChildrenData(node) { if (!node) {return;} while (node.hasChildNodes()) { removeChildrenRecursively(node.firstChild); node.removeChild(…