首页 > 技术文章 > laydate.render报错:日期格式不合法

taiguyiba 2019-12-05 11:57 原文

在使用laydate渲染日期时:
laydate.render({
    elem: '#day'
});

提示日期格式不合法

 

 需要使用 too.dateType()来包装

<input type="text" id="day" class="form-control" value="${tool.dateType(item.completeTime)}" placeholder="日期">

 

推荐阅读