// 阻止浏览器的默认行为 window.event?window.event.returnValue=false:e.preventDefault(); //停止事件冒泡 window.event?window.event.cancelBubble=true:e.stopPropagation();