mouseenter和mouseover区别

mouseenter事件

当鼠标移动到元素上时,就会触发mouseenter事件。

类似mouseover,它们两者之间的差别是:mouseover鼠标经过自身盒子会触发,经过子盒子还会触发。mouseenter只会经过自身盒子触发。

原文地址:https://www.cnblogs.com/guwufeiyang/p/13019877.html