js 阻止冒泡 兼容性方法

function  customstopPropagation(e){
        var ev = e || window.event;
        if (ev.stopPropagation) {
            ev.stopPropagation();
 $(document).on("click",".add",function(e){

//阻止冒泡

customstopPropagation(e);
})

  

} else if (window.event) {//IE window.event.cancelBubble = true;//IE } }
原文地址:https://www.cnblogs.com/alphafly/p/4210940.html