1. 程式人生 > >jq阻止冒泡事件

jq阻止冒泡事件

if(window.event){//IE下阻止冒泡
    event.cancelBubble  = true;
}else{
    event.stopPropagation();
}