express报错:Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
// 注册用户的处理函数exports.regUser = (req, res) => { // 1、判断用户名和密码是否为空 // 1.1、接受表单数据 const userinfo = req.body // 1.2、判断数据是否合法 if (!userinfo.username || !userinfo.password) { return res.send({ status: 1, m..
原创
2021-09-01 23:55:24 ·
1256 阅读 ·
0 评论