jsonp與代理的使用方式

導入jsonp: 使用jsonp: 本地的json數據獲取 1 把數據json拷貝到public目錄 2 發起ajax請求 this.$http.get(’/js/data.json’) .then(res=>{}) .catch(err=>{}) webpack代理方式 新建一個vue.config.js
相關文章
相關標籤/搜索