我有一個鼠標(biāo)移入移出顯示隱藏的事件,但是鼠標(biāo)如果多次滑過就會執(zhí)行多次,如何在鼠標(biāo)移出事件執(zhí)行完畢后立刻停止事件?$(".target").on('mouseenter',function() { $(this).children('.p1').show(function(){ $(this).addClass('animated fadeInLeft'); $(this).removeClass('animated fadeInLeft'); })});$(".target").on('mouseleave',function() { $(this).children('.p1').hide(function(){ $(this).addClass('animated fadeOutLeft'); $(this).removeClass('animated fadeOutLeft'); })});
如何在事件執(zhí)行完畢后立刻停止事件
搖曳的薔薇
2018-11-20 17:19:30