delay(duration,[queueName])
duration:延時時間,單位:毫秒
queueName:隊列名詞,默認是Fx,動畫隊列。
$('.jhwhy')
.css({ 'width':50 }).delay(1000)
.css({ 'width':200 }) 不能用
$('.jhwhy')
.css({ 'width':50 })
.delay(1000)
.animate({'width': 200}, 800); 能用
只有後面有動畫效果纔會執行