1、params的用法
a、前端页面
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>测试</title>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<base href="http://localhost:8080/myssm01/">
</head>
<body>
<button onclick="click01('get')">get请求</button>
<button onclick="click01('post')">post请求</button>
<button onclick="click01('put')">put请求</button>
<button onclick="click01('delete')">delete请求</button>
</body>
<script>
function click01(med) {
axios({
method:med,
url:'tes',
params: {
name:'楠小弟',
age:12
}
}).then(function (rs) {