function stopProp(e){
var event = event||window.event;//前者event兼容非ie 后者兼容ie
//阻止冒泡
if(event.stopPropagation){
event.stopPropagation()
}else{
event.cancelBubble = true;
}
}
function stopProp(e){
var event = event||window.event;//前者event兼容非ie 后者兼容ie
//阻止冒泡
if(event.stopPropagation){
event.stopPropagation()
}else{
event.cancelBubble = true;
}
}
转载于:https://www.cnblogs.com/mingjixiaohui/p/5246783.html