0

我正面临这个问题 405(此 URL 不支持 HTTP 方法 GET)

而该方法已在我的代码中发布

$.ajax({
            url: myUrl + "?" + "token=" + AccessToken + "&key=" +dev_key,
            jsonp: 'callback',
            dataType: 'jsonp',
            type: 'post',
            data: sendXML,
            success: function (result) {
                alert("hjgh");
            }
        });

function callback(json)
    {
      alert("ghj");
    }
4

1 回答 1

0

您将“jsonp”指定为“dataType”。这将导致方法为“GET”,覆盖您的“类型”设置。

于 2012-03-16T09:28:36.033 回答