更新时间:2023-12-01 10:23:28
在每个逗号分隔的组中,可以在选择器之前加上 id .试试
You can precede the selector by id in each comma separated group. Try
$('#tatt td:nth-child(3), #tatt th:nth-child(3)').hide();
注意:为什么已经使用jQuery的人为什么要使用getElementById()
?
Note: Why you are using getElementById()
when you already have jQuery?