草庐IT

node.js - expressjs app.VERB 调用中的 next() 和 next ('route' ) 有什么区别?

文档如下:Theapp.VERB()methodsprovidetheroutingfunctionalityinExpress,whereVERBisoneoftheHTTPverbs,suchasapp.post().Multiplecallbacksmaybegive,allaretreatedequally,andbehavejustlikemiddleware,withtheoneexceptionthatthesecallbacksmayinvokenext('route')tobypasstheremainingroutecallback(s).Thismechanism