<view> <!-- 指示点:indicator-dots 自动轮播:autoplay 轮播间隔:interval 使用衔接动画:circular 动画的时长:duration --> <swiper class="swiper" indicator-dots autoplay interval="2000" circular duration="200"> <swiper-item style="background-color: pink;"> <view class="a">a</view> </swiper-item> <swiper-item style="background-color: blue;"> <view class="b">b</view> </swiper-item> <swiper-item style="background-color: green;"> <view class="c">c</view> </swiper-item> </swiper> </view>
效果如下:
标签:常用,如下,效果,swiper,属性 From: https://www.cnblogs.com/Metx/p/16979563.html