Axios 简单使用

axios({
    method: "post",
    headers: {
      "Content-Type": "application/json"
    },
    url: "https://localhost:8080/api/v1/Member/Login",
    data: reqData,
  }).then(res => {
     console.log("请求成功:"+res);
  }).catch(res => {
     console.log("请求失败"+res);
  });

 

posted @ 2022-06-01 09:12  LuoCore  阅读(21)  评论(0编辑  收藏  举报