构造函数
SensorErrorEvent()-
创建一个新的
SensorErrorEvent对象。
实例属性
SensorErrorEvent.error只读-
返回在事件构造函数中传入的
DOMException对象。
规范
| 规范 |
|---|
| Generic Sensor API> # the-sensor-error-event-interface> |
此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。
Sensor API 的 SensorErrorEvent 接口提供了有关 Sensor 或其派生接口抛出的错误的信息。
SensorErrorEvent()创建一个新的 SensorErrorEvent 对象。
SensorErrorEvent.error 只读 返回在事件构造函数中传入的 DOMException 对象。
| 规范 |
|---|
| Generic Sensor API> # the-sensor-error-event-interface> |