我也发现错位这个问题
但是研究了一下发现加个判断就可以解决问题了
next.onclick = function(){if (animated) {return;}if(index == 5){....}
prev.onclick = function(){if (animated) {return;}if(index == 1){....}
但是研究了一下发现加个判断就可以解决问题了
next.onclick = function(){if (animated) {return;}if(index == 5){....}
prev.onclick = function(){if (animated) {return;}if(index == 1){....}