search

Home  >  Q&A  >  body text

node.js是否就是函数重载+next()?

在node.js中,中间件是否等于将所有的同名方法先重在,如果能够处理就处理,不能处理就next()

PHP中文网PHP中文网2842 days ago651

reply all(1)I'll reply

  • 巴扎黑

    巴扎黑2017-04-17 11:11:29

    Middleware will be executed on every request. The middleware itself can judge and perform special processing on only some requests.

    Whether next is called depends on whether the middleware wants this request to stop and no longer execute other middleware.

    reply
    0
  • Cancelreply