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 Webview | Chrome for Android | Edge | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|---|---|
| 基本支持 | 支持 | 支持 | 支持 | 支持:6.0 | 不支持 | 不支持 | 支持:4.2 |
| 构造函数 | 支持:59 | 支持:59 | ? | ? | ? | ? | ? |
以上内容是否对您有帮助:

免费 AI IDE


更多建议: