javascript - vue-resource $http.get请求不生效
巴扎黑
巴扎黑 2017-04-11 10:30:45
0
2
772

在做项目时遇到一个问题,使用的是webpack打包和vue.js来。 打包页面都不出问题,但是在使用this.$http.get('请求地址')来发送请求时,在服务器和某台电脑本地服务器可以捕获到请求,但是在另外两台电脑的本地服务器就无法获得请求,使用fiddler也无法抓到包。引入了vue-resource

this.$http.get("/venue/getVenue.action?id=guqintai").then(({data}) => {
              log.console('111');
              this.detials=data.data;
            })
            
巴扎黑
巴扎黑

reply all(2)
Peter_Zhu

先看一下是不是根本就没有发送请求的?

伊谢尔伦

另外两台有报错吗..我用的this.$http.jsonp()请求,也能请求的到

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!