问题
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