Google chrome extension chrome.webRequest.onResponseStarted.addListener

Google chrome extension chrome.webRequest.onResponseStarted.addListener,google-chrome-extension,Google Chrome Extension,在清单中添加了这些行 permissions": [ "tabs","webRequest", "webRequestBlocking", "http://*/*", "https://*/*","ftp://*/*","contextMenus","proxy","cookies"], 我的chrome版本是21.0.1180.89 我尝试在background.js页面中使用ChromeAPI var callbackFunction = function(details){ alert(

在清单中添加了这些行

permissions": [ "tabs","webRequest", "webRequestBlocking", "http://*/*", "https://*/*","ftp://*/*","contextMenus","proxy","cookies"],
我的chrome版本是21.0.1180.89 我尝试在background.js页面中使用ChromeAPI

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

chrome.webRequest.onResponseStarted.addListener(callbackFunction);
但我有以下错误

"Uncaught TypeError: Cannot read property 'onResponseStarted' of undefined"
1:你的舱单正确吗?(显示整个文件,当前行不会显示任何问题)。2:你真的把代码放在背景页了吗?在撰写本文时,该报告显然是不准确和误导性的