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

View in English Always switch to English

DeviceMotionEvent.interval

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2023年9月.

返回从底层硬件获取数据的时间间隔(单位:毫秒)。你可以使用它来确定运动事件的粒度。