详细说明:1、$(function(){ $(“#a”).click(function(){ //adding your code here }); }); 2、$(document).ready(function(){ $(“#a”).click(function(){ //adding your code here }); }); 3、[removed] = function(){ $(“#a”).click(function(){ //adding your code here }); } html代码为