1、效果图
效果图上完了,就开始代码咯!
2、前端html代码
<div class="layui-upload">
<button type="button" class="layui-btn layui-btn-normal" id="testList">请选择图片</button>
<span class="num_pic"></span>
<div class="layui-upload-list">
<table class="layui-table">
<thead>
<tr>
<th>文件名</th>
<th id="pic">图片预览</th>
<th>大小</th>
<th>状态</th>
<th id="cao">操作</th>
</tr>
</thead>
<tbody id="demoList"></tbody>
</table>
</div>
<b