需引入
<link href="${ctx}/select2/select2.min.css" rel="stylesheet" />
<script src="${ctx}/select2/select2.full.min.js"></script>
<script src="${ctx}/assets-common/js/jquery-1.11.1.min.js" type="text/javascript"></script>
<select name="employee.employeeJobtitles" class="layui-input" id="dnjob" multiple="multiple">
<c:forEach items="${dicHylxList}" var="dnzw">
<option value="${dnzw.dicName}">${dnzw.dicName}</option>
</c:forEach>
</select>
var selectory = $('#dnjob').select2({
placeholder: '请选择',
});
select2的使用
最新推荐文章于 2021-04-09 13:38:54 发布