0
我面对这个问题 405(HTTP GET方法不受此URL支持)错误405(HTTP GET方法不受此URL支持)
,而该方法后在我的代码
$.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");
}
[ajax POST方法不可用]的可能重复(http://stackoverflow.com/questions/9462994/ajax-post-method-is-not-working) – 2012-03-06 08:56:47
“?” +“token =”可以改写为“?token =” – 2012-03-16 09:22:35
这无关紧要@RobertoAloi – 2012-03-16 10:17:29