操作云数据库时要先定义database吗
代码如下 login: function(){ //获取用户名和密码 app.appData.userinfo = {username:this.data.username,password:this.data.password}; //查询数据库 const db = wx.cloud.database() db.collection('student').get({ success(res){ console.log(res.data) }})}, 错误提示: TypeError: Cannot read property 'database' of undefined 提示没有定义database 但database不是调用的方法吗