undefined indexedDB on Windows Phone 8.1 javascript app

前端 未结 2 697
北荒
北荒 2021-01-21 21:39

I have the following code on a (HTML/javascript) Windows Store app

var reqOpen = window.indexedDB.open(that.dbName, that.dbVersion);

The thing

2条回答
  •  [愿得一人]
    2021-01-21 22:23

    Have you tried using the prefixed global described here? Something like the following preceding the call to window.indexedDB.open: window.indexedDB = window.indexedDB || window.msIndexedDB;.

提交回复
热议问题