WindowEventHandlers.onmessageerror

 

WindowEventHandlers接口的onmessageerror事件处理器是一个 EventListener,每当一个类型为 messageerror 的 EventListener 事件在一个窗口被触发 --也就是说,当它收到的消息不能是deserialized (en-US)

Note: 此特性在 Web Worker 中可用

 

语法

window.onmessageerror = function() { ... };

规范

Specification Status Comment
HTML Living Standard
onmessageerror
Living Standard  

浏览器兼容性

No compatibility data found for api.WindowEventHandlers.onmessageerror.
Check for problems with this page or contribute missing data to mdn/browser-compat-data.

See also