将animate函数绑定在#next按钮上:next.onclick = function () { if (index == 5) { index = 1; } else { index += 1; } animate(-600); showButton(); }animate函数如下设计:function animate(offset){ 我的问题是:为什么点击按钮,图片无法动起来?
添加回答
举报
0/150
提交
取消