想了解免费建站的朋友,查看《免费建站教程》

js删除class,添加class

2020-03-31 1313 JS
$(“h2”).removeClass(“hndle”);//js删除h2类名hndle
$(“h2”).removeClass(“hndle”).addClass(“hndle800”);//js删除h2类名,并添加新的class


版权保护: 转载请保留链接: https://cgy.isi8.cn/js/38.html