mouseover和mouseenter都是鼠标移到元素身上就触发,区别是
1、mouseover经过自身盒子触发,经过子盒子也触发,拥有冒泡特性
2、mouseenter只经过自身盒子触发,没有冒泡特性
mouseenter不会冒泡,搭配鼠标离开事件mouseleave同样不会冒泡
mouseover和mouseenter都是鼠标移到元素身上就触发,区别是
1、mouseover经过自身盒子触发,经过子盒子也触发,拥有冒泡特性
2、mouseenter只经过自身盒子触发,没有冒泡特性
mouseenter不会冒泡,搭配鼠标离开事件mouseleave同样不会冒泡