高级前端
dom
【Q667】简述下 WebWorker,它如何进行通信

简述下 WebWorker,它如何进行通信

Issue 欢迎在 Gtihub Issue 中回答此问题: Issue 685 (opens in a new tab)

Author 回答者: shfshanyue (opens in a new tab)

TODO

Author 回答者: Asarua (opens in a new tab)

js多线程通信,只能访问navigator、setTimeout等有限的api

通过onmessage和postmessage通信,全局对象是self