最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - In dexie.js how can I obtain all records from a table? - Stack Overflow

programmeradmin2浏览0评论

In dexie.js, is there a way to obtain all records from a table?

Currently I am using:

dbTable.filter(() => true).then( ... )

It works but I am not sure, whether it's the right way.

In dexie.js, is there a way to obtain all records from a table?

Currently I am using:

dbTable.filter(() => true).then( ... )

It works but I am not sure, whether it's the right way.

Share Improve this question asked Feb 6, 2019 at 10:12 LongHikeLongHike 4,4608 gold badges49 silver badges86 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 15
db.table("tableName").toArray().then( ... )

you can try this

const all = await db.friends.toArray()
发布评论

评论列表(0)

  1. 暂无评论