云开发数据库查询,没有这个结果为什么没有提示?

发布于 5 年前作者 weixia1126 次浏览最后编辑 5 年前来自 ask

   var jinghao =this.data.jinghao

    wx.cloud.database().collection(‘jixiao’).where({

      jinghao:jinghao

    }).get({

      success: res =>{

        let jixiao=res.data[0]

    if (jinghao==jixiao.jinghao) {

      console.log(“查到了”)

    }else{

      console.log(“查BU到”)

    }

      },

 

    fail:res =>{

        console.log(“失败:”)

 

      }

      })

1 回复
yankong
yankong1 楼6 个月前

云函数的console应该去云函数管理后台去看