1.点击事件
$("p").click();
2.dblclick()双击事件
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>jq之demo</title>
<!--线上jq库-->
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script>
$(document).ready(function(){
$("p").dblclick(function(){
/*$(this)当前元素*/
$(this).hide();
});
});
</script>
</head>
<body>
<h2>这是标题</h2>
<p>喔喔</p>
<p>我</p>
<p class="test">我2</p>
</body>
</html>









