问题描述
|
更新:
我正在尝试让jQuery智能民意调查对我有用。如果该过程在前2秒钟内准备就绪,则工作正常,但如果没有,则不会按预期重试。我还想使重试次数达到一定次数后超时。
https://github.com/hmert/jquery-smart-poll
<script type=\"text/javascript\" charset=\"utf-8\">
$(\"#load_availables\").toggle()
$.poll(2000,function(retry){
$.getScript(\'update_availables.js?job_id=<%= @bed.job_id %>&space_id=<%= @space.id %>\',function(response,status){
if (status == \'success\')
$(\"#load_availables\").toggle() //works fine if ready
else
retry() //does not retry at all
})
})
</script>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)