阻止冒泡的兼容写法&&阻止默认事件写法

阻止冒泡的兼容写法:

 1.标准浏览器下: 
  event.stopPropagation();

  2.IE浏览器
  event.cancelBubble = true;

阻止默认事件的写法:

  1.return false
  
  2.event.preventDefault()
原文地址:https://www.cnblogs.com/qianqiang0703/p/13492914.html