jQuery $.ajax() function's error message

 $.ajax({
        type: "POST",
        url: "SOME_URL",
        data: JSON.stringify(data),
        dataType: "json",
       
        success: function(response) {
            alert("success");
        },
        error: function(xhr, ajaxOptions, thrownError) {
            alert('Error: ' + thrownError);
        }
    })

留言

這個網誌中的熱門文章

使用Mac的Preview來合併兩張圖片

重拾起書本

Mac OS X 10.6.3 上的黑體-繁