这是
实验性技术
检查
浏览器兼容性表格
要小心谨慎在生产中使用这之前。
A
DeviceMotionEventRotationRate
object provides information about the rate at which the device is rotating around all three axes.
DeviceMotionEventRotationRate.alpha
只读
The amount of rotation around the Z axis, in degrees per second.
DeviceMotionEventRotationRate.beta
只读
The amount of rotation around the X axis, in degrees per second.
DeviceMotionEventRotationRate.gamma
只读
The amount of rotation around the Y axis, in degrees per second.
| 规范 | 状态 | 注释 |
|---|---|---|
|
DeviceOrientation Event Specification
The definition of 'DeviceMotionEventRotationRate' in that specification. |
编者草案 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
DeviceMotionEventRotationRate
|
Chrome 不支持 No | Edge 不支持 ≤18 — 79 | Firefox ? | IE ? | Opera ? | Safari ? |
WebView Android
74
|
Chrome Android
74
|
Firefox Android ? | Opera Android ? | Safari iOS ? |
Samsung Internet Android
11.0
|
alpha
|
Chrome 不支持 No | Edge 不支持 12 — 79 | Firefox ? | IE ? | Opera ? | Safari ? | WebView Android ≤37 | Chrome Android 28 | Firefox Android ? | Opera Android ? | Safari iOS ? | Samsung Internet Android 1.5 |
beta
|
Chrome 不支持 No | Edge 不支持 12 — 79 | Firefox ? | IE ? | Opera ? | Safari ? | WebView Android ≤37 | Chrome Android 28 | Firefox Android ? | Opera Android ? | Safari iOS ? | Samsung Internet Android 1.5 |
gamma
|
Chrome 不支持 No | Edge 不支持 12 — 79 | Firefox ? | IE ? | Opera ? | Safari ? | WebView Android ≤37 | Chrome Android 28 | Firefox Android ? | Opera Android ? | Safari iOS ? | Samsung Internet Android 1.5 |
| Secure context required | Chrome 不支持 No | Edge 不支持 No | Firefox ? | IE ? | Opera ? | Safari ? | WebView Android ≤37 | Chrome Android 28 | Firefox Android ? | Opera Android ? | Safari iOS ? | Samsung Internet Android 1.5 |
完整支持
不支持
兼容性未知
实验。期望将来行为有所改变。
使用非标名称。
DeviceMotionEventRotationRate