好心看看這個代碼:
$('a.load').click(function(){
setTimeout(function(){
$(".content_container").append('<div class="preloading"><img src="http://localhost:8888/smart/assets/images/loading.gif" alt="loading" /></div>').show();
var url = 'http://localhost:8888/smart/payments.html';
$.post(url,function(data){
$('.content_container').append(data).show();
$('.preloading').remove();
});
},1000);
});
,它不返回所需的URL的問題,纔剛剛加載圖像,它只是html pages
Firebug告訴你從服務器回來什麼? –
嗯好主意,我會檢查螢火蟲調試器,並告訴你:) – ahmedsaber111
@PaulTomblin你能告訴我如何檢查它從服務器回來什麼 – ahmedsaber111