Sfoglia il codice sorgente

错误不刷新题目

mzx16822 6 anni fa
parent
commit
f2d8850f27
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      resources/views/home/user.blade.php

+ 4 - 1
resources/views/home/user.blade.php

@@ -301,7 +301,10 @@ layui.use(['form','jquery'], function(){
           time: 1000 //2秒关闭(如果不配置,默认是3秒)
         }); 
       }
-    },'json');
+    },'json').fail(function () {
+          layer.msg("服务器繁忙"); 
+              clearInterval(ts)
+           };
   }
 
   $("#question").on('click', '.answer',function(){