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

A DeviceMotionEventAcceleration object provides information about the amount of acceleration the device is experiencing along all three axes.

特性

DeviceMotionEventAcceleration.x 只读
The amount of acceleration along the X axis. Read only.
DeviceMotionEventAcceleration.y 只读
The amount of acceleration along the Y axis. Read only.
DeviceMotionEventAcceleration.z 只读
The amount of acceleration along the Z axis. Read only.

规范

规范 状态 注释
DeviceOrientation Event Specification
The definition of 'DeviceMotionEventAcceleration' 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
DeviceMotionEventAcceleration 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: DeviceAcceleration
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: DeviceAcceleration
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
x 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
y 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
z 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

图例

完整支持

完整支持

不支持

不支持

兼容性未知 ?

兼容性未知

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

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

使用非标名称。

元数据

  • 最后修改:
  1. DeviceMotionEventAcceleration
  2. 特性
    1. DeviceMotionEventAcceleration: x
    2. DeviceMotionEventAcceleration: y
    3. DeviceMotionEventAcceleration: z
  3. Related pages for Device Orientation Events
    1. DeviceAcceleration
    2. DeviceMotionEvent
    3. DeviceOrientationEvent
    4. DeviceRotationRate

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

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