DeviceMotionEventAcceleration
DeviceMotionEventAcceleration 接口属于 Device Orientation Events,它提供了有关设备沿所有三个轴的加速度信息。
实例属性
DeviceMotionEventAcceleration.x只读-
沿 X 轴的加速度大小。
DeviceMotionEventAcceleration.y只读-
沿 Y 轴的加速度大小。
DeviceMotionEventAcceleration.z只读-
沿 Z 轴的加速度大小。
规范
| 规范 |
|---|
| 设备方向和运动 # devicemotioneventacceleration |
浏览器兼容性
加载中…