不论鼠标指针穿过被选元素或其子元素,都会触发 mouseover 事件。

只有在鼠标指针穿过被选元素时,才会触发 mouseenter 事件。

被触发的 Mouseover 事件:

被触发的 Mouseenter 事件: