我正在玩笑,想呼吁提供因特网服务,即知道如何这样做,但服务器呼吁继续运行,直到从服务器得到具体答复。
我将等到每个周期的3秒钟。
function servercall() {
while (true) {
// code for clone and insert ...
$.ajax({
type: "POST",
url: "Server.asmx/HelloWorld",
data: "{ name : " + $( #name ).val() + " , time : 2pm }",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(msg) {
AjaxSucceeded(msg);
},
error: AjaxFailed
});
setTimeout("nothing", 2000);
}
}