87,990
社区成员
发帖
与我相关
我的任务
分享$("#divParent").click(function(){
alert("parent clicked");
})
$("#divChild1,#divChild2,#divChild3,#divChild4").click(function(event){
alert("child clicked");
event.stopPropagation();
})还有$("#divChild1,#divChild2,#divChild3,#divChild4")其实可以换成$("#divParent").children()