var sum = function(arr) { var sum = 0; for (var i=0,len=arr.length; i<len; ++i) { sum += arr[i]; }; return sum; }; var arr = [1, 2, 3, 4, ...
確定! 回上一頁