console.log('2')为啥打印不出来?
发布于 6 年前 作者 minyan 14942 次浏览 最后一次编辑是 5 年前 来自 问答
getData:function(callback){
     if(!callback){
       callback = res=>{}
     }
     wx.showLoading({
       title: '数据加载中',
      
     })
     console.log('1')
    todos.skip(this.pageData.skip).get().then(res =>{
      this.setData({
        tasks:res.data
      })
    },res =>{
      console.log('2')
      this.pageData.skip = this.pageData.skip + 20
      wx.hideLoading()
      console.log('2')
      callback();
      
    })
   },
1 回复

代码写的不对,当然打印不出来

回到顶部