2012-04-21 4 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); 
} 
관련 문제