初始化表单 var form; layui.use(['laydate','form'], function(){ form = layui.form; }); 设置表单中控件的值 //只需要在修改后重新渲染form表单中的select $("#DataScourceNew").val(currentDataSource); form.render('select');