Axios 参数传递格式
axios 索引,便于查找 axios 代码块
- axios.request(config)
- axios.get(url[, config])
- axios.delete(url[, config])
- axios.head(url[, config])
- axios.post(url[, data[, config]])
- axios.put(url[, data[, config]])
- axios.patch(url[, data[, config]])
axios.request(config)
1 | //原始的Axios请求方式 |
axios.get(url[, config])
1 | axios.get('demo/url', { |
axios.delete(url[, config])
1 | //如果服务端将参数作为java对象来封装接受 |
axios.post(url[, data[, config]])
1 | axios.post('demo/url', { |
axios.put(url[, data[, config]])
1 | axios.put('demo/url', { |
axios.patch(url[, data[, config]])
1 | axios.patch('demo/url', { |