소스 검색

错误不刷新题目

mzx16822 6 년 전
부모
커밋
f2d8850f27
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  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(){