Device Orientation Events
The DeviceMotionEvent constructor 会创建一个新的 DeviceMotionEvent.
语法
new DeviceMotionEvent(type)
new DeviceMotionEvent(type, options)
参数
type- : 必须是
"devicemotion".
- : 必须是
options
说明
无特别说明。
浏览器兼容性
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
