Explorar o código

错误不刷新题目

mzx16822 %!s(int64=6) %!d(string=hai) anos
pai
achega
f2d8850f27
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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(){