标签: javascript google-chrome google-chrome-extension configuration
我这样配置Content.js:
Content.js
chrome.tabs.query({active:true, currentWindow: true}
然后,此扩展程序仅在一个选项卡中运行。当我更改选项卡时,所有变量的值都被重置。如何设置扩展程序以使其在多选项卡上运行?