abstract:<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><title>jquery基础语法</title><script src="jquery-3.3.1.min.js"></scrip
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>jquery基础语法</title>
<script src="jquery-3.3.1.min.js"></script>
<style>
.box{ width: 200px;
height: 200px;
border-radius: 100px;
background: blueviolet;
border: 1px solid red;
text-align: center;
line-height: 200px;
}
button{width: 100px;height: 30px;border: none;background:#ffc09f;color: darkblue;border-radius: 5px;}
</style>
</head>
<body>
<script>
//$(选择器).actoin()
$(document).ready(function(){
$(".box").hide()
$("button").click(function(){
$(".box").show()
})
})
</script>
<button>点我呀</button>
<div class="box"> 大家好,才是真的好! </div>
</body>
</html>
Correcting teacher:天蓬老师Correction time:2019-03-08 14:23:04
Teacher's summary:$(document).ready(function(){, 传个回调函数就行