Hi~ Summers!!

중복해서 발생하는 트리거 이벤트 막기 본문

개발/jQuery

중복해서 발생하는 트리거 이벤트 막기

eNaNII 2015. 8. 28. 13:11

이벤트 트리거에 의해 콜 되는 것 막으려면 e.isDefaultPrevented() 를 쓰면 된다.


$(document).click(function(e){

if(e.isDefaultPrevented()) return false;

<생략>

});


Comments