问题描述
我正在使用IE10测试基于indexedDB的应用程序.我无法创建具有多个键的对象存储.例如,var objectStore = theDb.createObjectStore("store1", { keyPath: ["key1","key2"] });
.
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"] });
.
当我尝试将数据插入到存储中时,会引发异常消息:"DataError"这不是很有帮助!有没有人能够使用带有多个键的IE10创建objectStores
?在Chrome中可以很好地进行测试.
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.
推荐答案
我遇到了同样的问题.从他们的论坛主题,复杂的关键路径或复合索引 IE10中不支持,抱怨规范未定义(不正确). IE10中还没有实现其他IndexedDB API功能.公平地说,IE10 IndexedDB速度很快.
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.
这篇关于在IE 10中使用复合键创建索引时出现DataError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!