js如何取行号?function test(){var tab = document.getElementById('tab')var len = tab.getElementsByTagName('tr').l2023-03-05JavaScript190