Skip to Main Content
Progresywne aplikacje webowe
book

Progresywne aplikacje webowe

by Tal Ater
February 2018
Intermediate to advanced content levelIntermediate to advanced
298 pages
9h 31m
Polish
APN Promise
Content preview from Progresywne aplikacje webowe
IndexedDB wpraktyce | 119
Druga funkcja,
openObjectStore()
, otwiera transakcje domagazynu obiektów iuruchamia
funkcję. Przyjmuje nazwę magazynu obiektów jako pierwszy argument, funkcję zwrot-
ną douruchomienia popomyślnym otwarciu jako drugi parametr iopcjonalny trzeci
parametr zawierający typ transakcji dootwarcia– albo
"readonly"
(domyślnie), albo
"re-
adwrite"
. Tafunkcja zwraca
true
, jeśli interfejs IndexedDB jest obsługiwany, lub
false
wprzeciwnym razie. Oto prosty sposób użycia tej funkcji:
var db = openObjectStore("reservations", function(objectStore) {
objectStore.openCursor().onsuccess = function() {};
}, "readwrite");
if (!db) ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mapowanie historyjek użytkownika

Mapowanie historyjek użytkownika

Jeff Patton
Nauka algorytmów

Nauka algorytmów

George Heineman

Publisher Resources

ISBN: 9788375413489