| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ja/docs/Web/API/IDBKeyRange/upperOpen | [Back] [Original] |
Get to know MDN better
true |
|
false |
keyRangeValue = IDBKeyRange.upperBound("F", "W", true, true); (true) "F" "W" (IDBTransaction ) keyRangeValue IDBObjectStore.openCursor
upperOpen "true"
: IDBKeyRange-example ()
function displayData() {
const keyRangeValue = IDBKeyRange.bound("F", "W", true, true);
console.log(keyRangeValue.upperOpen);
const transaction = db.transaction(["fThings"], "readonly");
const objectStore = transaction.objectStore("fThings");
objectStore.openCursor(keyRangeValue).onsuccess = (event) => {
const cursor = event.target.result;
if (cursor) {
const listItem = document.createElement("li");
listItem.textContent = `${cursor.value.fThing}, ${cursor.value.fRating}`;
list.appendChild(listItem);
cursor.continue();
} else {
console.log("");
}
};
}
| Indexed Database API 3.0 # ref-for-dom-idbkeyrange-upperopen |
IDBKeyRange| Web Proxy Viewer | New URL | Original Page |