Mongoose: mpromise (mongoose's default promise library) is deprecated, plug in your own promise library instead: http://mongoosejs.com
mongodb://localhost/imooc 改成 mongodb://localhost:27017/imooc
mongodb://localhost/imooc 改成 mongodb://localhost:27017/imooc
2016-11-13
movies is undefine
我也遇到了这个问题,原来是我使用movies时没包含在fetche(或findById)的回调函数中,所以才会报错没有定义
我也遇到了这个问题,原来是我使用movies时没包含在fetche(或findById)的回调函数中,所以才会报错没有定义
2016-11-13
TypeError: Cannot read property '_id' of undefined
at /Users/jichao/node/movies/app.js:92:25
我了个fuck,还有坑啊o_O
at /Users/jichao/node/movies/app.js:92:25
我了个fuck,还有坑啊o_O
2016-11-09
var express = require('express');
var port = process.env.PORT || 3000;
var app = express();
app.set('views','./views');
app.set('view engine','jade');
app.listen(port);
console.log('imooc start');
//index
app.get('/',function(req,res){
res.render('index',{
title:'imooc 首页'
});
})
var port = process.env.PORT || 3000;
var app = express();
app.set('views','./views');
app.set('view engine','jade');
app.listen(port);
console.log('imooc start');
//index
app.get('/',function(req,res){
res.render('index',{
title:'imooc 首页'
});
})
2016-10-30