Notification:error 事件
备注: 此特性在 Web Worker 中可用
Notification 接口的 error 事件在 Notification 调用出错时候触发(在许多情况下,错误会阻止通知的显示)。
语法
在类似 addEventListener() 这样的方法中使用事件名称,或者设置事件处理器属性。
js
addEventListener("error", (event) => {});
onerror = (event) => {};
事件类型
一个通用 Event。
规范
| Specification | 
|---|
| Notifications API Standard  # dom-notification-onerror  | 
浏览器兼容性
BCD tables only load in the browser