var _this=this;
        axios.defaults.headers.post['Content-Type'] = 'application/json;charset=UTF-8';
        axios.get("http://192.168.30.52:8882/test.html").then(function (response){
            _this.getResult=response.data;
            console.log("get请求",_this.getResult);
        }).catch(function(error){
            console.log(error);
        });

 

Logo

前往低代码交流专区

更多推荐