A:Array.prototype.forEach.call(item, function(el){
console.log(el)
})B:item.forEach(function(el){ console.log(el)
})
or:
item.forEach((el) => { console.log(el)
})想請問高手這兩種寫法的差別是什么?Array.prototype.forEach.call 主要作用是什么?
以下兩種forEach不同的寫法的區別是什么?
HUWWW
2019-03-21 14:29:21