我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译
您也可以阅读此文章的English (US)版。

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

A DeviceRotationRate object provides information about the rate at which the device is rotating around all three axes.

Properties

DeviceRotationRate.alpha Read only
The amount of rotation around the Z axis, in degrees per second.
DeviceRotationRate.beta Read only
The amount of rotation around the X axis, in degrees per second.
DeviceRotationRate.gamma Read only
The amount of rotation around the Y axis, in degrees per second.

Specifications

Specification Status Comment
Device Orientation Events Working Draft Initial specification.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic support
Experimental
Chrome ? Edge Full support YesFirefox ? IE ? Opera ? Safari ? WebView Android ? Chrome Android ? Edge Mobile Full support YesFirefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?
alpha
Experimental
Chrome ? Edge Full support YesFirefox ? IE ? Opera ? Safari ? WebView Android ? Chrome Android ? Edge Mobile Full support YesFirefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?
beta
Experimental
Chrome ? Edge Full support YesFirefox ? IE ? Opera ? Safari ? WebView Android ? Chrome Android ? Edge Mobile Full support YesFirefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?
gamma
Experimental
Chrome ? Edge Full support YesFirefox ? IE ? Opera ? Safari ? WebView Android ? Chrome Android ? Edge Mobile Full support YesFirefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.

文档标签和贡献者

此页面的贡献者: connorshea, erikadoyle, fscholz, teoli, MHasan, Ms2ger, kscarfone, Sheppy
最后编辑者: connorshea,