// background.js chrome.runtime.onInstalled.addListener(function () { console.log("插件已被安装"); });