此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in English Always switch to English

DeviceMotionEventRotationRate

有限可用

此特性不属于基线,因为它尚未在主流浏览器中得到支持。

安全上下文: 此特性仅在一些支持的浏览器安全上下文(HTTPS)中可用。

设备方向事件DeviceMotionEventRotationRate 接口提供有关设备绕三个轴旋转速度的信息。

实例属性

DeviceMotionEventRotationRate.alpha 只读

绕 Z 轴的旋转量(以度/秒为单位)。

DeviceMotionEventRotationRate.beta 只读

绕 X 轴的旋转量(以度/秒为单位)。

DeviceMotionEventRotationRate.gamma 只读

绕 Y 轴的旋转量(以度/秒为单位)。

规范

规范
Device Orientation and Motion
# devicemotioneventrotationrate

浏览器兼容性