Worker.onmessageerror

Worker 的 onmessageerror 事件处理器接口是一个EventListener, 在 MessageEvent 类型的事件 messageerror 触发时调用 — 也就旻, 当它收到的消息不能进行序列化 deserialized.

Note: 此特性在 Web Worker 中可用。

Syntax

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

规范

Specification Status Comment
HTML Living Standard
onmessageerror
Living Standard  

浏览器兼容性

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic supportChrome Full support 60Edge ? Firefox Full support 57IE ? Opera Full support 47Safari ? WebView Android Full support 60Chrome Android Full support 60Edge Mobile ? Firefox Android Full support 57Opera Android Full support 47Safari iOS ? Samsung Internet Android No support No

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown

相关链接

文档标签和贡献者

此页面的贡献者: hl4a, xiaoweb
最后编辑者: hl4a,