mouseleave

What is the difference between jQuery's mouseout() and mouseleave()?

独自空忆成欢 提交于 2019-11-26 22:01:48
What is the difference between jQuery's mouseout() and mouseleave()? meder omuraliev The mouseleave event differs from mouseout in the way it handles event bubbling. If mouseout were used in this example, then when the mouse pointer moved out of the Inner element, the handler would be triggered. This is usually undesirable behavior. The mouseleave event, on the other hand, only triggers its handler when the mouse leaves the element it is bound to, not a descendant. So in this example, the handler is triggered when the mouse leaves the Outer element, but not the Inner element. Source: http:/

What is the difference between jQuery's mouseout() and mouseleave()?

怎甘沉沦 提交于 2019-11-26 09:08:03
问题 What is the difference between jQuery\'s mouseout() and mouseleave()? 回答1: The mouseleave event differs from mouseout in the way it handles event bubbling. If mouseout were used in this example, then when the mouse pointer moved out of the Inner element, the handler would be triggered. This is usually undesirable behavior. The mouseleave event, on the other hand, only triggers its handler when the mouse leaves the element it is bound to, not a descendant. So in this example, the handler is