此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in English Always switch to English

SensorErrorEvent

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

安全上下文: 此特性仅在一些支持的浏览器安全上下文(HTTPS)中可用。

Sensor APISensorErrorEvent 接口提供了有关 Sensor 或其派生接口抛出的错误的信息。

Event SensorErrorEvent

构造函数

SensorErrorEvent()

创建一个新的 SensorErrorEvent 对象。

实例属性

SensorErrorEvent.error 只读

返回在事件构造函数中传入的 DOMException 对象。

规范

Specification
Generic Sensor API
# the-sensor-error-event-interface

浏览器兼容性