遍历一个class名
<script type="text/javascript"> var objBj="animated fadeInUp marginImgThis imgSrcA imgAHover"; var strs=[]; strs=objBj.split(" "); var newArr=[]; $.each(strs,function(index,value){ if(value!="imgAHover"){ newArr[index]=value; } }) alert(newArr[0]) </script>