input标签中使用日期选择控件填写,加载时默认填充当前日期,

取消layUI中日期选择控件默认填充日期

标签设置了placeholder="请选择" autocomplete="off",但是并没有效果,

最后发现可以在绑定时将value一项设置为空,而非new Data()的值,

laydate.render({
    elem: '#param_monthid',
    type: 'month',
    format: 'yyyyMM',
    value: '',
    max: year + "年" + month
});

取消layUI中日期选择控件默认填充日期

为什么之前给赋值为new Date了——因为这是别人的代码,

相关文章:

  • 2021-12-14
  • 2021-11-27
  • 2021-12-09
  • 2021-12-11
  • 2021-10-09
  • 2022-12-23
  • 2021-12-03
  • 2021-11-01
猜你喜欢
  • 2021-08-11
  • 2021-11-02
  • 2022-12-23
  • 2022-12-23
  • 2021-10-16
  • 2022-12-23
  • 2021-10-16
相关资源
相似解决方案