version 特性为 IDBVersionChangeEvent interface returns The new version of the database in a versionchange transaction.

警告 : While this property is still implemented in older browsers, the latest specification replaces it with the oldVersion and newVersion attributes. See the compatibility table to know what browsers support them.

句法

readonly    attribute unsigned long long? version;
					

A 64 位整数 .

浏览器兼容性

The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. 更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
version 弃用 非标 Chrome 12 Edge ≤18 Firefox 16
16
10 Prefixed
Prefixed Implemented with the vendor prefix: moz
IE No Opera No Safari No WebView Android Yes Chrome Android 18 Firefox Android 22 Opera Android 22 Safari iOS No Samsung Internet Android 1.0

图例

完整支持

完整支持

不支持

不支持

非标。预期跨浏览器支持较差。

非标。预期跨浏览器支持较差。

弃用。不要用于新网站。

弃用。不要用于新网站。

要求使用供应商前缀或不同名称。

要求使用供应商前缀或不同名称。

另请参阅

元数据

  • 最后修改: