vue的post以及get多个参数传参
首先是postlet data = {//要传的值};this.$http.post("后缀", data).then(res => {console.log(res)});然后是getthis.$http.post("后缀?uid="+this.uid+'&'+'shopId='+this.shopId).then(res => {console.log(res)});...
·
首先是post
let data = {
//要传的值
};
this.$http.post("后缀", data).then(res => {
console.log(res)
});
然后是get
this.$http.get("后缀?uid="+this.uid+'&'+'shopId='+this.shopId).then(res => {
console.log(res)
});
更多推荐
已为社区贡献2条内容
所有评论(0)