前端代码:
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="../../commons/common.jsp" %>
<html>
<head>
<title>Title</title>
<link rel="stylesheet" type="text/css" href="${layui_path}/css/layui.css"/>
<script src="${layui_path}/layui.js"></script>
<scrip src="../static/layuiv254/lay.modules/layer.js"></scrip>
</head>
<body>
<div class="layui-upload">
<button type="button" class="layui-btn layui-btn-normal" id="testList">选择多文件</button>
<div class="layui-upload-list">
<table class="layui-table">
<thead>
<tr>
<th>文件名</th>
<th>大小</th>
<th>状态</th>
<th>操作</th>
</tr>
</thead>
<tbody id="demoList"></tbody>
</table>
</div>
<button type="button" class="layui-btn" id="testListAction"><