javascript - How to make the mouseOut event in vue.js bubble up.
大家讲道理
大家讲道理 2017-07-05 10:55:24
0
2
828

I added a mouseout event to the parent box b of box a. This event will always be triggered when the mouse enters box a (the absolute positioning of box a, I don’t know if it has any impact), but I hope that it will not be triggered when the mouse enters box a. Please give me some advice on how to resolve this incident~~

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
巴扎黑

Add .prevent modifier

阿神

You can use the event modifier .self to modify it to indicate that only the bound dom itself is triggered. The native event is event.currentTarget.
Reference: https://cn.vuejs.org/v2/guide... event-amp-key modifier

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template