想用一个变量接收数据库查询的结果,但显示了undefined
发布于 6 年前 作者 ping87 4088 次浏览 来自 问答

t1:function(){

  

   var r=db.collection(“ROOM_TEST”).where({

   _openid:this.data._openid//查找是否有自己已经创建过的房间

   })

   var t=r.get({

     success:res=>{

       return res

     }

   })

   console.log(t)

  

 

 },

1 回复

检查数据库的位置

回到顶部