87,907
社区成员
发帖
与我相关
我的任务
分享
<table border="1">
<thead>
<tr>
<th>
1
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
2
</td>
</tr>
<tr>
<td>
3
</td>
</tr>
</tbody>
</table>
$(".divCard table thead").click(function(){
var div2 = $(".div2");
if(div2.style.display=="none"){
div2.show();
}else{div2.hide();}
});
$(".divCard table thead").click(function(){
$(".div2").show();
});