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 位整数 .
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
version
弃用
非标
|
Chrome 12 | Edge ≤18 |
Firefox
16
|
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 |
完整支持
不支持
非标。预期跨浏览器支持较差。
弃用。不要用于新网站。
要求使用供应商前缀或不同名称。
IDBDatabase
IDBTransaction
IDBKeyRange
IDBObjectStore
IDBCursor
IDBVersionChangeEvent
newVersion
oldVersion
version
IDBCursor
IDBCursorSync
IDBCursorWithValue
IDBDatabase
IDBDatabaseException
IDBDatabaseSync
IDBEnvironment
IDBEnvironmentSync
IDBFactory
IDBFactorySync
IDBIndex
IDBIndexSync
IDBKeyRange
IDBObjectStore
IDBObjectStoreSync
IDBOpenDBRequest
IDBRequest
IDBTransaction
IDBTransactionSync
IDBVersionChangeRequest