DeviceOrientationEvent.absolute
表示该设备是否提供绝对定位数据 (这个数据是关于地球的坐标系) 或者使用了由设备决定的专门的坐标系。查看更多关于 Orientation and motion data explained 的细节。
语法
var absolute = instanceOfDeviceOrientationEvent.absolute;
如果方向数据跟地球坐标系和设备坐标系有差异,则absolute为true,如果方向数据由设备本身的坐标系提供,则absolute为false。
说明
| Specification | 
|---|
| DeviceOrientation Event Specification  # ref-for-dom-deviceorientationevent-absolute  | 
浏览器兼容性
BCD tables only load in the browser