Uncaught TypeError: document.querySelectorAll(...).map is not a function

(document.querySelectorAll("a[href*='.gif'")).map(function(k,el){return el.href;});

-> 콜렉션에서 .map 메소드가 없어서 생기는 문제

Array.prototype.map.call(document.querySelectorAll("a[href*='.gif'"),(function(k,el){return k.href;})).join("\n");
처럼 .cal 을 써서 처리하면 된다.
댓글
  • No Nickname
    No Comment
  • 권한이 없습니다.
    {{m_row.m_nick}}
    -
제목 작성자 날짜
공대여자
공대여자
mins01
공대여자
공대여자
공대여자
공대여자
공대여자
공대여자
공대여자
#og
공대여자
공대여자
공대여자
공대여자
공대여자
공대여자
공대여자
공대여자