标签:color 空格 span nbsp this col his 样式 style
1、注意current前有个空格
this.className = this.className + " current";
2、直接将class所有的值替换成current
this.className = "current";
JS——样式类的添加
原文地址:http://www.cnblogs.com/wuqiuxue/p/7878343.html