跳到主要内容

getKeys 获取所有数据键(游戏存档文件名)

getKeys

类型: MethodDeclaration

定义位置: data.ts

描述

获取所有数据键(游戏存档文件名)

返回值:键列表

返回值

类型: Promise<Array<string>>

键列表

源代码

位置: 第 1111 行

public async getKeys(): Promise<Array<string>> {
return new Promise(resolve => {
this.open().then(objectStore => {
const request = objectStore.getAllKeys()
request.onsuccess = (event: any) => {
resolve(event.target.result)
}
})
})
}

文档生成时间:2025/7/7 12:07:06