express中路由内抛出的错误该怎样处理
据说原来有个app.error 现在被deprecated了 整个人都迷了
4 回复
Xu yao geng duo xin xi. From my iOS client.
test again
看文档
https://github.com/strongloop/express/wiki/Migrating-from-2.x-to-3.x
Removed: app.error()
(use middleware with (err, req, res, next))