javascript-basic-foreach-array 遍历数组 by boxcore June 05, 2017 JavaScript var num=["a","b","c"]; for(var i=0;i<num.length;i++){ alert(num[i]); }