前端 - express里next()返回的状态是undefined?
PHPz
PHPz 2017-04-17 14:52:39
0
3
853
PHPz
PHPz

学习是最好的投资!

reply all(3)
小葫芦

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

PHPzhong

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

Peter_Zhu

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!