mzx16822 hace 6 años
padre
commit
e83cf810ea
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      resources/views/home/user.blade.php

+ 3 - 2
resources/views/home/user.blade.php

@@ -165,6 +165,8 @@ layui.use(['form','jquery'], function(){
                 
                 
               }
+              $("#py1_score").html(0);
+              $("#py2_score").html(0);
               break;
           case 'answer':
               console.log(data);
@@ -221,8 +223,7 @@ layui.use(['form','jquery'], function(){
                   cur_question = 1;
                   room_id = 0;
                    
-                  $("#py1_score").html(0);
-                  $("#py2_score").html(0);
+                  
                  
                   return false;
                 }