wxml文件
<progress stroke-width='2' percent="{{percent}}" />
js文件
data: {
viewshow: 'none'
},
onReady: function () {
var that=this
setTimeout(function(){
that.setData({
viewshow: 'block'
})
},400)
for(var i=1;i<101;i++){
that.setData({
percent: i
})
}
}