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";
}
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轮播图判断逻辑
本文链接:https://www.haomeiwen.com/subject/wuxstktx.html
网友评论