一旦所有三個負載完成...jQuery的 - 做[X]後多發.load
$("#sidebar a").live("click", function(e){
$(this).addClass("selected loading");
$("#conceptual").load(conceptualUrl, null, function(){ $(this).removeClass('loading').show("fast"); });
$("#development").load(developmentUrl, null, function(){ $(this).removeClass('loading').show("fast"); });
$("#operational").load(operationalUrl, null, function(){ $(this).removeClass('loading').show("fast"); });
});
如何從鏈接一旦所有三個負載完成刪除加載類?
$("#sidebar a.loading").removeClass("loading");
謝謝!
額外}在第10行。否則優秀 - 謝謝! – Rick 2009-11-06 08:52:33
@瑞克謝謝,修好了 – 2009-11-06 09:24:48