<div>1</div><div>2</div>let div = document.getElementsByTagName('div');div.forEach = Array.prototype.forEach;div.forEach(item=>{ console.log(item);});這樣是一種方法,如何使用call、apply或bind 使用forEach方法
怎么讓類數組使用forEach?
SMILET
2019-02-01 14:12:34