vue的post以及get多个参数传参

首先是post

	let data = {
				//要传的值
				};
				this.$http.post("后缀", data).then(res => {
				console.log(res)
				});

然后是get

			this.$http.post("后缀?uid="+this.uid+'&'+'shopId='+this.shopId).then(res => {
				console.log(res)
				});

猜你喜欢

转载自blog.csdn.net/wsxDream/article/details/113520820