<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                [TOC] ## 默認校驗規則 如果是boole 類型則需要以 `email="true"` 寫入標簽 |序號|規則|描述| |---|---|---| |1|required:true|必須輸入的字段。| |2|remote:"check.php" 使|用 ajax 方法調用 check.php 驗證輸入值。| |3|email:true| 必須輸入正確格式的電子郵件。| |4|url:true |必須輸入正確格式的網址。| |5|date:true |必須輸入正確格式的日期。日期校驗 ie6 出錯,慎用。| |6|dateISO:true| 必須輸入正確格式的日期(ISO),例如:2009-06-23,1998/01/22。只驗證格式,不驗證有效性。| |7|number:true |必須輸入合法的數字(負數,小數)。| |8|digits:true |必須輸入整數。| |10|equalTo:"#field" |輸入值必須和 #field 相同。| |11|accept: |輸入擁有合法后綴名的字符串(上傳文件的后綴)。| |12|maxlength:5 |輸入長度最多是 5 的字符串(漢字算一個字符)。| |13|minlength:10 |輸入長度最小是 10 的字符串(漢字算一個字符)。| |14|rangelength:[5,10] |輸入長度必須介于 5 和 10 之間的字符串(漢字算一個字符)。| |15|range:[5,10] |輸入值必須介于 5 和 10 之間。| |16|max:5 |輸入值不能大于 5。| |17|min:10 |輸入值不能小于 10。| ## 常用自定義的效驗 ### 郵政編碼驗證 ``` //寫在html中 <input type="text" isZipCode="true"> jQuery.validator.addMethod("isZipCode", function(value, element) { var tel = /^[0-9]{6}$/; return this.optional(element) || (tel.test(value)); }, "請正確填寫您的郵政編碼"); ``` ### 手機驗證 ``` $.validator.addMethod("isMobile",function(value,element,params){ var length = value.length; var mobile = /^(13[0-9]{9})|(18[0-9]{9})|(14[0-9]{9})|(17[0-9]{9})|(15[0-9]{9})$/; return this.optional(element) || (length == 11 && mobile.test(value)); },"手機格式不正確"); ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看