咏竹莉
where there is a will,there is a way

随笔分类 -  axios

axios post提交数据的三种请求方式
摘要:1. Content-Type: application/json let data = {"code":"1234","name":"yyyy"}; axios.post(`${this.$url}/test/testRequest`,data) .then(res=>{ console.log( 阅读全文
posted @ 2021-12-23 16:25 咏竹莉 阅读(589) 评论(0) 推荐(0)
axios 添加公共参数
摘要:'use strict' import Vue from 'vue' import axios from 'axios' import qs from 'qs' // post form 表单提交,序列化,否则后台接收不到数据 let config = { withCredentials: true 阅读全文
posted @ 2021-09-13 14:53 咏竹莉 阅读(485) 评论(0) 推荐(0)