WindowEventHandlers
接口的onmessageerror事件处理器是一个 EventListener
,每当一个类型为 messageerror
的 EventListener
事件在一个窗口被触发 --也就是说,当它收到的消息不能是deserialized 。
Note: 此特性在 Web Worker 中可用。
语法
window.onmessageerror = function() { ... };
规范
Specification | Status | Comment |
---|---|---|
HTML Living Standard onmessageerror |
Living Standard |
浏览器兼容性
We're converting our compatibility data into a machine-readable JSON format.
This compatibility table still uses the old format,
because we haven't yet converted the data it contains.
Find out how you can help!
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|---|
Basic support | 60 | ? | 57 (57) | ? | 47 | ? |
Available in workers | 60 | ? | 57 (57) | ? | 47 | ? |
Feature | Android Webview | Chrome for Android | Edge | Firefox Mobile (Gecko) | Firefox OS (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|---|---|
Basic support | 60 | 60 | ? | 57.0 (57) | ? | ? | 47 | ? |
Available in workers | 60 | 60 | ? | 57.0 (57) | ? | ? | 47 | ? |