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 主要作用是什么?
HUWWW
狐的传说
随时随地看视频慕课网APP
相关分类