2012-11-20 112 views

回答

4

是的,它是(從jQuery doc):

$("#success").load("/not-here.php", function(response, status, xhr) { 
    if (status == "error") { 
    var msg = "Sorry but there was an error: "; 
    $("#error").html(msg + xhr.status + " " + xhr.statusText); 
    } 
}); 
+0

工作就像一個魅力!謝謝您的幫助!幾分鐘後會接受答案。 –

相關問題