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月.
返回从底层硬件获取数据的时间间隔(单位:毫秒)。你可以使用它来确定运动事件的粒度。
语法
var interval = instanceOfDeviceMotionEvent.interval;
说明
| Specification |
|---|
| Device Orientation and Motion> # dom-devicemotionevent-interval> |