在加载方法时加入这样一段代码
$(function () {
var allDate = $(document).find('.layui-input')
allDate.each(function (index, el) {
$(this).removeAttr("lay-key")
laydate.render({
elem: this,
type: 'time'
});
});
.....});