콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2344 화면

I'm trying to copy an event listener of an HTML element to another element. But the first step is to list the listeners of an element.

I found some old methods but they all are not working.

Such as: var events = $("#the_link").data('events');

Some say it is changed in modern versions to be: $._data( $('.element')[0], 'events' );

Also, these methods are not documented on the JQuery website.

anyone can help?

아바타
취소