Extjs 是否从Ext.util.MixedCollection获取值?
我如何从“年龄”中获得价值? 我已经有'record.data.items',但我不能再进一步了。我想要年龄的价值。有人能帮我吗 `Ext.util.MixedCollectionExtjs 是否从Ext.util.MixedCollection获取值?,extjs,Extjs,我如何从“年龄”中获得价值? 我已经有'record.data.items',但我不能再进一步了。我想要年龄的价值。有人能帮我吗 `Ext.util.MixedCollection ... items: Array[3] 0: c data: Object age: "4" id: "1" name: "sam" 1: c 2: c length: 3 __proto_
...
items: Array[3]
0: c
data: Object
age: "4"
id: "1"
name: "sam"
1: c
2: c
length: 3
__proto__: Array[0]
keys: Array[3]
length: 3
...`
查看此链接:
可以使用getAt()方法获取集合中的项
要遍历列表,请将0循环到getCount()for(var i=0;i
for (var i = 0 ; i < record.getCount() ; i ++){
console.log(record.getAt(i).data.age);
}