DeviceMotionEventAcceleration

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

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.

规范

规范 状态 Comment
DeviceOrientation Event Specification
The definition of 'DeviceMotionEventAcceleration' in that specification.
编者草案 初始定义

浏览器兼容性

更新 GitHub 上的兼容性数据
Desktop Mobile
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

图例

完整支持
完整支持
不支持
不支持
兼容性未知
兼容性未知
实验。期望将来行为有所改变。
实验。期望将来行为有所改变。
使用非标名称。