阻止事件冒泡

121 阅读1分钟
 function dj(e) {
        window.event? window.event.cancelBubble = true : e.stopPropagation();
        console.log('111')
    }