咏竹莉
where there is a will,there is a way
posts - 132,comments - 1,views - 66816

随笔分类 -  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 咏竹莉 阅读(583) 评论(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 咏竹莉 阅读(476) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示