Skip to content

Commit 563340e

Browse files
authored
Merge pull request wangdoc#78 from new9xgh/hotfix/patch-indexeddb
fix IndexedDB
2 parents ac8fd2a + b9ba110 commit 563340e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/bom/indexeddb.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ IDBIndex 对象有以下属性。
910910

911911
IDBIndex 对象有以下方法,它们都是异步的,立即返回的都是一个 IDBRequest 对象。
912912

913-
- `IDBIndex.count()`:用来获取记录的数量。它可以接受主键或 KeyRange 对象作为参数,这时只返回符合主键的记录数量,否则返回所有记录的数量。
913+
- `IDBIndex.count()`:用来获取记录的数量。它可以接受主键或 IDBKeyRange 对象作为参数,这时只返回符合主键的记录数量,否则返回所有记录的数量。
914914
- `IDBIndex.get(key)`:用来获取符合指定主键的数据记录。
915915
- `IDBIndex.getKey(key)`:用来获取指定的主键。
916916
- `IDBIndex.getAll()`:用来获取所有的数据记录。它可以接受两个参数,都是可选的,第一个参数用来指定主键,第二个参数用来指定返回记录的数量。如果省略这两个参数,则返回所有记录。由于获取成功时,浏览器必须生成所有对象,所以对性能有影响。如果数据集比较大,建议使用 IDBCursor 对象。

0 commit comments

Comments
 (0)