<!DOCTYPE html>
<html>
<head>
<title>点击标签隐藏</title>
<script src="/jquery-2.2.4.min.js"></script>
</head>
<body>
<h1>美滋滋</h1>
<h1>嘻嘻嘻</h1>
<h1>嘿嘿嘿</h1>
<script>
$(document).ready(function(){
$('h1').click(function(){
$(this).hide()
})
})
</script>
</body>
</html>
前端开发 点击标签隐藏
最新推荐文章于 2024-05-30 15:56:22 发布