Worker
的 onmessageerror
事件处理器接口是一个EventListener
, 在 MessageEvent
类型的事件 messageerror
触发时调用 — 也就是说, 它收到的消息是不能进行序列化的 deserialized.
Note: 此特性在 Web Worker 中可用。
Syntax
Worker.onmessageerror = function() { ... };
规范
Specification | Status | Comment |
---|---|---|
HTML Living Standard onmessageerror |
Living Standard |
浏览器兼容性
BCD tables only load in the browser
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.