0
我可以在indexedDb中使用帶有.upperBound和.lowerBound的複合索引嗎?我試過了,它似乎沒有工作,所以現在我只是使用如何在indexedDb中使用帶有.upperBound和.lowerBound的複合索引?
//upper bound on the Date, filter for `A`
IDBKeyRange.bound(['A', '9999-12-12'], ['A', new Date()])
//lower bound on the Date, filter for `A`
IDBKeyRange.bound(['A', new Date()], ['A', '0000-01-01'])
這是一個合理的方法?或者我錯過了什麼?