axios

 <script src="/js/axios.min.js"></script>
    <script>
        /*
        参数 params
        数据 .data
        */
        axios.get("./00 data.json",{
            params:{
             id:1001
        }}).then(function(response){
            console.log(response.data);
        }).catch(function(err){
            console.log(err);
        })
    </script>
posted @ 2021-11-23 10:49  六月沉  阅读(30)  评论(0)    收藏  举报