ajax返回object

http://img.mukewang.com/5971cf1700014ebd10920687.jpg

$.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: Object

1: Object

2: Object

3: Object

4: Object

5: Object

6: Object

7: Object

8: Object

9: Object

10: 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

_天蝎座的你_0
浏览 1248回答 1
1回答

__innocence

result[0].month.a;    对象类型可以这么访问
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java
JavaScript