logo

分享 解决LayUI中的 laydate 点击一闪而过问题

用户2072 175 阅读 0 评论 2022-03-28 17:31

  加一个:trigger: 'click'

<input name="apbegin" id="apbegin" class="layui-input" placeholder="开始日期" value="${apbegin!''}" autocomplete="off">
  
  
  
<script>
layui.use('laydate', function() {
        var laydate = layui.laydate;
         
        //日期时间选择器
          laydate.render({
            elem: '#apbegin'
            ,type: 'datetime'
            ,trigger: 'click'
          });
           
    });
  
</script>


充电支持Ta
精选评论
加载中~