ajax返回错误的响应

时间:2014-03-25 10:42:31

标签: jquery ajax

我有一个简单的ajax脚本,但它返回错误的响应,它应该返回成功。它不会触发成功警报,但会在错误警报中显示propper响应。在firebug控制台中,我看到200 ok和propper响应。可能是什么问题?

$.ajax({
        type: "GET",
        url: '/GetPhotos?categoryid=tohome',
        dataType: "json",
        success: function () {
            alert('success');
        },
        error: function (xhr, status, error) {
            alert(xhr.responseText);
        }
    });

0 个答案:

没有答案
相关问题