redirect重定向
post请求返回数据格式
{
"success": true,
"message": "OK",
"data": {
"username": "mockedName",
"phone": "12345678901",
"email": "xxx.xxx@xxx.com"
}
}
默认的表单请求头
‘content-type’: ‘application/x-www-form-urlencoded’
<form action="/api/get_user" method="POST">
<input name="text" />
<button>提交</button>
</form>