$(selector).hover(inFunction,outFunction)

参数 描述
inFunction 必需。规定 mouseenter 事件发生时运行的函数。
outFunction 可选。规定 mouseleave 事件发生时运行的函数。