- 知识拓展
网络释义
PostMessage是Windows API(应用程序接口) 中的一个常用函数,用于将一条消息放入到消息队列中。消息队列里的消息通过调用GetMessage和PeekMessage取得。
- 双语例句 更多例句
Finally, to initiate the worker, call postMessage with some data for it to work on.
最后,为了初始化这个worker,用一些数据调用postMessage以便它能工作起来。
互联网摘选
To send the thread a message, the postMessage method on the Worker instance is invoked.
要向线程发送一个消息,需要调用Worker实例上的postMessage方法。
互联网摘选
这样一来,传递给postMessage的这个对象就成为了传递给onmessage方法的那个对象的数据属性。
互联网摘选
This data is then sent back to the parent thread by using the postMessage function.
该数据随后会被通过postMessage函数发送回母线程。
互联网摘选
当您处理完Worker脚本中的数据时,调用postMessage函数将数据返回主线程。
互联网摘选
It uses the onmessage/ postMessage paradigm to receive and send data from its parent thread.
它使用onmessage/postMessage范型来从它的母线程接收和发送数据。
互联网摘选
通常,这个处理程序会执行自己的postMessage()方法将消息返回给调用代码,然后port的start()方法就会生成一个启用消息过程。
互联网摘选
从页面脚本传来的数据被传递到message对象中的postMessage函数。
互联网摘选
So what exactly goes on with this onmessage/ postMessage paradigm?
那么这个onmessage/postMessage范型到底说明了什么?
互联网摘选
这里涉及到了更多的Window Name协议,但是它必须在并不支持window.postMessage()的老式浏览器中使用。
互联网摘选
Of course, postMessage is an asynchronous function; you call it and it immediately returns.
当然,postMessage是一个异步函数;您调用它,它就立即返回。
互联网摘选
Control returns immediately from PostMessage and the message gets processed later.
控制会从PostMessage立即返回,该消息是后来才处理的。
互联网摘选
- 今日热词
- 热门搜索
- needle n.针;针状物;<口>刺激性言行;vt.用针缝,刺;刺激,激怒;<俚>增加(饮料的)酒精含量;
- Universiade 世界大学生运动会;
- missile n.导弹;投射物;
- accommodation n.住处;住宿;座位,铺位;和解;
- enthusiastic adj.非常感兴趣的,热心的;
- Succes n. 成功;胜利;发财;成名;成功的人(或事物)
- a host of adj.许多;很多;一大群;
- compromise n.折中;妥协方案;达成协议;v.妥协;违背;使陷入危险;
- Greek n.希腊语;希腊人;女生联谊会会员;
- unite v.(使)团结;(使)联合;
- meeting n.会议;聚会;汇合点;运动会;v.相遇( meet的现在分词);相识;开会;接触(某物);
- Yona n.[地名] [关岛(美)] 约纳;网络尤纳;约纳;臾那;由奈;尤娜

