Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 132 Bytes

切换类.md

File metadata and controls

7 lines (5 loc) · 132 Bytes

切换类

一行代码,轻松在任何元素上切换类:

<div onclick="this.classList.toggle('active')"></div>