0
$.ajax({
type: "GET",
contentType: "text/html; charset=utf-8",
url: "secret.aspx",
data: {
plu: $("#Text1").val(),
gh: $("#TextBox1").val(),
sid: $("#TextBox2").val()
},
dataType: "html",
success: function(data) {
$("#result").html(data);
}
});
我打電話給aspx
頁面,呼叫正常進行。數據輸入數據庫中,但值不返回頁面從ajax呼叫沒有收到數據
返回語句如下:
Response.Write("hello");
Response.End();
您正在返回什麼'數據類型?嘗試返回'(「
hello
」)' – Coderaemon