zoukankan      html  css  js  c++  java
  • jquery 比较两个日期的大小

    js

      $("#Text2").click(function ()
                {
                    WdatePicker({ dateFmt: 'yyyy-MM-dd HH:mm' });
                });

                $("#Text3").click(function ()
                {
                    WdatePicker({ dateFmt: 'yyyy-MM-dd HH:mm' });
                });

                $("#Button3").click(function ()
                {
                    var ks = $("#Text2").val();
                    var start = new Date(ks.replace("-", "/").replace("-", "/"));
                    var js = $("#Text3").val();
                    var end = new Date(js.replace("-", "/").replace("-", "/"));
                    if (end < start)
                    {
                        $("#dvsj").html("Js小");
                    }
                    else
                    {
                        $("#dvsj").html("开始小");
                    }
                });

    html

       checkdate<br />
        KS<input id="Text2" type="text" />
        JS<input id="Text3" type="text" />
        <input id="Button3" type="button" value="sj" />
        <div id="dvsj"></div>

  • 相关阅读:
    L1范数和L2范数
    Python---scikit-learn(sklearn)模块
    Python------SciPy模块
    Python---Pandas模块
    Python---NumPy模块---矩阵操作
    Python---NumPy模块
    sift代码实现详解
    opencv 图像
    OpenCV-Mat结构详解
    OpenCV3+VS2015 经常出现debug error abort()has been called问题
  • 原文地址:https://www.cnblogs.com/zhanglimei/p/4208705.html
Copyright © 2011-2022 走看看