小程序swiper组件的常用属性
核心代码段
```
<swiper indicator-dots="{{indicatorDots}}"
autoplay="{{autoplay}}" interval="{{interval}}" duration=" {{duration}}">
<block wx:for="{{background}}" wx:key="*this">
<swiper-item>
<view class="swiper-item {{item}}"></view>
</swiper-item>
</block>
</swiper>
```
indicator-dots boolean false 是否显示面板指示点
indicator-color color rgba(0,0,0,.3) 指示点颜色
indicator-active-color color #O000oo 当前选中的指示点颜色
autoplay boolean false 是否自动切换
interval number 5000 自动切换时间间隔
circular boolean false 是否采用衔接滑动`
缓存
设置缓存
wx.setStorageSync(string key, any data)
获取缓存
wx.getStorageSync(string key)
删除指定缓存
# wx.removeStorageSync(string key)
清空缓存
# wx.clearStorageSync()