var a =document.querySelector("a");
a.addEventListener("click",function(e){
e.preventDefault();//阻止了跳转;})
e.stopProgagation
var son = document.querySelector('.son');
son.addEventListener('click',function(e){alert('son');//阻止冒泡e.stopPropagation()阻止冒泡, 不会执行father和documen的//点击事件
e.stopPropagation();},false);var father = document.querySelector('.father');
father.addEventListener('click',function(){alert('father');},false);
document.addEventListener('click',function(){alert('document');})