怎么设置微信小程序的slider里的进度条自己走动?请各位帮帮忙,谢谢
<slider bindchange="slider1change" left-icon="cancel" right-icon="success_no_circle" value="{{value}}"/>
```javascript
data: {
motto: 'Hello World',
value: 0
},
// 事件处理函数
bindViewTap() {
wx.navigateTo({
url: '../logs/logs',
})
},
onLoad() {
// @ts-ignore
if (wx.getUserProfile) {
this.setData({
canIUseGetUserProfile: true
})
}
let timer = setInterval(()=>{
this.setData({
value: this.data.value+10
})
if(this.data.value === 100){
clearInterval(timer)
}
},1000)
},
```