一个div中有一个a标签,点击a标签的时候不进入div的点击事件

//阻止冒泡上层click
event.stopPropagation();

原文地址:https://www.cnblogs.com/heyiping/p/10244775.html