Window.ondeviceorientationabsolute

非标准

该特性是非标准的,请尽量不要在生产环境中使用它!

摘要

An event handler for the deviceorientationabsolute event containing information about an absolute device orientation change.

Syntax

window.ondeviceorientationabsolute = function(event) { ... };
window.addEventListener('deviceorientationabsolute', function(event) { ... });

Specifications

This event handler is not currently part of any specification.

Browser compatibility

BCD tables only load in the browser

See also