javascript - Help! Is there an error in Jquery's $.ajax in IE8?
typecho
typecho 2017-06-14 10:53:54
0
1
748

There is no problem in other browsers, but there will be problems in IE8, jump directly to the error of $.ajax, and the readyState returned by alert is 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.

reply all(1)
左手右手慢动作

It is possible that an error was reported in your success callback function.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!