$("#model_frame").on("click",function(){
$(this).hide();
console.log($(this));
});
$(".model").on("click",function(event){
event.preventDefault();
return false; //子节点return false 可以阻止事件向上传递
});
$("#model_frame").on("click",function(){
$(this).hide();
console.log($(this));
});
$(".model").on("click",function(event){
event.preventDefault();
return false; //子节点return false 可以阻止事件向上传递
});
转载于:https://www.cnblogs.com/zouqin/p/6119513.html