function stopBubble(event){
if(event.stopPropagation){
event.stopPropagation();
}else{
event.cancelBubble = true;
}
if(event.stopPropagation){
event.stopPropagation();
}else{
event.cancelBubble = true;
}
}
调用时直接 stopBubble(e) 即可。