這是我的代碼上的jQuery/AJAX參數:如何獲得服務器
$.ajax({
type: "POST",
url: "Default.aspx",
data: "category=2&city=Boston",
contentType: "application/json; charset=utf-8",
dataType: "json",
processData :false,
error: function (json) {
alert(json.statusText);
},
success: function (json) {
alert(json.statusText);
}
});
我怎樣才能讓我的參數(category=2&city=Boston
)到服務器? 請求參數始終爲null
。