解決Vue請求 ‘No 'Access-Control-Allow-Origin' header is present on the requested resource’錯誤

若是咱們用VueResouce直接請求,這樣寫(以豆瓣api爲例):html this.$http.get('https://api.douban.com//v2/movie/top250').then((response) => { this.movie = response.data; console.log(this.movie); }); 就會報錯:jque
相關文章
相關標籤/搜索