<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>axios</title>
</head>
<body>
    <div id="app">
        <h2>axios设置参数</h2>
    </div>

    <script src="../js/vue.js"></script>
    <script src="../js/axios.js"></script>

    <script>
        let vm = new Vue({
            el:'#app',
            data(){
                return {
                    info:null
                }
            },
            mounted(){
                axios.get('/user?ID=12345')
                    .then(function (response) {
                        console.log(response)
                    })
                    .catch(function (error) {
                        console.log(error)
                    });
            }
        });
    </script>
</body>
</html>