<!DOCTYPE html> <html lang="zh-CN"> <head> <title>test</title> </head> <body> 1 <script> console.log('sdsd') chrome.tabs.executeScript(tabId, {code: 'document.body.style.backgroundColor="red"'}); </script> </body> </html>