<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><title>点击p段落,把它们隐藏</title><script src="https://code.jquery.com/jquery-3.4.1.min.js"></script><script>$(document).ready(function(){$("p").click(function(){$(this).hide();});$("p").css("color","red");把所有p元素的颜色变红});</script>
</head>
<body><p>你点我我就会消失</p><p>点我</p><p>点我</p>
</body>
</html>
F12查看jq版本,consloe输入$.fn.jquery
