WindowEventHandlers.onmessageerror
Baseline 2023
Newly available
Since March 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
WindowEventHandlers
接口的 onmessageerror 事件处理器是一个 EventListener
,每当一个类型为 messageerror
的 EventListener
事件在一个窗口被触发 --也就是说,当它收到的消息不能是deserialized 。
备注: 此特性在 Web Worker 中可用。
语法
window.onmessageerror = function() { ... };
规范
Specification |
---|
HTML Standard # event-messageerror |
HTML Standard # handler-window-onmessageerror |
浏览器兼容性
BCD tables only load in the browser