125
rated 0 times
[
126]
[
1]
/ answers: 1 / hits: 21707
/ 11 Years ago, mon, august 19, 2013, 12:00:00
I use jQuery's ajax()
to get information. I call the method when the request is successful. Here is the code:
function recursively_ajax(){
console.warn(begin);
$.ajax({
type:GET,
url: ./JvmInfoClass,
success: function(data){
console.warn(get jvm info success);
recursively_ajax();
}
});
}
recursively_ajax();
I make the thread sleep 3 seconds in the back-end. But the console print the message continuously not after 3 seconds. Why is this?
More From » jquery