質問編集履歴
1
追記です。
test
CHANGED
File without changes
|
test
CHANGED
@@ -99,3 +99,81 @@
|
|
99
99
|
|
100
100
|
|
101
101
|
よろしくお願いします。
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
追記です。
|
106
|
+
|
107
|
+
こういうことでしょうか?
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
```html
|
112
|
+
|
113
|
+
<html>
|
114
|
+
|
115
|
+
<head>
|
116
|
+
|
117
|
+
<script type="text/javascript" src="/js/jquery.min.js"></script>
|
118
|
+
|
119
|
+
<script>
|
120
|
+
|
121
|
+
function test2(){
|
122
|
+
|
123
|
+
$.ajax({
|
124
|
+
|
125
|
+
type: "POST",
|
126
|
+
|
127
|
+
url: "test.php",
|
128
|
+
|
129
|
+
data: 'data1=testdata1&data2=testdata2',
|
130
|
+
|
131
|
+
success: function() {
|
132
|
+
|
133
|
+
alert('success');
|
134
|
+
|
135
|
+
}
|
136
|
+
|
137
|
+
});
|
138
|
+
|
139
|
+
}
|
140
|
+
|
141
|
+
function test1(){
|
142
|
+
|
143
|
+
var i = 0;
|
144
|
+
|
145
|
+
while(i < 1){
|
146
|
+
|
147
|
+
setInterval(function(){
|
148
|
+
|
149
|
+
test2();
|
150
|
+
|
151
|
+
},500);
|
152
|
+
|
153
|
+
}
|
154
|
+
|
155
|
+
}
|
156
|
+
|
157
|
+
$(function() {
|
158
|
+
|
159
|
+
//起動時
|
160
|
+
|
161
|
+
$(function(){
|
162
|
+
|
163
|
+
test1();
|
164
|
+
|
165
|
+
});
|
166
|
+
|
167
|
+
});
|
168
|
+
|
169
|
+
</script>
|
170
|
+
|
171
|
+
</head>
|
172
|
+
|
173
|
+
<body>
|
174
|
+
|
175
|
+
</body>
|
176
|
+
|
177
|
+
</html>
|
178
|
+
|
179
|
+
```
|