摘要: // catch 404 and forward to error handler app.use(function(req, res, next) { next(createError(404)); }); // 统一处理错误 // 之前的所有路由中调用next(err),就会进入这 // 四个参 阅读全文
posted @ 2022-11-06 11:41 小羊杨杨 阅读(344) 评论(0) 推荐(0) 编辑