yeji

IE에서 forEach 안될 때 본문

JavaScript

IE에서 forEach 안될 때

yeji717 2022. 5. 17. 23:10

if (window.NodeList && !NodeList.prototype.forEach){

    NodeList.prototype.forEach = Array.prototype.forEach;

}

'JavaScript' 카테고리의 다른 글

복수 선택 메소드와 addEventListener  (0) 2022.05.14
Top 버튼 만들기  (0) 2021.11.15
setTimeout, setInterval, clearInterval  (0) 2021.04.06
jQuery / width(), innerWidth(), outerWidth() 비교  (0) 2021.04.06
getBoundingClientRect()  (0) 2021.01.26
Comments