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 2015年7月.
IDBVersionChangeEvent インターフェイスの読み取り専用プロパティ newVersion は、データベースの新しいバージョン番号を返します。
メモ: この機能はウェブワーカー内で利用可能です。
64 ビットの整数、またはデータベースが削除される場合は null です。
このコードスニペットでは、データベースを開く要求をし、成功した場合と失敗した場合用のハンドラーを用意します。これらのイベントはカスタムの IDBVersionChangeEvent インターフェイスによって発火します。動く例全体は、To-do Notifications を参照してください。(動く例を見る)
| Indexed Database API 3.0 # dom-idbversionchangeevent-newversion |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2023年8月25日 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.