jquery的方法

Original 2019-01-03 16:50:47 225
abstract:<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title>jquery</title> <script type="text/javascript"src="jquery-3.3.1.min.js"

<!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">

//基础语法

$(document).ready(function(){

$str="变量"

alert($str);

$("div").hide()//隐藏div

$("button").click(function(){

$("div").show()

})//显示div


})

</script>

<div  style="width: 100px;height: 100px;background: pink;"></div>

<button>点击</button>

</body>

</html>


Correcting teacher:灭绝师太Correction time:2019-01-04 09:14:09
Teacher's summary:测试的比较简单奥!下次可以额外拓展点,带案例练习一下!

Release Notes

Popular Entries