1、$(function(){ $("#a").click(function(){ //adding your code here //adding your code here ); 🎜>2、$(document).ready(function(){ $("#a").click(function(){ //adding your code here〜 //adding your code here 〜〜〜); }); 3、window.onload = function(){ $("#a").click(function(){ //adding your code here >} html程式碼為點選,且頁面需要引用jquery的js檔案