2013-11-22 47 views
0

我有幾個節點具有保存值(例如,標記爲刪除)。我怎樣才能得到他們所有的人? FindChild能給我只是第一個節點,因爲我可以看到... 這部分是從文檔:extjs:獲取具有特定值的許多節點

findChild(attribute, value, [deep]) : Ext.data.NodeInterface 

Finds the first child that has the attribute with the specified value. 

我有一個treeStore,其中一個可以檢查刪除一些內容,然後單擊「保存」按鈕。之後,我想擁有所有選中的元素。用findChild方法,我可以得到其中的第一個:

...store.getRootNode().findChild('delete', true, true) 

我應該怎麼做才能讓它們全部得到?

+0

請說明更好。很難理解你在說什麼。 –

回答

相關問題