亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

EasyUI Datebox 日期驗(yàn)證之開始日期小于結(jié)束時(shí)間

 更新時(shí)間:2017年05月19日 13:57:38   投稿:mrr  
這篇文章主要介紹了EasyUI Datebox 日期驗(yàn)證之開始日期小于結(jié)束時(shí)間,需要的朋友可以參考下

效果

創(chuàng)建建日期框

<div style="width:65px;"><label>選擇時(shí)間:</label></div>
<div style="width:100px;" id="StartsTime">
   <div class="easyui-datebox" name="data" id="StartDate" style="height:26px;width:100px "></div>
 </div>
 <divstyle="width:110px;" id="EndTime">
   -
  <div class="easyui-datebox" type="text" name="data" id="EndDate" style="height:26px;width:100px " validType="end"></div>
</div>

 自定義easyui驗(yàn)證

//驗(yàn)證開始時(shí)間小于結(jié)束時(shí)間 
$.extend($.fn.validatebox.defaults.rules, {
  end: {
    validator: function (value, param) {
      var startDate = $("#StartsTime input").val();
      var startTmp = new Date(startDate.replace(/-/g, "/"));
      var endTmp = new Date(value.replace(/-/g, "/"));
      return startTmp <= endTmp;
    },
    message: '結(jié)束時(shí)間要大于開始時(shí)間!'
  }
})

以上所述是小編給大家介紹的EasyUI Datebox 日期驗(yàn)證之開始日期小于結(jié)束時(shí)間,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時(shí)回復(fù)大家的。在此也非常感謝大家對腳本之家網(wǎng)站的支持!

相關(guān)文章

最新評論