Triggered when the mouse moves over the elementmouseenter
event,
similarmouseover
The differences between them are as follows:
mouseover:
- When the mouse passes through its own box, it will trigger when it passes through the sub box (becauseThere is bubbling)
mouseenter:
- It will only trigger through its own box(It doesn’t bubble)
- Follow
mouseenter
Correspondingly, the mouse leaves the eventmouseleave
sameIt doesn’t bubble