freeCodeCamp/guide/chinese/jquery/jquery-hover-method/index.md

598 B
Raw Blame History

title localeTitle
jQuery Hover Method jQuery悬停方法

jQuery悬停方法

jquery悬停方法是mouseentermouseleave事件的组合。 语法是这样的:

$(selector).hover(inFunction, outFunction); 

第一个功能inFunction当将要运行mouseenter事件发生。 第二个函数是可选的,但会在mouseleave事件发生时运行。 如果只指定了一个函数,则另一个函数将同时针对mouseentermouseleave事件运行。

更多信息

更多信息可以在这里找到。