如何从ajax结果中打印id

时间:2015-09-11 04:47:47

标签: json ajax

如何从ajax数据中打印id

data.id 未定义

[{
    "id": 28,
    "firstname": "asddsf",
    "lastname": "sss",
    "email": "terrymol.christian@roarsinc.com",
    "role_id": 1,
    "status": "Active"
}, {
    "id": 87,
    "firstname": "df",
    "lastname": "dsfsd",
    "email": "sdfsdf@dfds.hgj",
    "role_id": 1,
    "status": "Active"
}]

数据值低于

Rails.cache.fetch

0 个答案:

没有答案