We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

DeviceMotionEvent.interval

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

语法

var interval = instanceOfDeviceMotionEvent.interval;

说明

Specification Status Comment
Device Orientation Events Working 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!

  
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

推荐浏览

文档标签和贡献者

此页面的贡献者: shuangya
最后编辑者: shuangya,