2012-04-21 58 views
2

我怎樣才能達到'年齡'的價值? 我已經有'record.data.items'了,但我無法進一步瞭解。我想要年齡的價值。誰能幫我?從Ext.util.MixedCollection獲取值?

`Ext.util.MixedCollection

... 
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 
...` 

回答

1
for (var i = 0 ; i < record.getCount() ; i ++){ 
    console.log(record.getAt(i).data.age); 
}