返回 jQuery基...... 登陆

jQuery基础语法

白守 2019-06-19 11:00:59 210

<!DOCTYPE html>

<html lang="en">

<head>

<meta charset="UTF-8">

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<meta http-equiv="X-UA-Compatible" content="ie=edge">

<title>jquery基础语法</title>

<script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>

</head>

<body>



<script>

// $(选择器).操作方法()



$(document).ready(function(){

//隐藏div

$('div').hide();

// 点击按钮显示div

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

$('div').show();

})



})

</script>

<button>点击显示</button>

<div style="width: 150px;height: 100px;background: aquamarine;">


</div>

</body>

</html>



最新手记推荐

• 用composer安装thinkphp框架的步骤 • 省市区接口说明 • 用thinkphp,后台新增栏目 • 管理员添加编辑删除 • 管理员添加编辑删除

全部回复(0)我要回复

暂无评论~
  • 取消 回复 发送
  • PHP中文网