vue腳手架中vue-resource發送ajax請求

1.首先先下載    vue-resource  vue   npm install vue-resource    or    yarn add resource  前提是你的電腦裝了 yarn  沒有的話  npm -g install yarnnode 2.在腳手架的main.js中註冊ios 注意下  axios是用原型對象註冊的  vue-resource是 vue.use()註冊 由於
相關文章
相關標籤/搜索