mongoose.model
var mongoose = require('mongoose');
var User = mongoose.model('User'); //为什么我加了这句话报错了呢, 源码中是可以的啊 exports.index = function(req,res){
res.render('index',{ title:'欢迎' });
};
var mongoose = require('mongoose');
var User = mongoose.model('User'); //为什么我加了这句话报错了呢, 源码中是可以的啊 exports.index = function(req,res){
res.render('index',{ title:'欢迎' });
};
2016-06-21
举报