遍历表格数组时,用table属性还是tr属性
比如:
<table class="box">
<tr class="score">
<td><input type="text" id=""></td>
<td><input type="text" id=""></td>
<td><input type="text" id=""></td>
<td><input type="text" id=""></td>
</tr>
<tr class="score">
<td><input type="text" id=""></td>
<td><input type="text" id=""></td>
<td><input type="text" id=""></td>
<td><input type="text" id=""></td>
</tr>
<tr class="score">
<td><input type="text" id=""></td>
<td><input type="text" id=""></td>
<td><input type="text" id=""></td>
<td><input type="text" id=""></td>
</tr>
</table>
let arr = document.querySelectorAll(".box");
得到的是3个tr数组还是12个td数组?