计算json的和 var count=0; for(var i=0;i<data.length;i++){ count+=data[i].data; } 全部教程http://each.sinaapp.com/angular/index.html