我写信(或试图写上)是我的第一次 Chrome延,我无法指出我所看到的这一错误。 我的背景守则
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<script>
console.log( works? );
chrome.tabs.executeScript(null, {code:"document.body.style.fontSize = 20"});
console.log( print again );
</script>
</body>
When I try to run this extension I get the error: Error during tabs.executeScript: Unknown error. extensions/extension process bindings.js:85
Does anyone have any idea what this could possibly be or how to fix it? I get no error when I do not include the line chrome.tabs.executeScript, and I get the error no matter what I write for the parameters of chrome.tabs.executeScript. I also get the error when I include chrome.tabs.executeScript inside a function that is called whenever the browserAction is clicked
感谢你们的帮助。