首页javascriptchildren_indexjQuery Selector - 如何选择索引高于给定索引的所有元素...

jQuery Selector - 如何选择索引高于给定索引的所有元素...

我们想知道如何选择索引高于给定索引的所有元素。...

<html>
  <head>
    <script type="text/javascript" src='http://code.jquery.com/jquery-1.5.2.js'></script>
    <script type="text/javascript">
        $(document).ready(function(){
              var words = $("b:first").text().split(" ");
              console.log(words);
        });
    </script>
  </head>
  <body>
    <body>
       <b>Hello asdf asdf</b>
    </body>
</html>