您现在的位置是:主页 > news > 怎么用小旋风网站建设教程/品牌营销策略分析论文
怎么用小旋风网站建设教程/品牌营销策略分析论文
admin2025/5/5 17:35:38【news】
简介怎么用小旋风网站建设教程,品牌营销策略分析论文,2023年西安最新疫情,上海网站备案要求吗首先要确定表单的提交类型 在main.js中配置全局默认headers: axios.defaults.headers.post[Content-Type] application/x-www-form-urlencoded; 确保表单提交方式为:application/x-www-form-urlencoded 然后确定数据格式应该为表单数据 建议用node的qs npm ins…
怎么用小旋风网站建设教程,品牌营销策略分析论文,2023年西安最新疫情,上海网站备案要求吗首先要确定表单的提交类型 在main.js中配置全局默认headers:
axios.defaults.headers.post[Content-Type] application/x-www-form-urlencoded;
确保表单提交方式为:application/x-www-form-urlencoded
然后确定数据格式应该为表单数据 建议用node的qs
npm ins…
首先要确定表单的提交类型
在main.js中配置全局默认headers:
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
确保表单提交方式为:application/x-www-form-urlencoded
然后确定数据格式应该为表单数据
建议用node的qs
npm install qs --save
然后在main.js中
import Qs from "qs"
Vue.prototype.qs = Qs; //添加原型属性,便于全局使用
然后:用qs处理提交的数据
this.$axios.post('/fuck',this.qs.stringify({username:this.userName,password:this.password}),).then()