代码如下: [removed] = function(){ var gaga = document.getElementById( “gaga” ); addClass( gaga,”gaga1″ ) addClass( gaga,”gaxx” ); removeClass( gaga,”gaga1″ ) removeClass( gaga,”gaga” ) function hasClass( elements,cName ){ return !!elements.className.matc