2013-07-07 38 views

回答

2

使用

$("#score").stop(true, true); 

這將清除動畫隊列,使當前動畫跳轉到其時間軸的結束,因而「掃清了道路」換一個新的。

另外請注意,您可以鏈stopeffect方法,像這樣:

$("#score").stop(true, true).effect("highlight", ... 

這裏是工作提琴:http://jsfiddle.net/DXvSG/3

+0

啊哈!謝謝,我知道這會很簡單 – ThaRemo

相關問題