DeviceAcceleration
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
设备加速对象可以提供有关设备沿三个轴(x、y、z)的加速度的信息。
属性
DeviceAcceleration.x
只读-
沿 X 轴的加速度量(只读)
DeviceAcceleration.y
只读-
沿 Y 轴的加速度量(只读)
DeviceAcceleration.z
只读-
沿 Z 轴的加速度量(只读)
说明
Specification |
---|
Device Orientation and Motion> # devicemotioneventacceleration> |