array[time, value];
我需要从这个二维数组中求和/求和?
var array =[
[1361824790262, 90.48603343963623],
[1361828390262, 500.18687307834625],
[1361831990262, 296.05108177661896],
[1361835590262, 423.1198309659958],
[1361839190262, 11.86623752117157],
[1361842790262, 296.38282561302185],
[1361846390262, 424.31847417354584],
[1361849990262, 100.07041704654694],
[1361853590262, 434.8605388402939],
[1361857190262, 434.8220944404602],
[1361860790262, 183.61854946613312]
];
var sum = 0;
//console.log(array.length);
for (var i = 0; i < array.length; i++) {
//console.log(array[i]);
for (var j = 0; j < array[i].length; j++) {
console.log(array[j][i]);
sum += array[j][i];
}
}
console.log(sum);