<tfoot id='kScgz'></tfoot>

    1. <legend id='kScgz'><style id='kScgz'><dir id='kScgz'><q id='kScgz'></q></dir></style></legend>

      <small id='kScgz'></small><noframes id='kScgz'>

      1. <i id='kScgz'><tr id='kScgz'><dt id='kScgz'><q id='kScgz'><span id='kScgz'><b id='kScgz'><form id='kScgz'><ins id='kScgz'></ins><ul id='kScgz'></ul><sub id='kScgz'></sub></form><legend id='kScgz'></legend><bdo id='kScgz'><pre id='kScgz'><center id='kScgz'></center></pre></bdo></b><th id='kScgz'></th></span></q></dt></tr></i><div id='kScgz'><tfoot id='kScgz'></tfoot><dl id='kScgz'><fieldset id='kScgz'></fieldset></dl></div>
          <bdo id='kScgz'></bdo><ul id='kScgz'></ul>

        layui.laydate默认当前时间时分秒

        时间:2024-07-18

          <legend id='29Rs9'><style id='29Rs9'><dir id='29Rs9'><q id='29Rs9'></q></dir></style></legend>

            <bdo id='29Rs9'></bdo><ul id='29Rs9'></ul>

              1. <i id='29Rs9'><tr id='29Rs9'><dt id='29Rs9'><q id='29Rs9'><span id='29Rs9'><b id='29Rs9'><form id='29Rs9'><ins id='29Rs9'></ins><ul id='29Rs9'></ul><sub id='29Rs9'></sub></form><legend id='29Rs9'></legend><bdo id='29Rs9'><pre id='29Rs9'><center id='29Rs9'></center></pre></bdo></b><th id='29Rs9'></th></span></q></dt></tr></i><div id='29Rs9'><tfoot id='29Rs9'></tfoot><dl id='29Rs9'><fieldset id='29Rs9'></fieldset></dl></div>
                  <tbody id='29Rs9'></tbody>

                <tfoot id='29Rs9'></tfoot>

                <small id='29Rs9'></small><noframes id='29Rs9'>

                  layui.laydate默认当前时间时分秒,详细代码如下:
                      //加载日期控件信息
                      layui.use('laydate', function() {
                          var laydate = layui.laydate;
                          var now = new Date();
                          laydate.render({
                              elem: '#publishTime',
                              theme: 'molv',
                              type: 'datetime',
                              trigger: 'click',
                              max:4073558400000, //公元3000年1月1日
                              ready: function(date){
                                  //console.log(date); //得到初始的日期时间对象:{year: 2017, month: 8, date: 18, hours: 0, minutes: 0, seconds: 0}
                                  this.dateTime.hours=now.getHours();
                                  this.dateTime.minutes=now.getMinutes();
                                  this.dateTime.seconds=now.getSeconds();
                              }
                              /*done: function(value, date, endDate){
                                  var createTime = $("#createTime").val();
                                  var start = new Date(createTime);
                                  var end = new Date(value);
                                  if(start.getTime() > end.getTime()){
                                      $.modal.msgError("回复的发布时间不能早于被回复的发布时间!");
                                      return;
                                  }
                              }*/
                          });
                      });
                  
                   
                  上一篇:layui表格中判断内容为视频或者图片并实现预览 下一篇:没有了

                  相关文章

                    <bdo id='kkdek'></bdo><ul id='kkdek'></ul>

                  1. <i id='kkdek'><tr id='kkdek'><dt id='kkdek'><q id='kkdek'><span id='kkdek'><b id='kkdek'><form id='kkdek'><ins id='kkdek'></ins><ul id='kkdek'></ul><sub id='kkdek'></sub></form><legend id='kkdek'></legend><bdo id='kkdek'><pre id='kkdek'><center id='kkdek'></center></pre></bdo></b><th id='kkdek'></th></span></q></dt></tr></i><div id='kkdek'><tfoot id='kkdek'></tfoot><dl id='kkdek'><fieldset id='kkdek'></fieldset></dl></div>

                    <small id='kkdek'></small><noframes id='kkdek'>

                      <legend id='kkdek'><style id='kkdek'><dir id='kkdek'><q id='kkdek'></q></dir></style></legend><tfoot id='kkdek'></tfoot>