lyyb2001

          只是為方便自己找記錄而已
          posts - 57, comments - 27, trackbacks - 0, articles - 5
            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 ::  :: 管理

          2017年7月11日

          表單里面先對某一個控件有效性驗證(如手機號碼,當手機號碼輸入正確,才發(fā)送驗證碼,最后才是對表單驗證)

          <input type="text" id="mobile" name="mobile" placeholder="請輸入您的手機號碼" class="easyui-validatebox form-control" data-options="required:true,validType:'mobile'" />

          validateType自己擴展規(guī)則

          對單個輸入框的驗證為:$("#mobile").validatebox('isValid') 通過返回true

          posted @ 2017-09-19 15:59 skycity 閱讀(841) | 評論 (0)編輯 收藏

              public enum Section {
          KITTING(1),
          LABELKITTING(2),
          PACKING(3);

          private final int code;

          private Section(int code)
          {
          this.code=code;
          }
          public int getCode()
          {
          return this.code;
          }
          }

          Map<Integer,Section> MAP=Arrays.stream(Section.values()).collect(Collectors.toMap(s->s.code, section->section));

          posted @ 2017-07-11 11:40 skycity 閱讀(2768) | 評論 (0)編輯 收藏

          主站蜘蛛池模板: 郓城县| 临猗县| 武鸣县| 岑巩县| 莱芜市| 宕昌县| 都昌县| 肇源县| 天等县| 榆林市| 扶沟县| 乐山市| 巩义市| 隆化县| 光山县| 甘德县| 潜山县| 龙胜| 浪卡子县| 抚州市| 延安市| 房产| 乐业县| 太保市| 固镇县| 鄂伦春自治旗| 乐平市| 华池县| 乌兰县| 阿拉善左旗| 凌海市| 衡水市| 荆州市| 金湖县| 乐业县| 平湖市| 鹤山市| 襄城县| 武安市| 乌海市| 伊宁县|