将animate函数绑定在#next按钮上:next.onclick = function () {
if (index == 5) {
index = 1;
}
else {
index += 1;
animate(-600);
showButton();
animate函数如下设计:function animate(offset){
我的问题是:为什么点击按钮,图片无法动起来?
相关分类