Failed to execute 'only' on 'IDBKeyRange': The parameter is not a valid key

。_饼干妹妹 提交于 2019-12-04 15:56:33

It is due to the invalid value supplied. IndexedDB support list of value - numbers, dates, strings, binary data, array : which are valid keys.

This error is generally thrown when you are passing - boolean,null or undefined value.

Check out w3c for more info - https://w3c.github.io/IndexedDB/#key-construct

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!