摘要: axios的content-type是自动设置的 一. axios参数的传递方式 首先我们要知道 参数传递一般有两种,一种是 使用 params, 另一种是 data的方式,有很多的时候我们看到的前端代码是这样的。 1. get请求: axios({ method: 'GET', url: 'xxxxx', params: params, }) 或 阅读全文
posted @ 2022-08-27 11:33 大熊丨rapper 阅读(1112) 评论(0) 推荐(2) 编辑