search

Home  >  Q&A  >  body text

前端 - express里next()返回的状态是undefined?

PHPzPHPz2812 days ago891

reply all(3)I'll reply

  • 高洛峰

    高洛峰2017-04-17 14:54:39

    This is an error in the send method. send only accepts one parameter.

    reply
    0
  • PHPz

    PHPz2017-04-17 14:54:39

    According to the error message given by the console, the first parameter of the send method must be a legal status code

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 14:54:39

    The code is not truncated. Judging from the error message, there are two problems here

    1. Key issue: The uploaded status is illegal. Just check the corresponding code.

    2. Non-critical issue: res.send(status, body): This method is no longer recommended to be used in this way. The recommended usage method has been given in the error message.

    reply
    0
  • Cancelreply