• To receive messages, subscribe to the onMessage event

    登记onMessage事件接收信息

    youdao

  • This causes the onmessage function in Listing 3 to be invoked.

    将导致清单3中的onmessage函数调用

    youdao

  • So what exactly goes on with this onmessage/postMessage paradigm?

    那么这个onmessage/postMessage 范型到底说明了什么?

    youdao

  • You can see that the Worker script has its own onmessage function.

    可以看到这个Worker脚本拥有自己onmessage函数

    youdao

  • Next, for each worker being created, you set its onmessage function.

    接下来针对每个所创建worker设置onmessage函数

    youdao

  • The onmessage handler is what will receive this message; you use a simple closure for it.

    onmessage处理器接收这个消息;我们使用一个简单闭包

    youdao

  • That is why you set this onmessage function back in Listing 2. Each of the other Workers does very similar work.

    就是为什么设置清单2中的这个onmessage函数原因所在。其他每个Workers都同样的工作。

    youdao

  • To pass this data back, the postMessage function is called, which will invoke the onmessage callback function on the worker, as shown back in Listing 9.

    为了数据传递回去调用 postMessage函数,由该函数在这个worker调用onmessage回调函数,清单 9所示

    youdao

  • To pass this data back, the postMessage function is called, which will invoke the onmessage callback function on the worker, as shown back in Listing 9.

    为了数据传递回去调用 postMessage函数,由该函数在这个worker调用onmessage回调函数,清单 9所示

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定