jQuery 是一個 JavaScript 庫。
jQuery 極大地簡化了 JavaScript 編程。
jQuery 很容易學習。
// 官網:
http://jquery.com/
// 下載:
http://jquery.com/download/

-
jQuery 安裝
- 將下載的 jquery-3.2.1.js 移動到你的網站服務器的家目錄里面的js 目錄,並修改名字為 jquery.js。
-
jQuery 的調用
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>aplex_test(aplex.com)</title>
<script src="js/jquery.js">
</script>
<script>
$(document).ready(function(){
$("p").click(function(){
$(this).hide();
});
});
</script>
</head>
<body>
<p>如果你點我,我就會消失。</p>
<p>繼續點我!</p>
<p>接着點我!</p>
</body>
</html>