created:

created () {
   let num = null
   this.mFun(num)
},

methods:

methods:{
    mFun(m){
      if (m === null) {
        m = 0
      } else {
        m++
      }
      setTimeout(()=>{        
        console.log(m)
        this.mFun(m)
      },1000)      
    },
}

 

相关文章:

  • 2021-04-25
  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-20
猜你喜欢
  • 2021-11-01
  • 2021-11-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
  • 2022-12-23
相关资源
相似解决方案