摘要: 本文主要介绍24中es6方法,这些方法都挺实用的,本本请记好,时不时翻出来看看。 1.如何隐藏所有指定的元素 1 const hide = (el) => Array.from(el).forEach(e => (e.style.display = 'none')); 2 3 // 事例:隐藏页面上 阅读全文
posted @ 2020-03-06 16:50 Object_L 阅读(403) 评论(0) 推荐(0) 编辑