// GET请求
axios.request.get('/api', { params: { name: 'liziyu', age: 20 }});

// POST请求
axios.request.post('/api', { name: 'liziyu', age: 20 });

// DELETE请求
axios.request.delete('/api/1', { data: { name: 'liziyu', age: 20 }});

// PUT请求
axios.request.put('/api/1', { name: 'liziyu', age: 20 });

标签: none

添加新评论