onLoad: function (options) {
    this.con(4).then(res=>{
      console.log(res)
        
    })
  },
  con(id){
    let thaT=this
    return new Promise((r,t)=>{
      if(id==1){
        r(2)
      }else{
        t(3)
      }
    })
  },

 

相关文章:

  • 2021-10-25
  • 2021-10-21
  • 2021-12-16
  • 2021-08-03
  • 2021-10-14
  • 2022-12-23
  • 2021-05-02
  • 2022-12-23
猜你喜欢
  • 2021-10-07
  • 2022-12-23
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
  • 2022-02-07
相关资源
相似解决方案