이벤트 delegate? >> 동적으로 생긴요소에 이벤트를 달때

2022. 3. 12. 15:12카테고리 없음

    $('body').on('click', $('article img'), e=>{
        const vidId = $(e.currentTarget).attr(title);
        console.log(vidId)
    })