DeviceMotionEvent.interval

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

语法

var interval = instanceOfDeviceMotionEvent.interval;

说明

Specification Status Comment
DeviceOrientation Event Specification Editor's Draft Initial specification.

浏览器兼容性

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help! (en-US)

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support (Yes) (Yes) 6 (6) ? ? ?
Feature Android Edge Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support (Yes) (Yes) 6.0 (6) 未实现 未实现 4.2

推荐浏览