js 阻止事件冒泡
window.event?window.event.cancelBubble =true: e.stopPropagation()
js 阻止默认行为
window.event?window.event.returnValue =false: e.preventDefault()
js 阻止事件冒泡
window.event?window.event.cancelBubble =true: e.stopPropagation()
js 阻止默认行为
window.event?window.event.returnValue =false: e.preventDefault()
本文标题:js阻止浏览器默认行为和事件冒泡
本文链接:https://www.haomeiwen.com/subject/kziicftx.html
网友评论