我正在Windows 8应用程序中使用IndexedDB,而我对这两者都是新手.我已经能够成功创建,读取,更新,删除对象存储中的对象,并创建了几个数据库和一些对象存储.我的问题是如何列出所有对象存储和数据库?我创建了一些不需要的伪造的伪造的东西,我想稍微整理一下,但是我不记得它们的名字.也许这是保留肛门的功能,但似乎应该可以列出所有数据库和存储.谢谢!
I'm using IndexedDB in a Windows 8 app and I'm very new to both. I've been able to successfully create, read, update, delete objects from object stores, and have created a couple databases and a few object stores. My question is how can I list all of my object stores and databases? I create a few bogus ones that are not needed and I would like to clean things up a bit, but I can't remember what they are named. Maybe this is anal retentive, but it seems like it should be possible to list all databases and stores. Thanks!
推荐答案当前无法枚举中的现有数据库标准. Windows 8应用程序使用IE,它不提供非标准的webkitGetDatabaseNames方法.您可能可以使用 IE10中的选项"对话框.
There is currently no way of enumerating the existing databases in the standard. Windows 8 apps use IE, which does not provide the non-standard webkitGetDatabaseNames method. You might be able to clear the databases using the options dialog in IE10.
使用 objectStoreNames
Listing the stores inside a database is defined in the standard using the objectStoreNames method of an IDBDatabase instance.
更多推荐
IndexedDB查看所有数据库和对象存储
发布评论