postmessage

  • postmessage
  • 释义

    发送消息;投递;消息方式

纠错 数据更新时间:2025-02-23 23:35:58
  • 知识拓展

    网络释义

    PostMessage是Windows API(应用程序接口) 中的一个常用函数,用于将一条消息放入到消息队列中。消息队列里的消息通过调用GetMessage和PeekMessage取得。

1、

This data is then sent back to the parent thread by using the postMessage function.

该数据随后会被通过postMessage函数发送回母线程。

互联网摘选

2、

When you finish processing the data in the Worker script, you invoke the postMessage function to send data back to the main thread.

当您处理完Worker脚本中的数据时,调用postMessage函数将数据返回主线程。

互联网摘选

3、

Generally, the handler will run its own postMessage() method to return a message to the calling code, and then the port's start() method generates an enable message process.

通常,这个处理程序会执行自己的postMessage()方法将消息返回给调用代码,然后port的start()方法就会生成一个启用消息过程。

互联网摘选

4、

It uses the onmessage/ postMessage paradigm to receive and send data from its parent thread.

它使用onmessage/postMessage范型来从它的母线程接收和发送数据。

互联网摘选

5、

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

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

互联网摘选

6、

To send the thread a message, the postMessage method on the Worker instance is invoked.

要向线程发送一个消息,需要调用Worker实例上的postMessage方法。

互联网摘选

7、

The Window Name protocol is more involved, but it must be used in older browsers that do not support window. postMessage().

这里涉及到了更多的Window Name协议,但是它必须在并不支持window.postMessage()的老式浏览器中使用。

互联网摘选

8、

Finally, to initiate the worker, call postMessage with some data for it to work on.

最后,为了初始化这个worker,用一些数据调用postMessage以便它能工作起来。

互联网摘选

9、

The data you passed from the page script is passed to the postMessage function in the message object.

从页面脚本传来的数据被传递到message对象中的postMessage函数。

互联网摘选

10、

The object passed in to postMessage becomes the data property on the object passed to the onmessage method.

这样一来,传递给postMessage的这个对象就成为了传递给onmessage方法的那个对象的数据属性。

互联网摘选

11、

This is invoked when you call postMessage from the main thread.

该函数在您从主线程调用postMessage时调用。

互联网摘选

12、

Of course, postMessage is an asynchronous function; you call it and it immediately returns.

当然,postMessage是一个异步函数;您调用它,它就立即返回。

互联网摘选

13、

Control returns immediately from PostMessage and the message gets processed later.

控制会从PostMessage立即返回,该消息是后来才处理的。

互联网摘选

  • 今日热词
  • 热门搜索
  • prize[praɪz] n.奖品;非常珍贵的人/物;adj.可以获奖的;优秀的;
  • berry[ˈberi] n.浆果;莓;
  • enter[ˈentə(r)] v.进入;成为…的一员;开始参加;掠过(脑海);开始进入…;参加;写下;输入,登记;
  • noon[nuːn] n.正午,中午;全盛期,顶点;〈古〉午夜;晌午;
  • moon sky 月亮天空
  • harden[ˈhɑːdn] vt.使硬化;使经得起考验;使无情;使轮廓鲜明;vi.变硬或更硬;变稳定;变习惯;
  • than[ðæn , ðən] prep.比(用于比较级之后);多/小/少于;(表示一事紧跟另一事发生)就;conj. 与其说,而不是;
  • which[wɪtʃ] pron.哪一个;(…的)那个;det.哪个;
  • accordingly[əˈkɔ:dɪŋli] adv.因此,于是;依据;照着,相应地;
  • MCM num.罗马数字 1900;
  • plain[pleɪn] adj.清楚的;坦诚的;单色的;朴素的;普通的;明显的;相貌平平的;平针的;完全的;n.平原;平针;
  • buy[baɪ] vt.& vi.购买,购得;n.交易,买卖;便宜货;

简答网英语词典(dict.jiandongshicai.cn)为您提供在线翻译英语词典单词大全英译汉汉译英等英语服务!可按单词字数词义分类查询。支持lj:关键词格式查询例句。

用户反馈
请选择反馈类型(可多选):
您的联系方式:(如需回复请填写联系方式)
反馈内容:
提交成功 小编会尽快处理
回到顶部
点击反馈