axios进行请求的语法一定要注意

Posted SmallCuteMonkey

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了axios进行请求的语法一定要注意相关的知识,希望对你有一定的参考价值。

axios({
			url:url2,
			method:"get",
			params:{
				keyword:this.keyword,
				limit:this.limit,
				pageNum:this.pageNum

			}

		}).then(res=>{
			this.products=res.data.data.list;
			this.count=res.data.data.count;
			console.log("商品关键字查询的信息-----");
			console.log(res.data.data.list);

		});

axios.get({}).then错误,应该 为
axios({url:url1,
method:“post”,
params:{

}
}).then

以上是关于axios进行请求的语法一定要注意的主要内容,如果未能解决你的问题,请参考以下文章