DeviceOrientationEvent.alpha

返回设备旋转时Z轴的值;即:设备围绕屏幕中心扭转的角度。  详细信息请查看方向和运动数据

Syntax

var alpha = instanceOfDeviceOrientationEvent.alpha;

Specifications

Specification Status Comment
DeviceOrientation Event Specification Editor's Draft Initial specification.

Browser compatibility

BCD tables only load in the browser

 

 

See also