在vue中使用axios 命令行输入 vue add axios 在vue中写js代码 created() { const _this = this axios.get('http://localhost:8181/demo/user/findAll').then(function (resp) { _this.users = resp.data //console.log(resp) }) }