var max = 0;
var customeheight;
var rowLength = $('.tbl tr').length;

function recordHeight () {
  for (var i = 0; i <= rowLength; i++) {
    customeheight = $(this).height();
    //max+ = max + customeheight;
    alert(customeheight);
  }
}
recordHeight();

.tbl, tr, td {
  border: 1px solid #ddd;
  border-collapse: collapse;
}

.tbl {
  width: 100%;
  color: #333;
  font-family: arial;
  font-size: 11px;
}

.wrapData {
  white-space: pre-wrap;
  word-break: break-all;
}

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>



<!-- This is my table , how can i get each row height, and i need to add total records height.-->

<body>
  <table class="tbl">
    <tr>
      <th width="15%">Emp ID</th>
      <th width="15%">Name</th>
      <th width="60%">Role Description</th>
      <th width="10%">Salary</th>
    </tr>
    <tr>
      <td>01</td>
      <td>Sara</td>
      <td>
        <div class="wrapData">sdfdsfsdfkjfbdsfksbfsdbfs kldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslk fjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvf ksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbf sdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsd
          fkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfs dbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdf
          kjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjd fvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvf slkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfj
          sdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvf jksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfsl
          kfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsd kjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfv</div>
      </td>
      <td>10000</td>
    </tr>
    <tr>
      <td>01</td>
      <td>Sara</td>
      <td>
        <div class="wrapData">sdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfbl sdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfb
          dsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvdskfgsdflskdhfksbdfjksvdghcvgvchsdbclksdsdfsdfsdfsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvf
          ksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjks dvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslk
          fjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdv fsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfv</div>
      </td>
      <td>100001</td>
    </tr>
    <tr>
      <td>01</td>
      <td>Sara</td>
      <td>
        <div class="wrapData">sdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksj dvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvf
          ksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsf ksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfk354d1dfg4f6d5g4
          fdg4dfg465+f gdfg4df6g4sjdvfj sdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjks dvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvf
          sdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdv
          fskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdv
          fksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfv</div>
      </td>
      <td>100002</td>
    </tr>
    <tr>
      <td>01</td>
      <td>Sara</td>
      <td>
        <div class="wrapData">sdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfj gfdg g6f5d gdf 6g1 6 gf3dg1 gfd3g1d ksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfv</div>
      </td>
      <td>100003</td>
    </tr>
    <tr>
      <td>01</td>
      <td>Sara</td>
      <td>
        <div class="wrapData">sdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfv</div>
      </td>
      <td>100004</td>
    </tr>
  </table>
</body>

最佳答案

尝试以下代码段



var max = 0;
var customeheight;
var rowLength = $('.tbl tr').length;

function recordHeight() {
  jQuery('.tbl tr').each(function() {
    customeheight = $(this).height();
    console.log(jQuery(this).height());
    alert(customeheight);
  })
}
recordHeight();

.tbl, tr, td {
  border: 1px solid #ddd;
  border-collapse: collapse;
}

.tbl {
  width: 100%;
  color: #333;
  font-family: arial;
  font-size: 11px;
}

.wrapData {
  white-space: pre-wrap;
  word-break: break-all;
}

<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>



<!-- This is my table , how can i get each row height, and i need to add total records height.-->

<body>
  <table class="tbl">
    <tr>
      <th width="15%">Emp ID</th>
      <th width="15%">Name</th>
      <th width="60%">Role Description</th>
      <th width="10%">Salary</th>
    </tr>
    <tr>
      <td>01</td>
      <td>Sara</td>
      <td>
        <div class="wrapData">sdfdsfsdfkjfbdsfksbfsdbfs kldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslk fjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvf ksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbf sdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsd
          fkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfs dbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdf
          kjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjd fvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvf slkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfj
          sdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvf jksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfsl
          kfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsd kjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfv</div>
      </td>
      <td>10000</td>
    </tr>
    <tr>
      <td>01</td>
      <td>Sara</td>
      <td>
        <div class="wrapData">sdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfbl sdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfb
          dsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvdskfgsdflskdhfksbdfjksvdghcvgvchsdbclksdsdfsdfsdfsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvf
          ksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjks dvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslk
          fjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdv fsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfv</div>
      </td>
      <td>100001</td>
    </tr>
    <tr>
      <td>01</td>
      <td>Sara</td>
      <td>
        <div class="wrapData">sdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksj dvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvf
          ksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsf ksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfk354d1dfg4f6d5g4
          fdg4dfg465+f gdfg4df6g4sjdvfj sdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjks dvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvf
          sdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdv
          fskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdv
          fksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfv</div>
      </td>
      <td>100002</td>
    </tr>
    <tr>
      <td>01</td>
      <td>Sara</td>
      <td>
        <div class="wrapData">sdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfj gfdg g6f5d gdf 6g1 6 gf3dg1 gfd3g1d ksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfv</div>
      </td>
      <td>100003</td>
    </tr>
    <tr>
      <td>01</td>
      <td>Sara</td>
      <td>
        <div class="wrapData">sdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfvsdfdsfsdfkjfbdsfksbfsdbfskldfblsdvfslkfjvsdjvfsjdvfjksdvfksjdvfjsdvfskjdvfksdvfsdkjfvsjdfv</div>
      </td>
      <td>100004</td>
    </tr>
  </table>
</body>





recordHeight函数中,您正在使用$(this).height()。在您的上下文中,this关键字不指向行。但是,在这种情况下,jQuery传递this关键字中的行。

关于javascript - 如何在for循环中获取表中特定行的高度,最后我需要添加每行的高度,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/51497208/

10-13 01:48