zoukankan      html  css  js  c++  java
  • 使用JQuery时间比较

    /// 比较时间的大小

     function time() {
                var s = $("#txt_Start").val();
                var e = $("#txt_End").val();
                if (s != "" && e != "") {
                    var b_date = s.split('-');
                    var e_date = e.split('-');
                    d1 = new Date(b_date[0], b_date[1], b_date[2]);
                    d2 = new Date(e_date[0], e_date[1], e_date[2]);
                            if (d1 > d2) {                           
                                alert("结束日期不能小于开始日期!");
                                return false;
                            }
                }
            }

  • 相关阅读:
    MySQL多表查询
    多表关联
    MySQL数据类型 约束
    初识数据库
    socker server和 event
    os 模块 和 os模块下的path模块
    sys 模块
    time 模块
    目录规范

  • 原文地址:https://www.cnblogs.com/zhangxp1129/p/2632061.html
Copyright © 2011-2022 走看看