JavaScript

IE에서 forEach 안될 때

yeji717 2022. 5. 17. 23:10

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

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

}