js怎么获取元素的class名js获取元素的class名:var className=document.getElementsByClassName('names')[0]jquery获取元素的class名:var className = $(2023-02-20JavaScript270