ソースを参照

错误不刷新题目

mzx16822 6 年 前
コミット
4b57df6d9b
共有1 個のファイルを変更した1 個の追加4 個の削除を含む
  1. 1 4
      resources/views/home/user.blade.php

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

@@ -283,10 +283,7 @@ layui.use(['form','jquery'], function(){
   //获取题目
   var getQuestion = function getQuestion(room_id, index) {
     var url = '/Home/Game/Question';
-    $.get(url, {room_id:room_id, cur_question:index},ajaxError:function(){
-      clearInterval(ts)
-      layer.msg("服务器繁忙!"); 
-    }, function(responsedata){
+    $.get(url, {room_id:room_id, cur_question:index}, function(responsedata){
       if(responsedata.code == 0){
        question_id= responsedata.info.question.question_id;
         $("#Jqtitle").html(responsedata.info.question.title );