因为
$("#numberFarm").hover(function () {
function()
例子:
$( the-element ).hover(
function() {
//this is the `mouseenter`
}, function() {
//this is the `mouseleave`
}
);
.hover()方法绑定mouseenter和mouseleave的处理程序
事件。您可以使用它在
打电话
$( selector ).hover( handlerIn, handlerOut )
是速记
$( selector ).mouseenter( handlerIn ).mouseleave( handlerOut );
阅读
documentation of .hover()