axios调用多参数API

来源:互联网 发布:深入浅出python pdf 编辑:程序博客网 时间:2024/05/17 23:15

componentDidMount(){
axios({
method:’get’,
url:’http://route.showapi.com/341-1‘,
//参数
params:{
showapi_appid:’33421’,
showapi_sign:’*******************
}
}).then((res)=>{

    console.log(res)    })}
原创粉丝点击