TypeError: D:\movie-test\views\page\admin.jade:11
9| .col-sm-10
10| input#douban.form-control(type="text")
> 11| if movie._id
12| input(type="hidden", name="movie[_id]", value=movie._id)
13| .form-group
14| label.col-sm-2.control-label(for="inputCategory") 电影分类
Cannot read property '_id' of undefined
at eval (eval at exports.compile (D:\movie-test\node_modules\jade\lib\index.js:218:8), <anonymous>:118:12)
at eval (eval at exports.compile (D:\movie-test\node_modules\jade\lib\index.js:218:8), <anonymous>:523:22)
at res (D:\movie-test\node_modules\jade\lib\index.js:219:38)
at Object.exports.renderFile (D:\movie-test\node_modules\jade\lib\index.js:380:38)
at Object.exports.renderFile (D:\movie-test\node_modules\jade\lib\index.js:370:21)
at View.exports.__express [as engine] (D:\movie-test\node_modules\jade\lib\index.js:417:11)
at View.render (D:\movie-test\node_modules\express\lib\view.js:135:8)
at tryRender (D:\movie-test\node_modules\express\lib\application.js:640:10)
at Function.render (D:\movie-test\node_modules\express\lib\application.js:592:3)
at ServerResponse.render (D:\movie-test\node_modules\express\lib\response.js:1008:7)加了var bodyParser=require('body-parser');app.use(bodyParser.urlencoded({extended:true}));
- 2 回答
- 0 关注
- 1295 浏览
添加回答
举报
0/150
提交
取消