🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
[TOC] > [参考](http://blog.haoji.me/chrome-plugin-develop.html#hu-xiang-tong-xin-gai-lan) ## 概述 | injected-script | content-script | popup-js | background-js | | --- | --- | --- | --- | | injected-script | \- | window.postMessage | \- | \- | | content-script | window.postMessage | \- | chrome.runtime.sendMessage chrome.runtime.connect | chrome.runtime.sendMessage chrome.runtime.connect | | popup-js | \- | chrome.tabs.sendMessage chrome.tabs.connect | \- | chrome.extension. getBackgroundPage() | | background-js | \- | chrome.tabs.sendMessage chrome.tabs.connect | chrome.extension.getViews | \- | | devtools-js | chrome.devtools. inspectedWindow.eval | \- | chrome.runtime.sendMessage | chrome.runtime.sendMessage |