// addClass()函数封装
function addClass(element,value){
if(!element.className){
element.className = value;
} else {
newClassName = element.className;
newClassName += "";
newClassName += value;
element.className = newClassName;
}
}
网友评论