axios库使用

参考

GET请求

axios.get('/url?id=1').then().catch();

axios.get('/url', {
    params: {
        id: 1
    }
}).then().catch();

POST请求

axios.post('/url', {
    params: {
        id: 1
    }
}).then().catch();

TODO

results matching ""

    No results matching ""