將animate函數綁定在#next按鈕上:next.onclick = function () { if (index == 5) { index = 1; } else { index += 1; } animate(-600); showButton(); }animate函數如下設計:function animate(offset){ 我的問題是:為什么點擊按鈕,圖片無法動起來?
輪播圖動畫問題
人到中年有點甜
2018-09-11 13:23:31