1.js layui.use(['table', 'element', 'laydate', 'layer','upload'], function () { var table = layui.table, element = layui.element, form = layui.form, laydate = layui.laydate, layer = layui.layer,upload=layui.upload; element.init(); Date.prototype.Form