Device Orientation Events
DeviceOrientationEvent 接口的 beta 只读属性返回设备围绕 X 轴的旋转角度;即设备向前或向后倾斜的度数,范围在 -180 到 180 之间。有关详细信息,请参阅 Orientation 和 motion 数据解释。
值
一个数字。
规范
浏览器兼容性
参见
- Device orientation events/Detecting device orientation
- Device orientation events/Orientation and motion data explained
- Window.deviceorientation_event 事件
- Window.deviceorientationabsolute_event 事件
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
