行一恒  

2013年8月31日

摘要: var nodes=treestore.getRootNode().childNodes; function addFirstCls(nodes){ if(nodes.length){ Ext.Array.forEach(nodes,function(item,index,array){ if(!item.isLeaf()){ addFirstCls(item.childNodes,"approve"); }else{ if(item.data["ApproveState"]=="Y"){ console.log(item); } } 阅读全文
posted @ 2013-08-31 12:23 行一恒 阅读(411) 评论(0) 推荐(0)