Window: deviceorientationabsolute event
The deviceorientationabsolute event is fired when absolute device orientation changes.
This event is not cancelable and does not bubble.
Syntax
Use the event name in addEventListener():
addEventListener("deviceorientationabsolute", (event) => { })
Alternatively, assign to the event handler property of the interface:
ondeviceorientationabsolute = (event) => { }
Event type
A DeviceOrientationEvent. Inherits from Event.
Specifications
Browser compatibility
See also
这篇文档对你有帮助吗?
谢谢你的反馈!