日期:2014-05-17  浏览次数:20467 次

谷歌浏览器 $.ajax 不执行
代码如下

function Getdata(pid,type) {

    var obj = { ProblemPlatID: $.trim(pid),Type:type};

    $.ajax({
        type: "POST",
        url: "../aa.ashx",
        data: obj,
        dataType: "json",
        cache: false,
        async: true,
        beforeSend: function() {
            $.jBox.tip("正在执行...", 'loading');
        },
        success: function(data) {

        if (data.result != "") {
            if (data.result == "0") {
                $.jBox.tip(data.msg, 'error');
                }
                else if (data.result == "1") {

                $.jBox.tip(data.msg, 'success');

                    
                }
                else if (data.result == "-1") {
                    window.location.href = "../Login.aspx";
                }
            }
        },
        error: function(data) {
            $.jBox.tip("网络原因,请稍后重试!", 'error');
        },
        complete: function() {
            $.jBox.closeTip();
        }
    });
    }







 在谷歌浏览器里 走到 beforeSend就不往下走了,不知道为啥 ,IE,火狐都是好的
jquery

------解决方案--------------------
应该是可以的,修复一下你的谷歌浏览器。