jidechao hace 4 meses
padre
commit
554974c6ce
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      public/index.html

+ 1 - 1
public/index.html

@@ -1134,7 +1134,7 @@
                 // 验证身份证格式
                 idNumber = document.getElementById('idNumber' + i);
                 idError = document.getElementById('idNumber-error' + i);
-                if (!/^\d{17}[\dXx]$/.test(idNumber.value)) {
+                if (idNumber.value.length>10) {
                     idError.style.display = 'block';
                     isValid = false;
                 } else {