jquery的基础语法

Original 2019-02-22 12:55:58 185
abstract:<!DOCTYPE html><html><head> <title>jquery的基础语法 </title> <script type="text/javascript" src="jquery-3.3.1.min.js"></script></head><

<!DOCTYPE html>

<html>

<head>

<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: yellow;"></div>

<button>点击</button>

</body>

</html>


Correcting teacher:灭绝师太Correction time:2019-02-22 13:27:19
Teacher's summary:完成的不错 ! 后面开始就要带案例测了哦 !

Release Notes

Popular Entries