Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2020年1月.
安全なコンテキスト用: この機能は一部またはすべての対応しているブラウザーにおいて、安全なコンテキスト (HTTPS) でのみ利用できます。
IDBVersionChangeEvent() コンストラクターは、onupgradeneeded イベントハンドラーを実行した結果データベースのバージョンが変更されたことを表す、新しい IDBVersionChangeEvent オブジェクトを作成します。
イベントの名前を表す文字列です。大文字と小文字は区別され、ブラウザーは versionchange、success、blocked のいずれかに設定します。
options 省略可オブジェクトです。Event() で定義されているプロパティに加え、以下のプロパティを持つことができます。
oldVersion 省略可データベースの更新前のバージョンを表す数値です。デフォルト値は 0 です。
newVersion 省略可データベースの新しいバージョンを表す unsigned long 値、もしくはデータベースが削除される場合は null です。デフォルト値は null です。
新しい IDBVersionChangeEvent オブジェクトを返します。
動作する例全体は、To-do Notifications アプリケーションを参照してください。(動く例を見る)
| Indexed Database API 3.0 # dom-idbversionchangeevent-idbversionchangeevent |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2023年1月3日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.