这中方式是能够选择多组图片进行上传,并且是异步的形式,虽然选择的多个图片,但是却是一个图片一个图片存的,所以后台方法中写的是存一个图片的方法
HTML
<div class="form-group" th:if="${uemiReport ==null || uemiReport.photo==null}">
<input type="hidden" name="photo" class="multiple_show_img" value="">
<div class="layui-upload">
<div class="col-md-2 col-sm-2 col-xs-2" style="text-align: right;">
<button type="button" class="layui-btn" id="multiple_img_upload">报告上传</button>
</div>
<div class="col-md-10 col-sm-10 col-xs-10">
<blockquote class="layui-elem-quote layui-quote-nm">
<div class="layui-upload-list" id="div-slid