为了账号安全,请及时绑定邮箱和手机立即绑定

ajax返回object

ajax返回object

_天蝎座的你_0 2017-07-21 17:28:00
$.ajax({    type: "post",    async: true,    url: "/abc.do",    data: {},    dataType: "json",    success: function (result) {       console.log(result)    }});后台返回的数据是:object {result: Array[12]}result: Array[12]0: Object1: Object2: Object3: Object4: Object5: Object6: Object7: Object8: Object9: Object10: Object“month”: "2017-05""reward": 0"rewardFormat": "0.00"11: Object"month": "2017-06""reward": 0"rewardFormat": "0.00"length: 12__proto__: Array[0]__proto__: Object想要获取month,rewardFormat
查看完整描述

1 回答

已采纳
?
__innocence

TA贡献313条经验 获得超208个赞

result[0].month.a;    对象类型可以这么访问

查看完整回答
反对 回复 2017-07-21
  • 1 回答
  • 0 关注
  • 1218 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信