0

在清单中添加了这些行

permissions": [ "tabs","webRequest", "webRequestBlocking", "http://*/*", "https://*/*","ftp://*/*","contextMenus","proxy","cookies"],

我的 chrome 版本是 21.0.1180.89 我尝试在 background.js 页面中使用 chrome api

var callbackFunction = function(details){
alert("response started ");
}

chrome.webRequest.onResponseStarted.addListener(callbackFunction);

但我收到以下错误

"Uncaught TypeError: Cannot read property 'onResponseStarted' of undefined"
4

0 回答 0