我在获取数据时遇到问题 UnhandledPromiseRejectionWarning : MongooseError: Model.findOne() 不再接受回调"/>
我在获取数据时遇到问题 UnhandledPromiseRejectionWarning : MongooseError: Model.findOne() 不再接受回调
app.post("/login",checkNotAuthenticated,function(req, res) {const {email, password} = req.body; users.findOne({email: email}),function(err, post) {res.render("/");});});
回答如下:更多推荐
我在获取数据时遇到问题 UnhandledPromiseRejectionWarning : MongooseError: Model.findOne() 不再
发布评论