有没有可能级联Dexie "WhereClause"?
示例:我想使用
db.City.where("Name").startsWithAnyOfIgnoreCase(param1)
.orderBy("Name")?但是WhereClause对象中的所有方法都会返回"Collection“,它只提供filter来添加更多的filter
发布于 2017-07-24 12:00:45
您的示例仅说明了一个WHERE条件。但听起来您似乎在问如何在单个Table select期间拥有多个WHERE条件。如果是这样,我认为您可以在(编写得非常好的) Dexie文档中找到您的答案:http://dexie.org/docs/Table/Table.where()
相关的代码片段如下:
db.friends.where(["name", "age"])
.between(["David", 23], ["David", 43], true, true)
.each(friend => {
console.log("Found David, 43: " + JSON.stringify(friend));
}).catch(error => {
console.error(error.stack || error);
});希望这回答了你的问题。F
https://stackoverflow.com/questions/41720866
复制相似问题