let db = event.target.result;
let transaction = event.target.transaction;
let objectStore1 = db.createObjectStore("foo");
let objectStore2 = transaction.objectStore("foo");
ok(objectStore1 === objectStore2, "Got same objectStores");
let index1 = objectStore1.createIndex("bar", "key");
let index2 = objectStore2.index("bar");
ok(index1 === index2, "Got same indexes");
let objectStore3 = transaction.objectStore("foo");
let objectStore4 = transaction.objectStore("foo");
ok(objectStore3 === objectStore4, "Got same objectStores");
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.