function(element,value) //给元素添加className
{
if(!element.className)
{
element.className=value;
}
else{
newClassName+=element.className;
newClassName+=' ';
newClassName+=value;
element.className=newClassName;
}
}
2022-08-20 15:07:13
function(element,value) //给元素添加className
{
if(!element.className)
{
element.className=value;
}
else{
newClassName+=element.className;
newClassName+=' ';
newClassName+=value;
element.className=newClassName;
}
}