Javascript extjs:获取具有特定值的多个节点

Javascript extjs:获取具有特定值的多个节点,javascript,extjs,extjs4,Javascript,Extjs,Extjs4,我有几个节点具有保存值(例如,标记为删除)。我怎样才能得到所有的?FindChild可以给我第一个节点,正如我所看到的。。。 本部分来自文件: findChild( attribute, value, [deep] ) : Ext.data.NodeInterface Finds the first child that has the attribute with the specified value. 我有一个treeStore,可以在其中检查一些元素是否被删除,然后单击“保存”按钮。

我有几个节点具有保存值(例如,标记为删除)。我怎样才能得到所有的?FindChild可以给我第一个节点,正如我所看到的。。。 本部分来自文件:

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 )

我该怎么做才能获得所有这些属性?

For loop over all node,并查找属性设置为
true
的节点

store.getRootNode().cascadeBy(函数(节点){
if(node.get('delete')==true){
...  
}
});

但如果您使用
Ext.tree.Panel
显示树,您只需添加复选框并获取选中节点,如Sencha Check tree示例中所述:

请更好地解释。很难理解你在说什么。