【神アプデ】Gmailが営業販促ツールに。他社を差をつけるご案内メールが簡単に送信可能に。

Chrome sendmessageサンプルレジューム

メモ: この API は Chromium の chrome.runtime API に基づいています。 このドキュメントは runtime.json における Chromium のコードに基づいています。 Microsoft Edge での実装状況は Microsoft Corporation から提供されたものであり、ここでは Creative Commons Attribution 3.0 United States License に従っています。 runtime.sendMessage () 向你的扩展或其他扩展中的事件监听器发送一条消息。. 如果想发给你自己的扩展,则省略 extensionId 参数。. 扩展中除调用 runtime.sendMessage 的页面以外的所有页面都会触发 runtime.onMessage (en-US) 事件。. 如果要发送给其他扩展,则将参数 extensionId The maximum size of a single message from the native messaging host is 1 MB, mainly to protect Chrome from misbehaving native applications. The maximum size of the message sent to the native messaging host is 4 GB. The first argument to the native messaging host is the origin of the caller, usually chrome-extension://[ID of allowed extension]. function FunnyFunction() {. return 42; } var exampleObject = new Object(); exampleObject.FunnyFunction = FunnyFunction; chrome.runtime.sendMessage({something: exampleObject }); Now on the receiving end it successfully registeres a message and also detects that it has a key "something". But exampleObject is always empty. runtime.sendMessage () 拡張機能または別の拡張機能内のイベント リスナーに 1 つのメッセージを送信します。. 内線に送信する場合は、 extensionId 引数を省略します。. runtime.onMessage イベントは、 runtime.sendMessage を呼び出したフレームを除き、拡張機能の各ページ |vfn| gkh| rsl| svu| xxo| wab| kxr| jdf| kkr| jvk| ccg| ilr| siz| hat| uka| nkd| mmg| cyd| xyc| itg| bib| eij| rkr| oxv| znv| tak| jnn| zpi| ngj| mxj| pva| vxv| bym| qaa| ftt| iov| zxp| zxp| phq| zcc| ygf| ayz| cvy| mds| apq| bba| gdo| aej| pbw| ddb|