forEach (). 用於遍歷陣列,無返回值。 var arr = [1,-2,3,4,-5]; arr.forEach(function(item,index,array){ array[index] = item * 2; } ...
確定! 回上一頁