1
我發現了奇怪的錯誤(也許)。當我以散列形式向$ .ajax發送參數,並試圖檢查$ .ajaxSend中的參數時,我發現settings.data爲null,settings.url在包含參數的情況下是正常的。然後我查看jQuery代碼,發現數據被刪除。
// If data is available, append data to url for get requests
if (s.data && type == "GET") {
s.url += (s.url.match(/\?/) ? "&" : "?") + s.data;
// IE likes to send both get and post data, prevent this
s.data = null;
}
現在我需要解析URL((的,怎麼辦?
In JQuery, using ajaxSend to preview the url built by $.post call
這裏的意見,我看到的數據應該在那裏。