js如何取消事件冒泡

2025-04-25 05:44:28
推荐回答(2个)
回答1:

a) return false 取消冒泡和取消默认事件
b) e.stopPropagation() 取消冒泡

回答2:

return false;