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/150
提交
取消