如果我使用module.exports = mongoose.model('People', PersonSchema, 'People');
比下面的代码工作正常
People = require("../models/people");
People.find(function (err, docs) {});
但是说时exports = mongoose.model('People', PersonSchema, 'People');
会出错People.find()
TypeError: Object #<Object> has no method 'find'
为什么?