基础内容progress:官方文档

 

Demo Code:

Page({
  data:{
    percent:0
  },
  onReady:function(){
    this.percentAdd();
  },
  percentAdd:function(e){
    var that=this;
    setInterval(function(){
      var cur=that.data.percent;
      cur++;
      if(cur==101){
        cur=0;
      }
      that.setData({
        percent:cur
      });

    },100);    
  }
})
JS

相关文章:

  • 2021-06-28
  • 2021-07-11
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2021-11-20
  • 2021-11-23
猜你喜欢
  • 2021-05-20
  • 2022-12-23
  • 2021-06-01
  • 2022-01-08
  • 2021-10-27
  • 2022-01-08
相关资源
相似解决方案