【发布时间】:2016-06-13 01:05:00
【问题描述】:
Firefox 47 应该支持 IDBKeyRange 的 includes 方法,但我很难理解为什么它会给出它给出的结果。
// These work as I'd expect to return false
console.log(IDBKeyRange.lowerBound(2).includes(1));
console.log(IDBKeyRange.lowerBound(4).includes(3));
// These do not behave as expected (I'd expect "true")
console.log(IDBKeyRange.lowerBound(1).includes(1)); // FF gives false
console.log(IDBKeyRange.lowerBound(3).includes(4)); // FF gives false
我在这里错过了什么?
【问题讨论】:
标签: javascript firefox indexeddb