总结了工作中常用的 ES6 代码片段
摘要:1、如何隐藏所有指定元素? const hide = (...el) => [...el].forEach(e => (e.style.display = "none")); // Example hide(document.querySelectorAll("img")); // 隐藏页面上所有<
阅读全文
posted @ 2021-01-14 11:04