为了账号安全,请及时绑定邮箱和手机立即绑定

在后台录入页填写完录入信息后,点击录入按钮报错

TypeError: Cannot read property 'movie' of undefined
   at /Users/yilunwu/imooc-nodemongodb/imooc/app.js:81:20
   at Layer.handle [as handle_request] (/Users/yilunwu/imooc-nodemongodb/imooc/node_modules/express/lib/router/layer.js:95:5)
   at next (/Users/yilunwu/imooc-nodemongodb/imooc/node_modules/express/lib/router/route.js:137:13)
   at Route.dispatch (/Users/yilunwu/imooc-nodemongodb/imooc/node_modules/express/lib/router/route.js:112:3)
   at Layer.handle [as handle_request] (/Users/yilunwu/imooc-nodemongodb/imooc/node_modules/express/lib/router/layer.js:95:5)
   at /Users/yilunwu/imooc-nodemongodb/imooc/node_modules/express/lib/router/index.js:281:22
   at Function.process_params (/Users/yilunwu/imooc-nodemongodb/imooc/node_modules/express/lib/router/index.js:335:12)
   at next (/Users/yilunwu/imooc-nodemongodb/imooc/node_modules/express/lib/router/index.js:275:10)
   at serveStatic (/Users/yilunwu/imooc-nodemongodb/imooc/node_modules/serve-static/index.js:75:16)
   at Layer.handle [as handle_request] (/Users/yilunwu/imooc-nodemongodb/imooc/node_modules/express/lib/router/layer.js:95:5)
   at trim_prefix (/Users/yilunwu/imooc-nodemongodb/imooc/node_modules/express/lib/router/index.js:317:13)
   at /Users/yilunwu/imooc-nodemongodb/imooc/node_modules/express/lib/router/index.js:284:7
   at Function.process_params (/Users/yilunwu/imooc-nodemongodb/imooc/node_modules/express/lib/router/index.js:335:12)
   at next (/Users/yilunwu/imooc-nodemongodb/imooc/node_modules/express/lib/router/index.js:275:10)
   at /Users/yilunwu/imooc-nodemongodb/imooc/node_modules/body-parser/lib/read.js:130:5
   at invokeCallback (/Users/yilunwu/imooc-nodemongodb/imooc/node_modules/raw-body/index.js:262:16)

正在回答

1 回答

req和res写返了

1 回复 有任何疑惑可以回复我~
#1

YY之心王 提问者

非常感谢!真的哎,666
2017-08-03 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
node+mongodb 建站攻略(一期)
  • 参与学习       91854    人
  • 解答问题       889    个

带你完整实现一个从前端到后端的项目,初中级前端开发工程师必学课程

进入课程

在后台录入页填写完录入信息后,点击录入按钮报错

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信