ajax return object,ajax返回object

2c49d27e720eb94543ce66620b8e956a.png

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

THE END
< <上一篇
下一篇>>