javascript - 求助!IE8中Jquery的$.ajax出现错误?
typecho
typecho 2017-06-14 10:53:54
0
1
727

在其他浏览器中没有问题,但是在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学习者快速成长!