zepto阻止事件冒泡

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

$(".model").on("click",function(event){
	event.preventDefault();
	return false;		//子節點return false 能夠阻止事件向上傳遞
});
相關文章
相關標籤/搜索