aoun
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script src="js/jquery-1.11.3.min.js"></script>
</head>
<body>
<table id="tb">
    <tr id="1">
        <td class="name">akon</td>
        <td class="phone">111111</td>
    </tr>
    <tr id="2">
        <td class="name">john</td>
        <td class="phone">222222</td>
    </tr>
    <tr id="3">
        <td class="name">tom</td>
        <td class="phone">333333</td>
    </tr>
</table>

<script>
    var trList = $("#tb").find("tr");
    for(var i=0; i<trList.length; i++) {
        alert($(trList[i]).children(".name").text());
    }
</script>
</body>
</html>

 

分类:

技术点:

相关文章:

  • 2021-11-08
  • 2021-09-07
  • 2021-09-07
  • 2021-06-21
  • 2021-09-07
  • 2021-09-07
  • 2021-09-07
  • 2021-12-26
猜你喜欢
  • 2021-09-07
  • 2021-09-07
  • 2021-09-07
  • 2021-09-07
  • 2021-09-07
  • 2021-09-07
  • 2021-11-04
相关资源
相似解决方案