jquery基础语法及笔记
晴天Dr.2018-11-19 11:10:10185<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>jQuery的基础语法</title>
<script type="text/javascript" src="jquery-3.3.1.min.js"></script>
</head>
<body>
<script type="text/javascript">
//$(选择器).action()
$(document).ready(function(){
// $str="我是一个声明变量"
// alert($str);
$("div").hide()//隐藏
$("button").click(function(){
$("div").show()//显示
})
})
</script>
<div style="width: 100px;height: 100px;background: pink;"></div>
<button>点击</button>
</body>
</html>
