标签:timeout mouse cti user win art sele 定时器 下拉菜单
var img = $('#user_head');
var menu = $('.nav_list');
var i=0;
var timer;
img.mouseenter(function () {
clearTimeout(timer)
menu.show()
})
img.mouseleave(function () {
timer = window.setTimeout(function () {
menu.hide()
},500)
})
menu.mouseenter(function () {
clearTimeout(timer)
// menu.css('visibility','vidible')
})
menu.mouseleave(function () {
menu.hide()
})
标签:timeout mouse cti user win art sele 定时器 下拉菜单
原文地址:https://www.cnblogs.com/zhuxiang1633/p/10587329.html