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

indexeddb - Using order by in dexie.js - Stack Overflow

programmeradmin0浏览0评论

I'm trying to sort the results by name, when I use the code like this it works perfectly

db.tab_friends.orderBy("name").toArray()

but if I try to set a condition, for example all records with my name, it gives an error

db.tab_friends.where("name").equals('Ana').orderBy("name").toArray()

In console show this error:

orderBy(...).where is not a function

How can I solve this?

发布评论

评论列表(0)

  1. 暂无评论