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) ? ? ? ? ? ?} ? ? ? ?} ? ?}});怎么讓返回的這些數(shù)據(jù)在一個(gè)數(shù)組里呢["3562.23","0","0","0","0","0","0","0","0","0","0","0"]
ajax返回多組數(shù)組,如何將其合并為一個(gè)
_天蝎座的你_0
2017-07-24 11:27:15