Axios发送请求时params和data的区别 params是添加到url的请求字符串中的,用于get请求(get请求中不存在data这个选项)。 data是添加到请求体(body)中的,用于post请求。