javascript知識鞏固------ES5中新增的數組方法

數組方法 迭代(遍歷)方法:forEach()、map()、filter()、some()、every();javascript array.forEach(function(value,index,arr){}) 回調函數的三個參數分別表明-----value:數組當前項的值;index:數組當前項的索引;arr:數組對象自己。 array.filter(function(value,index
相關文章
相關標籤/搜索