//递归获取getchilds() getchilds: function (id_arr,curent_node) { ts = this; childnodes = curent_node.childNodes; Ext.each(childnodes,function () { var nd = this; id_arr.push(nd.getId()); if (nd.hasChildNodes()) { ts.getchilds(id_arr, nd); } }); }
//递归获取getchilds() getchilds: function (id_arr,curent_node) { ts = this; childnodes = curent_node.childNodes; Ext.each(childnodes,function () { var nd = this; id_arr.push(nd.getId()); if (nd.hasChildNodes()) { ts.getchilds(id_arr, nd); } }); }