📜  节点 js 错误 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:28.557000             🧑  作者: Mango

代码示例2
TypeError: res.send is not a function    at C:\Users\ARAZ\Desktop\H\REact\nodeJS-Practice\node-express-course\02-express-tutorial\app.js:6:9    at Layer.handle [as handle_request] (C:\Users\ARAZ\Desktop\H\REact\nodeJS-Practice\node-express-course\02-express-tutorial\node_modules\express\lib\router\layer.js:95:5)    at next (C:\Users\ARAZ\Desktop\H\REact\nodeJS-Practice\node-express-course\02-express-tutorial\node_modules\express\lib\router\route.js:137:13)    at Route.dispatch (C:\Users\ARAZ\Desktop\H\REact\nodeJS-Practice\node-express-course\02-express-tutorial\node_modules\express\lib\router\route.js:112:3)    at Layer.handle [as handle_request] (C:\Users\ARAZ\Desktop\H\REact\nodeJS-Practice\node-express-course\02-express-tutorial\node_modules\express\lib\router\layer.js:95:5)    at C:\Users\ARAZ\Desktop\H\REact\nodeJS-Practice\node-express-course\02-express-tutorial\node_modules\express\lib\router\index.js:281:22    at Function.process_params (C:\Users\ARAZ\Desktop\H\REact\nodeJS-Practice\node-express-course\02-express-tutorial\node_modules\express\lib\router\index.js:335:12)    at next (C:\Users\ARAZ\Desktop\H\REact\nodeJS-Practice\node-express-course\02-express-tutorial\node_modules\express\lib\router\index.js:275:10)    at expressInit (C:\Users\ARAZ\Desktop\H\REact\nodeJS-Practice\node-express-course\02-express-tutorial\node_modules\express\lib\middleware\init.js:40:5)    at Layer.handle [as handle_request] (C:\Users\ARAZ\Desktop\H\REact\nodeJS-Practice\node-express-course\02-express-tutorial\node_modules\express\lib\router\layer.js:95:5)