摘要: 工作中经常可以用到的22种超实用的ES6方法 1.如何隐藏所有指定的元素 const hide = (...el) => [...el].forEach(e => (e.style.display = 'none')) // 事例:隐藏页面上所有`<img>`元素 hide(document.que 阅读全文
posted @ 2020-02-02 15:21 yanhaha 阅读(283) 评论(0) 推荐(0)