Springboot+Vue先後端交互---axios

一.前端發送請求 1.導入axios前端 import axios from 'axios' axios支持多種請求方式,其中經常使用方式以下:vue axios.get(url, params).then(res => { do something }) axios.post(url, data).then(res => { do something }) .then後爲回調函數,即發送成功後後
相關文章
相關標籤/搜索