<table>
<tr>
<td>data</td>
<td>data</td>
</tr>
<tr class='product_details'>
<td>product details</td>
<td>product details</td>
</tr>
<tr class='product_details'>
<td>product details</td>
<td>product details</td>
</tr>
</table>
我想计算类为 product_details 的表行。我如何用 jQuery 做到这一点?