質問編集履歴

1

2020/07/06 15:41

投稿

out
out

スコア1

test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,16 @@
1
1
  以下のようにajax通信でjsonをpostするソースを作成しました。
2
+
3
+
4
+
5
+ ```html
6
+
7
+
8
+
9
+ <button type="button"></button>
10
+
11
+
12
+
13
+ ```
2
14
 
3
15
 
4
16
 
@@ -38,9 +50,19 @@
38
50
 
39
51
  },
40
52
 
41
- error: function() {
53
+ error: function(XMLHttpRequest, textStatus, errorThrown) {
42
54
 
43
55
  alert("エラー");
56
+
57
+
58
+
59
+ console.log("XMLHttpRequest : " + XMLHttpRequest.status);
60
+
61
+   console.log("textStatus : " + textStatus);
62
+
63
+   console.log("errorThrown : " + errorThrown.message);
64
+
65
+
44
66
 
45
67
  },
46
68