Google Chrome 插件开发: 无法建立连接, 接收端不存在. Could not establish connection. Receiving end does not exist
通过以下代码向当前页面发送“start”消息:chrome.tabs.query({active:true,currentWindow:true},tabs=>{lettab=tabs[0];chrome.tabs.sendMessage(tab.id,"start");});报错:Uncaught(inpromise)Error:Couldnotestablishconnection.Recei