0
点赞
收藏
分享

微信扫一扫

vue案例

柠檬果然酸 2022-04-14 阅读 43
 var a
        let id2=100
        let url2="http://localhost:8080/axios/findUserById?id="+id2
        async function getdata(){
            await axios.get(url2)
            .then(promise=>{
               console.log(promise.data.id)
               this.a=promise.data.id
                alert(a)
            })
        }
举报

相关推荐

0 条评论