关于使用vue 的resource插件用post请求数据时一直是options的解决方案
请求参数,中加上对象:{"emulateJSON":true}即可解决this.$http.post(url,data,{"emulateJSON":true}).then(function (res) {console.log(res);},function (err) {
·
请求参数,中加上对象:{"emulateJSON":true}即可解决
this.$http.post(url,data,{"emulateJSON":true}).then(function (res) {
console.log(res);
},function (err) {
console.log(err);
});
},更多推荐



所有评论(0)