598 B
598 B
title | localeTitle |
---|---|
jQuery Hover Method | jQuery悬停方法 |
jQuery悬停方法
jquery悬停方法是mouseenter
和mouseleave
事件的组合。 语法是这样的:
$(selector).hover(inFunction, outFunction);
第一个功能,inFunction,当将要运行mouseenter
事件发生。 第二个函数是可选的,但会在mouseleave
事件发生时运行。 如果只指定了一个函数,则另一个函数将同时针对mouseenter
和mouseleave
事件运行。
更多信息
更多信息可以在这里找到。