前端基础Javascript事件监听默认、冒泡和捕获事件事件冒泡On this page事件冒泡阻止冒泡w3c的方法是e.stopPropagation(),IE则是使用e.cancelBubble = truedocument.getElementById("button").addEventListener("click",function(event){ alert("button"); event.stopPropagation(); },false);链接优秀文章:https://blog.csdn.net/sk_yi/article/details/107326653http://caibaojian.com/javascript-stoppropagation-preventdefault.html点击子元素却也触发父元素的点击事件