这是 实验性技术
检查 浏览器兼容性表格 要小心谨慎在生产中使用这之前。

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.
编者草案

浏览器兼容性

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
DeviceMotionEventRotationRate Chrome 不支持 No Edge 不支持 ≤18 — 79 Firefox ? IE ? Opera ? Safari ? WebView Android 74
74
≤37 — 73 Alternate Name
Alternate Name Uses the non-standard name: DeviceAcceleration
Chrome Android 74
74
28 — 73 Alternate Name
Alternate Name Uses the non-standard name: DeviceRotation
Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android 11.0
11.0
1.5 — 11.0 Alternate Name
Alternate Name Uses the non-standard name: DeviceRotation
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

图例

完整支持

完整支持

不支持

不支持

兼容性未知 ?

兼容性未知

实验。期望将来行为有所改变。

实验。期望将来行为有所改变。

使用非标名称。

使用非标名称。

元数据

  • 最后修改:
  1. DeviceMotionEventRotationRate
  2. Related pages for Device Orientation Events
    1. DeviceAcceleration
    2. DeviceMotionEvent
    3. DeviceOrientationEvent
    4. DeviceRotationRate

版权所有  © 2014-2026 乐数软件    

工业和信息化部: 粤ICP备14079481号-1