EN
此内容没有您的语言版本,但有英语版本。

x property

Describes the acceleration (in m/s²) of the host device in motion along the X, axis.

This property is read-only.

IE11

 

Syntax

JavaScript
ptr = object.x

 

Property values

Type: double

Standards information

Remarks

Acceleration of the host device is relative to the Earth coordinate frame at the user's location, where the X axis is in the ground plane, perpendicular to the North axis and positive towards the East.

See also

DeviceAcceleration

 

 

显示:
© 2015 Microsoft