function xxx(names){ for (i=0;i<=names.length;i++){ $.get("http://xxx.com/api",{ tist:names[i], }) } } setInterval(xxx,3000)