我有了這個代碼,到目前爲止,這是行不通的: $('.passName').click(function(){
var schoolName = "18734";
var link = $(this).attr('href');
var newLink = link + schoolName;
$(this).attr('href') = newLink;
可能重複: What does the selector syntax mean in $(「<div/>」).text(message) 我已經搜查,但找不到這個......包括jQuery的參考任何信息... 什麼$('<img/>')在jQuery中是什麼意思? 我只熟悉$('img')。 我已經在這篇文章中碰到過這樣的代碼: http://tympanus.net/codrops/2010