最新回答 / imooc_Chen
isNew 是 Mongoose API中的一个方法,在Mongoose/document.js里,可以去Mongoose官网查看,用于判断当前文档是否是新的,返回一个布尔值
2017-03-02
最新回答 / 破晓之喻
app.use(bodyParser.json());app.use(bodyParser.urlencoded({ extended: true }));
2017-02-23
已采纳回答 / foxchan
你需要用到 body-parser 这个库对请求中的参数进行封装和解析,按照下面的方法操作:npm install --save body-parservar bodyParser = require('body-parser');在你的 express 初始js文件中,添加对于 body-parser 的引用,app.use(bodyParser.urlencoded({ extended: true }));app.use(bodyParser.json());在提交的form中对于input设置na...
2017-02-17