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

View in English Always switch to English

DeviceMotionEventRotationRate:beta 属性

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

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

DeviceMotionEventRotationRate 接口的只读属性 beta 表示绕 X 轴旋转的速度(以度/秒为单位)。

double 类型的值,表示围绕 X 轴的旋转速率(以度/秒为单位)。更多详细信息,请参见方向与运动数据解释

规范

Specification
Device Orientation and Motion
# dom-devicemotioneventrotationrate-beta

浏览器兼容性