window属性:ondevicemotion

2018-04-27 14:26 更新

ondevicemotion属性

发送到window的devicemotion事件的事件处理程序。

ondevicemotion属性语法

window.ondevicemotion = funcRef;

funcRef是一个函数的引用。该功能接收DeviceMotionEvent对象来描述发生的动作。

规范

规范状态注释
Device Orientation Events
Working Draft
初始规格

浏览器兼容性 

  • 电脑端
特征Chrome
Edge
Firefox(Gecko)
Internet Explorer
Opera
Safari(WebKit)
基本支持支持支持支持:6
构造函数支持:59
  • 移动端
特征Android WebviewChrome for AndroidEdgeFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
基本支持支持支持支持支持:6.0不支持不支持支持:4.2
构造函数支持:59支持:59?????
以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号