1.2jquery解决问题
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>Jquery解决问题</title>
<style>
*{
margin: 0;
padding: 0;
}
div {
height: 200px;
background-color: pink;
margin-bottom: 10px;
display: none;
}
</style>
<script src="jquery-1.11.1.min.js"></script>
<script>
$(document).ready(function(){
$("#btn").click(function () {
$("div").show(1000).html("我是内容");
});
});
// $(document).ready(function () {
// alert(11111);
// });
</script>
</head>
<body>
<button id="btn">按钮</button>
<div></div>
<div></div>
<div></div>
</body>
</html>
1.3jquery基本使用:
jquery-1.11.1.js
jquery-1.11.1.min.js 压缩版
jquery2.xxx不支持ie6,7,8
最新jquery3.0
$ is not defined:没有引用jquery包,或者放到了之后了。
**
JQuery下载地址:
http://www.jq22.com/jquery-info122
jquery插件库:
http://www.jq22.com/
**