简体   繁体   中英

window.indexedDB in IE11 is undefined

I have a indexedDB web app which works fine in IE10 but not in IE11. The problem is that in IE11 window.indexedDB is undefined. Is IndexedDB still supported in IE11? If so, how do you open a IndexedDB database without window.indexedDB?

My Test HTML:

<!DOCTYPE html>
<html>
  <head>
  </head>
  <body>
    Hello
  </body>
</html>

Output from F12 Developer Tools console:

window.indexedDB
undefined
window.msIndexedDB
undefined
window.navigator.userAgent
"Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; Touch; .NET4.0E; .NET4.0C; Tablet PC 2.0; rv:11.0) like Gecko"

将IE设置重置为默认设置后,现在一切正常。


the problem is that in debug mode, default document mode is set to 9. IE 9 doesn't support indexeddb.

Go to Developer tool, and set Documentation mode to 10 or above.


br, Jan

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM