Cet article nécessite une relecture technique. Voici comment vous pouvez aider.
Cet article nécessite une relecture rédactionnelle. Voici comment vous pouvez aider.
La propriété indexedDB de l'interface IDBEnvironment permets aux applications d'accéder asynchroniquement aux fonctionnalités des bases de données indexées.
Note : This feature is available in Web Workers.
Syntaxe
var DBOpenRequest = self.indexedDB.open("toDoList");
Valeur
Un objet IDBFactory.
Exemple
var db;
function openDB() {
var DBOpenRequest = window.indexedDB.open("toDoList");
DBOpenRequest.onsuccess = function(e) {
db = DBOpenRequest.result;
}
}
Spécifications
| Spécification | Statut | Commentaire |
|---|---|---|
| Indexed Database API La définition de 'indexedDB' dans cette spécification. |
Recommendation |
Compatibilité avec les navigateurs
| Fonctionnalité | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
|---|---|---|---|---|---|
| Support basique | 23webkit 24 |
10 moz 16.0 (16.0) |
10, en partie | 15 | 7.1 |
| Disponible dans workers | (Oui) | 37.0 (37.0) | ? | (Oui) | ? |
| Fonctionnalité | Android | Firefox Mobile (Gecko) | Firefox OS | IE Phone | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|---|
| Support basique | 4.4 | 22.0 (22.0) | 1.0.1 | 10 | 22 | 8 |
| Dicponible dans workers | (Oui) | 37.0 (37.0) | (Oui) | ? | (Oui) | ? |
Voir aussi
- Using IndexedDB
- Starting transactions:
IDBDatabase - Using transactions:
IDBTransaction - Setting a range of keys:
IDBKeyRange - Retrieving and making changes to your data:
IDBObjectStore - Using cursors:
IDBCursor - Reference example: To-do Notifications (view example live.)