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