Ver código fonte

优化设置的任务数的校验规则

nikang 6 anos atrás
pai
commit
a2e65597be

+ 1 - 1
stmms-web/src/main/webapp/WEB-INF/views/modules/exam/param/markerList.jsp

@@ -264,7 +264,7 @@ $('.task-btn').click(function () {
          wrongMessage.html('任务数不能为空!');
          return false;
        }else {
-         if(!/^[1-9]*$/.test(taskCount)){
+         if(!/^\+?[1-9][0-9]*$/.test(taskCount)){
            wrongMessage.html('请输入正整数!');
            return false;
          }