Fork me on GitHub

行间点击事件如何阻止冒泡

    function funJiangFa(getStr) {
        var ev = window.event;
        //e.stopPropagation();
        $("#alertBox1").show();
        $("#ifm").attr('src', 'DaiShenPi_GuWen_JiangFa.aspx?getStr=' + getStr);
        $(".alert_box_head h3").text('新增奖罚');
        alertThreeShow($("#alertBox1"));
        $("#mask2").addClass('noLoad');
        stopEventBubble(ev);
    }

    function stopEventBubble(event) {
        var e = event || window.event;

        if (e && e.stopPropagation) {
            e.stopPropagation();
        }
        else {
            e.cancelBubble = true;
        }
    }

  

posted on 2015-04-16 12:36  雨为我停  阅读(287)  评论(0编辑  收藏  举报