📅  最后修改于: 2022-03-11 15:03:53.529000             🧑  作者: Mango
const setActive = el => {
[...el.parentElement.children].forEach(sib => sib.classList.remove('active'))
el.classList.add('active')
}