已采纳回答 / 坐地生财
function hasclass(obj,cls){return obj.className.match(new Regxp("(\\a|^)"+cls+"(\\a|$)"));}function removeClass(obj,cls){if(hasclass(obj,cls)){var reg=new Regxp("(\\a|^)"+cls+"(\\a|$)")obj.className=obj.className.relace(reg,"");}}function removeClass(obj,...
2016-08-05