DeviceMotionEvent.DeviceMotionEvent()
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
非标准: 该特性尚未标准化。我们不建议在生产环境中使用非标准特性,因为它们在浏览器中的支持有限,且可能发生变化或被移除。不过,在没有标准选项的特定情况下,它们可以作为合适的替代方案。
The DeviceMotionEvent
constructor 会创建一个新的 DeviceMotionEvent
.
语法
js
new DeviceMotionEvent(type)
new DeviceMotionEvent(type, options)
参数
说明
无特别说明。