Chrome扩展程序:响应storage.get时出错:TypeError

时间:2018-10-19 07:37:09

标签: javascript google-chrome-extension

运行chrome扩展程序时出现错误:

Error in response to storage.get: TypeError: Cannot read property 'innerHTML' of undefined

Context
popup.html
Stack Trace
script.js:324 (temp.map)
script.js:324 (Object.chrome.storage.local.get [as callback])
jquery/jquery-3.2.1.min.js:2 (i)
jquery/jquery-3.2.1.min.js:2 (Object.fireWith [as resolveWith])

行的代码

324:var messageTest = temp.map((x, i) => "message =" + x[0].innerHTML + ", time= " + x[2].innerHTML + ((i % 2 === 0) ? "message by user" : " message by s"));

0 个答案:

没有答案