看到好多人提到这个问题 '_id' of undefined 求大神解决啊
TypeError: C:\Users\Administrator\WebstormProjects\imooc\views\pages\admin.jade:7
5| .row
6| form.form-horizontal(method="post", action="/admin/movie/new")
> 7| input(type="hidden",name="movie[_id]", value="#{movie._id}")
8| .form-group
9| label.col-sm-2.control-label(for="inputTitle") 电影名字
10| .col-sm-10
Cannot read property '_id' of undefined
at eval (eval at <anonymous> (C:\Users\Administrator\WebstormProjects\imooc\node_modules\jade\lib\index.js:218:8), <anonymous>:100:88)
at eval (eval at <anonymous> (C:\Users\Administrator\WebstormProjects\imooc\node_modules\jade\lib\index.js:218:8), <anonymous>:292:22)
at res (C:\Users\Administrator\WebstormProjects\imooc\node_modules\jade\lib\index.js:219:38)
at Object.exports.renderFile (C:\Users\Administrator\WebstormProjects\imooc\node_modules\jade\lib\index.js:380:38)
at Object.exports.renderFile (C:\Users\Administrator\WebstormProjects\imooc\node_modules\jade\lib\index.js:370:21)
at View.exports.__express [as engine] (C:\Users\Administrator\WebstormProjects\imooc\node_modules\jade\lib\index.js:417:11)
at View.render (C:\Users\Administrator\WebstormProjects\imooc\node_modules\express\lib\view.js:126:8)
at tryRender (C:\Users\Administrator\WebstormProjects\imooc\node_modules\express\lib\application.js:639:10)
at EventEmitter.render (C:\Users\Administrator\WebstormProjects\imooc\node_modules\express\lib\application.js:591:3)
at ServerResponse.render (C:\Users\Administrator\WebstormProjects\imooc\node_modules\express\lib\response.js:961:7)
at C:\Users\Administrator\WebstormProjects\imooc\app.js:125:9
at Layer.handle [as handle_request] (C:\Users\Administrator\WebstormProjects\imooc\node_modules\express\lib\router\layer.js:95:5)
at next (C:\Users\Administrator\WebstormProjects\imooc\node_modules\express\lib\router\route.js:131:13)
at Route.dispatch (C:\Users\Administrator\WebstormProjects\imooc\node_modules\express\lib\router\route.js:112:3)
at Layer.handle [as handle_request] (C:\Users\Administrator\WebstormProjects\imooc\node_modules\express\lib\router\layer.js:95:5)
at C:\Users\Administrator\WebstormProjects\imooc\node_modules\express\lib\router\index.js:277:22