美文网首页
axios调用多参数API

axios调用多参数API

作者: Volon | 来源:发表于2019-06-20 17:27 被阅读0次
    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