DeviceOrientationEvent.absolute
表示该设备是否提供绝对定位数据 (这个数据是关于地球的坐标系) 或者使用了由设备决定的专门的坐标系。查看更多关于 Orientation and motion data explained 的细节。
语法
var absolute = instanceOfDeviceOrientationEvent.absolute;
如果方向数据跟地球坐标系和设备坐标系有差异,则absolute
为true
,如果方向数据由设备本身的坐标系提供,则absolute
为false
。
说明
Specification |
---|
Device Orientation and Motion # ref-for-dom-deviceorientationevent-absolute |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
absolute |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.