這樣做雖然保證了再動畫效果時,單擊左右按鈕不再重復執行動畫效果函數,但是下面的小圓點還是在切換,應該把showButton()函數也包含進去: if (!animated) { animate(-600); index++; showButton(); }
1 回答
舉報
0/150
提交
取消
這樣做雖然保證了再動畫效果時,單擊左右按鈕不再重復執行動畫效果函數,但是下面的小圓點還是在切換,應該把showButton()函數也包含進去: if (!animated) { animate(-600); index++; showButton(); }
2014-07-07
舉報
2014-07-31
是的,的確。