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.
使用以下代码:
db.changes({'include_docs':true}).on('response', function (res) { res.on('data', function (change) { console.log(change); }); });
我能够获取数据库中更改的所有(旧和新)文档,但是如何获取最近更改的文档?
查看since参数,更改文档中的详细信息
since