https://github.com/nswbmw/N-blog/wiki/%E7%AC%AC6%E7%AB%A0–%E5%AE%9E%E7%8E%B0%E7%95%99%E8%A8%80%E5%8A%9F%E8%83%BD
collection.update({
"name": name,
"time.day": day,
"title": title
}, {
$push: {"comments": comment}
} , function (err, result) {
mongodb.close();
callback(null);
});
这样插不入,是不是要用findAndModify
[[[[[[[@nswbmw](/user/nswbmw)](/user/nswbmw)](/user/nswbmw)](/user/nswbmw)](/user/nswbmw)](/user/nswbmw)](/user/nswbmw)