关于文章 chrome

chrome linux

chrome插件 background与popup通讯

chrome插件 background与popup通讯

监听

chrome.extension.onRequest.addListener(function(request, sender, sendResponse) {console.log(request)});

发送消息

chrome.extension.sendRequest(data);