ajax返回数据:{"total":1,"records":[{"projectId":3162338048173,"code":"1","type":"dzxsz","unPayCloseTerm":"1000-01-01 00:00:00","estimateCost":56}]}
-------------------------------------- js -----------------------------------------------------
var arr = returnData.records;
//所有项目预计成本
var estimateCosts = 0;
for(var i=0;i<arr.length;i++){
estimateCosts += arr[i].estimateCost;
}