部分代码如下: mongoose.connect(‘mongodb://localhost/todo_development’); var Schema = mongoose.Schema; var ObjectId = Schema.ObjectId; var tt = new Schema({ task:String });
app.get('/tasks’,function(req,res){ tt.find({},function(err,docs){ res.render('tasks/index’,{ title:’todos index vies’, docs:docs }); }) }); 总是报tt没有find方法,求指点这是怎么回事啊?