首页 > 技术文章 > zepto阻止事件冒泡

zouqin 2016-11-30 20:20 原文

$("#model_frame").on("click",function(){
	$(this).hide();
	console.log($(this));
});

$(".model").on("click",function(event){
	event.preventDefault();
	return false;		//子节点return false 可以阻止事件向上传递
});

  

推荐阅读