select下拉框的动态加载
layui里面的:
查询条件的下拉框:
//加载查询条件的下拉框
$.get("/department/loadAllDepartment", function(data) {
let depId = $("#depId");
let html = '<option value="">请选择所属部门</option>'
$.each(data.data, function(i, item) {
html += '<option value="' + item.id
原创
2021-11-25 11:22:42 ·
1843 阅读 ·
0 评论