0

我想在浏览器的精确选项卡上执行脚本。该脚本将返回一个值。 我不知道我必须使用什么。 Doc说每次加载新页面时都会调用contentScript。我只想在用户点击popup.html中的按钮时执行脚本。在popup.html上单击事件在Google Chrome扩展的精确选项卡上执行脚本

chrome.extension.onMessage.addListener(function(msg, sender, sendResponse) { 
    //do job 
    sendResponse(...); 
}); 

而且:

回答

相关问题