Chrome sendrequest錯誤:TypeError:將循環(huán)結(jié)構(gòu)轉(zhuǎn)換為JSON我有以下......chrome.extension.sendRequest({
req: "getDocument",
docu: pagedoc,
name: 'name'}, function(response){
var efjs = response.reply;});它調(diào)用以下..case "getBrowserForDocumentAttribute":
alert("ZOMG HERE");
sendResponse({
reply: getBrowserForDocumentAttribute(request.docu,request.name)
});
break;但是,我的代碼永遠(yuǎn)不會到達(dá)“ZOMG HERE”,而是在運(yùn)行時拋出以下錯誤 chrome.extension.sendRequest Uncaught TypeError: Converting circular structure to JSON
chromeHidden.JSON.stringify
chrome.Port.postMessage
chrome.initExtension.chrome.extension.sendRequest
suggestQuery有誰知道是什么原因引起的?
Chrome sendrequest錯誤:TypeError:將循環(huán)結(jié)構(gòu)轉(zhuǎn)換為JSON
桃花長相依
2019-12-22 20:08:29