阻止冒泡封装

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