jQuery AJAX调用在IE中工作但不是FF吗?

时间:2010-06-10 14:07:49

标签: jquery

$.ajax({
            type: "GET",
            url: 'http://services.somewhere.com/MethodName',
            data: { 'param1':'something', 'param2': 'somethingElse' },
            cache: false,
            dataType: 'jsonp',
            contentType: "application/json; charset=utf-8",
            success: function(view) {
                alert('success');
            },
            error: function(xhr, ajaxOptions, thrownError) {
                alert(xhr.status);
                alert(xhr.responseText);
                alert(xhr.statusText);
            }
        });

1 个答案:

答案 0 :(得分:0)

最后找到解决方案here,清楚地解释了如何使用Web服务

相关问题