forEach 迴圈

在 JavaScript 1.6引入

forEach(callback[, thisObject]) 在每一個項目上執行 callback

var a = ['a', 'b', 'c'];

a.forEach(alert); // 依序回傳每一個項目