2011-04-20 3 views

답변

5
$(element).bind('click', function(event) { 
    doSomething(); 
}).children().bind("click",function(event){ 
    // code to handle children click here 
    event.stopPropagation(); // if you don't want event to bubble up 
}); 
0

코드를 사용하면됩니다.

이벤트의 target 필드를보고 어떤 실제 자식 노드가 이벤트를 보았는지 확인하십시오.