前端基础Javascript事件监听默认、冒泡和捕获事件事件捕获On this page事件捕获阻止捕获document.getElementById("second").addEventListener("click",function(){ alert("second"); event.stopImmediatePropagation();},true); 链接优秀文章:https://blog.csdn.net/sk_yi/article/details/107326653http://caibaojian.com/javascript-stoppropagation-preventdefault.html