Explorar el Código

服务端刷题

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

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

@@ -243,8 +243,8 @@ function daoshu(argument) {
                   $(".cur_answer").addClass("cur_error");
                 }
               }else{
+                 var score = parseInt($("#py2_score").html());
                 if(data.is_true == 1){
-                  var score = parseInt($("#py2_score").html());
                   var s=score+300*(sum/10);
                   if(s<0)s=0;
                   $("#py2_score").html(s);