How to get value form record in sencha touch

后端 未结 3 1663
我在风中等你
我在风中等你 2020-12-11 08:38

I am trying to get value from nested json, but unable to get value. I have following data structure. Here I am printing record.

3条回答
  •  醉酒成梦
    2020-12-11 08:50

    I am assuming this is a DataView or a List, and that onWordTap is a listener for for itemtap.

    If that is the case, to get data from records, you just need record.get('name'). You can also use record.get('definitions')[0].definition (note that you've spelled it defintion in your code - beware).

提交回复
热议问题