javascript - IndexedDB 无法正常按照多条件range取到值
ringa_lee
ringa_lee 2017-04-11 10:24:09
0
0
249

可以查看以下jsbin链接,想要实现通过年龄与公司名称取到对应的值,关键语句部分:

var lowerBound = ['0',24,'ef'];
var upperBound = ['z',24,'ef'];
var range = IDBKeyRange.bound(lowerBound,upperBound);

似乎无法在索引表首位全部匹配的情况下继续匹配其他条件,如果把0和z改成符合条件的人名却可以继续匹配,求解,谢谢!

链接:
http://jsbin.com/sinuxa/edit?js,console

ringa_lee
ringa_lee

ringa_lee

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!