css3轮播图判断逻辑

if(this.curIndex == this.curBannerList.length){
this.refs.swiperContent.style.left = -this.curIndex * 375 + "px";
} else {
++this.curIndex;
this.refs.swiperContent.style.left = -this.curIndex * 375 + "px";
}

你可能感兴趣的:(css3轮播图判断逻辑)