我有了这个代码,到目前为止,这是行不通的: $('.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