JS停止冒泡
function myfn(e){
window.event?window.event.cancelBubble = true : e.stopPropagation();
}
JS阻止默认行为
function myfn(e){
window.event?window.event.returnValue = false : e.preventDefault();
}
JS停止冒泡
function myfn(e){
window.event?window.event.cancelBubble = true : e.stopPropagation();
}
JS阻止默认行为
function myfn(e){
window.event?window.event.returnValue = false : e.preventDefault();
}