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.executescript()?我已经在chrome.tabs.executescript().
chrome.tabs.executescript()
我认为您可以将一个字符串组成一个小js代码,首先传递给executescript(),在您要调用的真实js之前将一些参数添加到全局空间(或内容脚本的隔离空间)中。