Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在内容脚本中使用 chrome.tabs.captureVisibleTab() ,但它不起作用!我怎样才能做到这一点?谢谢
在本文档中,它说内容脚本不能
使用 chrome.* API(chrome.extension 的部分除外)
它还说
内容脚本可以间接使用 chrome.* API 通过与他们的父分机交换消息
内容脚本可以间接使用 chrome.* API
通过与他们的父分机交换消息
观看此视频可以了解如何间接使用 chrome.* API 。希望这可以帮助。