取消layUI中日期选择控件默认填充日期
时间:2018-10-22 17:25:56
收藏:0
阅读:1402
input标签中使用日期选择控件填写,加载时默认填充当前日期,

标签设置了placeholder="请选择" autocomplete="off",但是并没有效果,
最后发现可以在绑定时将value一项设置为空,而非new Data()的值,
laydate.render({
elem: ‘#param_monthid‘,
type: ‘month‘,
format: ‘yyyyMM‘,
value: ‘‘,
max: year + "年" + month
});

为什么之前给赋值为new Date了——因为这是别人的代码,
原文:https://www.cnblogs.com/1394htw/p/9830992.html
评论(0)