zoukankan      html  css  js  c++  java
  • easyUI datebox 精确到秒并且显示值

    1.前端input (data-options="editable:true"  这个不要也可以,如果有需要设置为true )

    <input id="xxx" name="xxx" class="easyui-datebox" data-options="editable:true" />

     2.js代码,此处showSeconds: false则不显示秒,showSeconds: true 则显示秒

    //时间时分秒
        $('#xxx').datetimebox({
            value: '3/4/2010 0:0',
            required: true,
            showSeconds: false
        });

    3.取值,设值

    //设值
    $('#xxx').datebox({'setValue', '2021-10-25 14:23'});
    $('#xxx').datebox({'setValue', '2021-10-25 14:23:00'});
    
    //取值
    $('#xxx').datebox("getValue");
  • 相关阅读:
    poj 2104 C
    2015 百度之星初赛 1 2 2015ACM/ICPC亚洲区上海站 codeforces 851
    3.10补
    3.9补
    3.8补
    3.6补
    3.5补
    3.4补
    3.3补
    2.35补
  • 原文地址:https://www.cnblogs.com/xuelishuyue/p/15459167.html
Copyright © 2011-2022 走看看