DeviceOrientationEvent.beta

这篇翻译不完整。请帮忙从英语翻译这篇文章

返回设备旋转时X轴的值. 即: 角度的数值, 范围介于-180 ------ 180之间  表示设备正在向前或向后倾斜.更多信息见  方向和运动数据详解

语法

var beta = instanceOfDeviceOrientationEvent.beta;

规范

Specification Status Comment
Device Orientation Events Working Draft Initial specification.

浏览器的兼容性

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

  
Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 7.0 (Yes) 6 [1] ? ? ?
  
Feature Android Edge Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support 3.0 (Yes) 6 [1] 未实现 未实现 4.2

[1] Firefox 3.6, 4, and 5 supported mozOrientation instead of the standard DeviceOrientationEvent interface

另请参阅

文档标签和贡献者

此页面的贡献者: TOKdawn
最后编辑者: TOKdawn,