请选择 进入手机版 | 继续访问电脑版

jQuery基本使用教程之入口函数

[复制链接]
查看1495 | 回复0 | 2020-3-4 16:36 | 显示全部楼层 |阅读模式
jQuery基本使用教程之入口函数
  1. <!DOCTYPE html>
  2. <html lang="en">

  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.     <script src="jquery.min.js"></script>
  7.     <title>Document</title>
  8. </head>

  9. <body>
  10.     <style>
  11.         div {
  12.             width: 200px;
  13.             height: 200px;
  14.             background-color: pink;
  15.         }
  16.     </style>
  17.     <div>

  18.     </div>
  19.     <script>
  20.         $(function() {
  21.             $('div').hide();
  22.         });
  23.     </script>
  24. </body>

  25. </html>
复制代码

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

UID
1
贡献
387
丢币
38902
主题
4607
回帖
116
注册时间
2018-9-25
最后登录
2024-3-24