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