📜  app.post 不是函数 - Javascript 代码示例

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

代码示例1
TypeError: app.post is not a function    at module.exports (C:\Users\User\Desktop\PI5Vidproject1\routes\index.js:22:9)    at Layer.handle [as handle_request] (C:\Users\User\Desktop\PI5Vidproject1\node_modules\express\lib\router\layer.js:95:5)    at trim_prefix (C:\Users\User\Desktop\PI5Vidproject1\node_modules\express\lib\router\index.js:317:13)    at C:\Users\User\Desktop\PI5Vidproject1\node_modules\express\lib\router\index.js:284:7    at Function.process_params (C:\Users\User\Desktop\PI5Vidproject1\node_modules\express\lib\router\index.js:335:12)    at next (C:\Users\User\Desktop\PI5Vidproject1\node_modules\express\lib\router\index.js:275:10)    at SendStream.error (C:\Users\User\Desktop\PI5Vidproject1\node_modules\serve-static\index.js:121:7)    at SendStream.emit (events.js:315:20)    at SendStream.error (C:\Users\User\Desktop\PI5Vidproject1\node_modules\send\index.js:270:17)    at SendStream.onStatError (C:\Users\User\Desktop\PI5Vidproject1\node_modules\send\index.js:421:12)    at next (C:\Users\User\Desktop\PI5Vidproject1\node_modules\send\index.js:763:28)    at C:\Users\User\Desktop\PI5Vidproject1\node_modules\send\index.js:771:23    at FSReqCallback.oncomplete (fs.js:183:21)