[問題] JSP 使用ajax post 給另一個jsp檔
程式碼如下
$.ajax({
type: "POST",
url: "change.jsp",
data: {
screenlayout: $("#screenlayout").val(), template:
$("#template").val()
},
success: function(response){
alert(response);
},
error: function(xhr, ajaxOptions, thrownError){
alert("error"+xhr.status);
alert(thrownError.Error);
}
});
此事件是當我按下按鈕會觸發
但都是出現error錯誤:500 undefined
跟網路上範例都一樣不知道為什麼一直錯誤 我也不知道沒定義到了甚麼
煩請高手解惑
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 123.192.44.78
※ 文章網址: https://www.ptt.cc/bbs/Web_Design/M.1524710404.A.E42.html
推
04/26 11:12,
7年前
, 1F
04/26 11:12, 1F
→
04/26 11:13,
7年前
, 2F
04/26 11:13, 2F
→
04/26 11:48,
7年前
, 3F
04/26 11:48, 3F
→
04/26 11:49,
7年前
, 4F
04/26 11:49, 4F
→
04/26 11:49,
7年前
, 5F
04/26 11:49, 5F
→
04/26 15:23,
7年前
, 6F
04/26 15:23, 6F
推
04/26 15:28,
7年前
, 7F
04/26 15:28, 7F
→
04/29 23:20,
7年前
, 8F
04/29 23:20, 8F
Web_Design 近期熱門文章
PTT數位生活區 即時熱門文章