使用扩展运算符(…)和 Array.prototype.forEach() 移除每个指定元素的 display 属性。
…
Array.prototype.forEach()
display
const show = (...el) => [...el].forEach(e => (e.style.display = '')) // 显示页面上的所有 <img> 元素 show(...document.querySelectorAll('img'))