post请求返回400错误请求错误但是如果我在其他客户端上测试它会给出200 ..
下面的是ajax调用
网址
var ajaxUrl = "/json/accounts/tallySales";
var endDate = $('#dateRangeEnd').val();
var startDate = $('#dateRangeStart').val();
$.ajax({
url: ajaxUrl,
type: "POST",
data: JSON.stringify(jsonData),
contentType: "application/json",
dataType: 'json',
success: function(data) {
if ((data.tallySales !== undefined) && (data.tallySales.length > 0)) {
populateJqgrid(data.tallySales, data.totalRecords);
} else {
$("#searchResultGrid").jqGrid("clearGridData");
smoke.alert(data.message);
//smoke.alert("No data found for current search paramters");
}
$(".doSearch").each(function() {
$(this).html($(this).val());
});
$(".doSearch").removeAttr("disabled");
},
error: function() {
$(".doSearch").each(function() {
$(this).html($(this).val());
});
$(".doSearch").removeAttr("disabled");
}
});