JS 取消冒泡事件 兼容火狐IE

function stopPro(e) {
    if (e && e.stopPropagation) {
      //W3C取消冒泡事件
      e.stopPropagation();
    } else {
      //IE取消冒泡事件
      window.event.cancelBubble = true;
    }
  };

原文地址:https://www.cnblogs.com/mingjixiaohui/p/5246354.html