遍历一个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>

 

posted @ 2015-09-15 10:46  328201736  阅读(284)  评论(0编辑  收藏  举报