質問編集履歴

1

henkou

2019/03/08 08:26

投稿

hakujam
hakujam

スコア17

test CHANGED
File without changes
test CHANGED
@@ -38,84 +38,6 @@
38
38
 
39
39
 
40
40
 
41
-
42
-
43
- <script>
44
-
45
- $(function () {
46
-
47
-
48
-
49
- $('.helloClick').click(function() {
50
-
51
-
52
-
53
- alert("hello !!");
54
-
55
-
56
-
57
- });
58
-
59
-
60
-
61
- $('.AjaxhelloClick').click(function() {
62
-
63
-
64
-
65
-
66
-
67
- $.ajax({
68
-
69
- url: "/testAjax",
70
-
71
- type: "POST",
72
-
73
- dataType: "html"
74
-
75
- }).done(function(data) {
76
-
77
-
78
-
79
- //alert("ok");
80
-
81
-   $('#testInc').html(data);
82
-
83
-
84
-
85
- }).fail(function(XMLHttpRequest, textStatus, errorThrown) {
86
-
87
-
88
-
89
- alert("error");
90
-
91
-
92
-
93
- });
94
-
95
-
96
-
97
- });
98
-
99
-
100
-
101
- });
102
-
103
- </script>
104
-
105
-
106
-
107
-
108
-
109
- ・・・・・・・
110
-
111
-
112
-
113
- </head>
114
-
115
- <body>
116
-
117
-
118
-
119
41
  <div id="testInc">
120
42
 
121
43
 
@@ -131,8 +53,6 @@
131
53
  <button type=button class= "AjaxhelloClick">Ajax</button>
132
54
 
133
55
 
134
-
135
- ・・・・・・
136
56
 
137
57
 
138
58
 
@@ -242,7 +162,7 @@
242
162
 
243
163
 
244
164
 
245
- ```ajax
165
+ ```java
246
166
 
247
167
 
248
168