首页

关于

jQuery中如何使用mouseout和mouseleave?

日期:2011/11/28  来源:GBin1.com

jQuery中的鼠标事件中有mouseout和mouseleave俩个看起来类似的事件。

这俩个事件的使用有些区别,如下是jQuery文档中的官方解析:

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…

标签: jQuery代码, jQuery代码大全, mouseout, mouseleave

阅读更多

标签

© Copywrite by gbin1.com, all rights reserved.