事件兼容
event = event ? event : window.event;
js停止冒泡·
window.event? window.event.cancelBubble = true : event.stopPropagation();
js阻止默认行为
window.event? window.event.returnValue = false : event.preventDefault();
标签:default ati stop val 停止 兼容 .com div 冒泡
事件兼容
event = event ? event : window.event;
js停止冒泡·
window.event? window.event.cancelBubble = true : event.stopPropagation();
js阻止默认行为
window.event? window.event.returnValue = false : event.preventDefault();
标签:default ati stop val 停止 兼容 .com div 冒泡
原文地址:https://www.cnblogs.com/licurry/p/8242927.html