0
我通過ajax async:true調用方法,但不顯示返回的值。jquery ajax async true沒有值displayd
$('.loading').show();
$.ajax({
type: "POST",
url: "/client/owedasync/",
data: "client="+id,
async: true,
success: function(t){
alert(t);
$('.loading').hide();
$("#sum_worhhoursowed").html(t+" hours owed");
}
});
如果更改爲false,則會顯示該值。 在firebug中,當async:true時,我可以看到響應值,但不在頁面上。
在什麼情況下觸發警報? 「worhhoursowed」是什麼意思? – AndreKR 2010-11-06 23:30:01