收藏
回答

console.log('2')为啥打印不出来?

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 个回答

  • Mr.Zhao
    Mr.Zhao
    2020-02-17

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

    2020-02-17
    有用
    回复
登录 后发表内容
问题标签