點擊元素外觸發事件

$("#元素").bind("click",function(e){
    if($(e.target).closest("#元素").length == 0){
       方法();
    }
});

點擊元素外的元素,觸發方法get

相關文章
相關標籤/搜索