더 나은 웹개발을 꿈꾸는 기술 블로그. 웹이즈프리.
(function poll() { $.ajax({ url: '/api/', type: 'GET', dataType: 'json', success: function() { console.log('success'); }, timeout: 3000, complete: setTimeout(function() { poll(); }, 6000) })})();
Previous
Next