代码如下:
document.getElementById("btn").classList.add("active");
document.getElementById("btn").classList.remove("active");
原文地址:https://www.cnblogs.com/huanghuali/p/10797545.html
时间: 2024-10-09 20:20:41
代码如下:
document.getElementById("btn").classList.add("active");
document.getElementById("btn").classList.remove("active");
原文地址:https://www.cnblogs.com/huanghuali/p/10797545.html