javascript - 求救! IE8中Jquery的$.ajax出現錯誤?
typecho
typecho 2017-06-14 10:53:54
0
1
728

在其他瀏覽器中沒有問題,但是在IE8中就會出現問題,直接跳到$.ajax的error,alert回傳的readyState為0

    $.ajax({
            type: "POST",
            async: false,
            contentType: "application/x-www-form-urlencoded;charset=UTF-8",
            xhrFields: {
                withCredentials: true
            },
            url:url,
            data:data,
            success:function (response) {
                arr = response.Data.ListData;
            },
            error:function (XMLHttpRequest, textStatus, errorThrown) {
                alert(XMLHttpRequest.readyState);
            }
        });

readyState:

#
typecho
typecho

Following the voice in heart.

全部回覆(1)
左手右手慢动作

有可能是你success的回呼函數中報錯了。

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!