componentDidMount(){
axios({
method:’get’,
url:’http://route.showapi.com/341-1‘,
//参数
params:{
showapi_appid:’33421’,
showapi_sign:’*******************’
}
}).then((res)=>{
console.log(res)
})
}
componentDidMount(){
axios({
method:’get’,
url:’http://route.showapi.com/341-1‘,
//参数
params:{
showapi_appid:’33421’,
showapi_sign:’*******************’
}
}).then((res)=>{
console.log(res)
})
}
本文标题:axios调用多参数API
本文链接:https://www.haomeiwen.com/subject/mkijqctx.html
网友评论