JS怎么实现子元素mousedown不触发父元素的click事件

2025-04-22 19:34:27
推荐回答(1个)
回答1:

可以尝试在子元素的mousedown事件函数中用event.cancelBubble=true;取消事件冒泡