$(function(){???? var?$tip = $('.tip') //數(shù)組$tip.each(function(index,value){??? $tip.eq(index).hover(function(){????????? $(this).animate({left:'10px'},'fast');},function(){???????? $(this).animate({left:'0px'},'fast');?????? });? });})這樣有一個(gè)問(wèn)題,快速多次滑進(jìn)滑出后 鼠標(biāo)不動(dòng),它還會(huì)動(dòng)一會(huì);所以給它加一個(gè)if(!$tip.is(':animated')){};???? var?$tip = $('.tip') //數(shù)組$tip.each(function(index,value){??? $tip.eq(index).hover(???? if(!$tip.is(':animated')){function(){????????? $(this).animate({left:'10px'},'fast');},function(){???????? $(this).animate({left:'0px'},'fast');?????? }???? });? });})但這樣的寫法是錯(cuò)的? 請(qǐng)指教怎么辦?。???
- 1 回答
- 0 關(guān)注
- 1596 瀏覽
添加回答
舉報(bào)
0/150
提交
取消