You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 6-data-storage/03-indexeddb/article.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -203,7 +203,7 @@ Mais nous devons d'abord créer un magasin d'objets.
203
203
La syntaxe pour créer un magasin d'objets :
204
204
205
205
```js
206
-
db.createObjectStore(name, [keyOptions]);
206
+
db.createObjectStore(name, keyOptions);
207
207
```
208
208
209
209
Veuillez noter que l'opération est synchrone, `await` n'est nécessaire.
@@ -273,7 +273,7 @@ Les transactions peuvent le garantir.
273
273
Pour démarrer une transaction :
274
274
275
275
```js
276
-
db.transaction(store, [type]);
276
+
db.transaction(store, type);
277
277
```
278
278
279
279
-`store` est un nom de magasin auquel la transaction va accéder, par ex. `"books"`. Peut être un tableau de noms de magasins si nous allons accéder à plusieurs magasins.
0 commit comments