Axiso解决跨域访问

源码地址:https://github.com/jitwxs/blog_samplevue 这里以访问豆瓣Top250为例,直接访问以下:java this.$axios.get("http://api.douban.com/v2/movie/top250") .then(res=>{ console.log(res) }) .catch(err=>{ console.log(err) })
相关文章
相关标签/搜索