解决方案 »

  1.   

    你不是要遍历吗?
    怎么没看到 each ?
      

  2.   

    $(".product_storyList_content_left") 得到的是多个div,需要遍历他们
      

  3.   


    $(".product_storyList_content_left").each(function(){
    alert($(this).attr("name"));
      });
      

  4.   


    <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script> 
    <script type="text/javascript">
    $(function(){
    var name=[];
    $(".product_storyList_content_left").each(function(){
    name.push(this.name);
    });
    alert(name);
    });
    </script>
    <input type="button" name="aaaaaaa" class="product_storyList_content_left" />
    <input type="button" name="bbbbbbb" class="product_storyList_content_left" />
    <input type="button" name="ccccccc" class="product_storyList_content_left" />
    <input type="button" name="ddddddd" class="product_storyList_content_left" />