DataError when creating an index with a compound key in IE 10

懵懂的女人 提交于 2019-12-23 08:51:28

问题


I am testing an indexedDB based app using IE10. I am not able to create an object store which has multiple keys. For example, var objectStore = theDb.createObjectStore("store1", { keyPath: ["key1","key2"] });.

When I try to insert data into the store an exception message is raised: "DataError" This is not very helpful! Has anyone been able to create objectStores using IE10 with multiple keys? This works fine testing in Chrome.


回答1:


I run into the same problem. From their forum thread, complex key path or compound index not supported in IE10 complaining that spec was not defined (incorrect). There are other IndexedDB API features not implemented in IE10. To be fair, IE10 IndexedDB is fast.



来源:https://stackoverflow.com/questions/14283257/dataerror-when-creating-an-index-with-a-compound-key-in-ie-10

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