<div class="layui-form-item">
<label class="layui-form-label">截止时间:</label>
<div class="layui-input-block">
<input type="text" id="borrowtimebox" name="lasttime"
class="layui-input" placeholder="请输入">
</div>
</div>
<script type="text/javascript">
layui.use(['form','laydate'], function(){
var form = layui.form ;
$ = layui.jquery ;
laydate = layui.laydate;
laydate.render({ //创建时间选择框
elem: '#borrowtimebox' //指定元素
});
});
</script>
layui日期输入框显示的日期是字符串类型
后台接受应该转化成Date
Date time=DateUtil.pStringToDate(lasttime,"yyyy-MM-dd");