ajax返回多组数组,如何将其合并为一个

http://img.mukewang.com/597568c800014f6204560276.jpg

var moneydata=[]
$.ajax({
   type: "get",
   async: true,
   url: "/getBrokerReward.do",
   data: {},
   dataType: "json",
   success: function (result) {
       if (result) {
           var item = result.result;
           for (var i = 0; i < item.length; i++) {
               var moneydata   = [item[i].rewardFormat];

               console.log(moneydata)
           }
       }
   }

});

怎么让返回的这些数据在一个数组里呢["3562.23","0","0","0","0","0","0","0","0","0","0","0"]

_天蝎座的你_0
浏览 2271回答 0
0回答
打开App,查看更多内容
随时随地看视频慕课网APP