Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
猫鼬:
如何在不使用更新或手动设置每个字段的情况下更新模型的多个字段?
谢谢 (:
You can do it with underscore:
var _ = require('underscore'); _.extend(doc, new_data); doc.save(next);
See API Docs for more info.