classList.remove('active') But this is the wrong approach. ... <div class = "name active" ref = "needed" @click = "$refs.needed.classList.toggle('active')"> ...
確定! 回上一頁