jQuery- hover() 方法

jQuery hover() 方法

hover() 方法规定当鼠标指针悬停在被选元素上时要运行的两个函数。
方法触发 mouseenter 和 mouseleave 事件。

```javascript
$(selector).hover(handlerIn, handlerOut)

```

$(ob).hover(function () {
$(ob).attr('id', 'temp')
$('#temp>ul').stop(true, true).show(400)

}, function () {
$('#temp>ul').stop(true, true).hide(400)
$(ob).removeAttr('id')

})

猜你喜欢

转载自www.cnblogs.com/chenlulu1122/p/11888938.html