通过 PouchDB 中的自定义字段获取

Get by custom field in PouchDB

在PouchDB.get()中实现id在文档中的搜索。是否可以不通过id,而是通过自定义字段获取文档?

是的,这是可能的。您应该阅读 PouchDB/CouchDB 中的 views 以了解更多信息。这是一个很好的 post 入门:https://pouchdb.com/2014/05/01/secondary-indexes-have-landed-in-pouchdb.html