云开发连接数据表时db.collection is not a function?
const db=wx.cloud database
getDB(){
db.collection("demolist").get({
success:res=>{
console.log(res)
}
})
},
请问这个问题怎么解决呢???
const db=wx.cloud database
getDB(){
db.collection("demolist").get({
success:res=>{
console.log(res)
}
})
},
请问这个问题怎么解决呢???