隐藏div 只能放在 id 里面 不能放在 class 里。 隐藏 th td 可以放在 class 里面
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>菜鸟教程(runoob.com)</title>
<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js">
</script>
<script>
$(document).ready(function(){
$(".btn1").click(function(){
$("#th_name").hide();
});
$(".btn2").click(function(){
$("th_hello").show();
});
});
</script>
</head>
<body>
<div class="th_name" id = "dd">name</div>
<div class="td_name">张三</div>
<button class="btn1">隐藏</button>
<button class="btn2">显示</button>
</body>
</html>