jQuery基础语法

原创2019-02-15 16:05:4799
摘要:<!DOCTYPE html><html lang="en"><head>    <meta charset="UTF-8">    <title>jQuery基础语法</title>    <script src=&qu

<!DOCTYPE html>
<html lang="en">
<head>
   <meta charset="UTF-8">
   <title>jQuery基础语法</title>
   <script src="jquery-3.3.1.min.js"></script>
</head>
<body>
<script>
   $(document).ready(function () {
      $('div').hide()
       $('button').click(function () {
           $('div').show()
       })
   })
</script>
<div style="width: 100px;height: 100px;background: pink;">

</div>
<button>点击</button>
</body>
</html>

批改老师:天蓬老师批改时间:2019-02-15 16:12:18
老师总结:以后, javascript代码,推荐写到底部, 以防止页面阻塞

发布手记

热门词条