Layui文件上传
- layui官网:https://www.layui.com/
- layui插件下载
- 官方文档(关于文件上传)
快速入门
前端
1、 index页面,引入css样式和js脚本
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>index</title>
<link rel="stylesheet" th:href="@{/layui/css/layui.css}"/>
</head>
<script th:src="@{/layui/layui.js}"></script>
<script th:src="@{/js/jquery.min.js}"></script>
<body>
<h1>layui文件上传