我在从document.querySelectorAll获取结果时遇到问题 以下代码在浏览器的调试控制台中运行良好: document.querySelectorAll("td.answer-text> div").forEach(function(el, i, arr) var a = el.innerHTML;
a = a.replaceAll('<,我得到了空数组结果: contentScript.js (0) w
我尝试获取数组中图像的函数属性值,但控制台显示"item.getAttribute is not a src“错误。image" data-src="https://i.pinimg.com/originals/a7/e6/9a/a7e69a71125bb231adb1eceb50a60500.jpg" alt="">images.push(image);
(f