我有一個奇怪的情況,我使用jQuery加載()將一些內容加載到一個模式。這在開發過程中是完美的,但在生產服務器上,對象被忽略,只發送GET請求。我檢查了成功的typeof
對象,並在加載方法的第二個參數中嘗試了其他變體。從來沒有過這個。Jquery加載忽略對象,不張貼
var $modal = $('#ajax-modal');
$('body').modalmanager('loading');
//_token = document.querySelector('meta[name="csrf-token"]').getAttribute('content');
setTimeout(function(){
var _post = {ajax:true, lead:lead, type:type };
$modal.load('leads/action/', _post, function(){
});
}, 1000);
頁眉:
Request URL:http://mydomain/leads/action
Request Method:GET
Status Code:200 OK
我也在在Chrome越來越Provisional headers are shown
。
該腳本應該POST
到url並加載數據到模態。
ajax:true
lead:4273
type:reminder
任何指針將不勝感激
究竟是什麼問題?你需要一個POST請求或很好的GET請求? –
您使用的是Web API嗎? @ jhodgson4 – rJ7
可能是查詢字符串超過限制的問題? @ jhodgson4 – rJ7