Explorar el Código

错误不刷新题目

mzx16822 hace 6 años
padre
commit
f2d8850f27
Se han modificado 1 ficheros con 4 adiciones y 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(){