chrome插件 background与popup通讯

Posted 79 months ago chrome linux

监听

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

发送消息

chrome.extension.sendRequest(data);

点击评论