首页javascriptpjQuery HTML Element - 如何选择列表中的最后X个项目...

jQuery HTML Element - 如何选择列表中的最后X个项目...

我们想知道如何选择列表中的最后X个项目。...


<html>
  <head>
    <script type="text/javascript" src='http://code.jquery.com/jquery-1.5.2.js'></script>
    <script type="text/javascript">
        $(document).ready(function(){
               $("p").html("<span class='red'>Hello <b>Again</b></span>");
        });
    </script>
  </head>
  <body>
         <p>asdf</p>
  </body>
</html>