使用 npm 或者 cnpm 安裝 swiper
打開文件夾在路徑中輸入cmd然後敲擊鍵盤上的Enter鍵,打開命令行。(此方法僅針對Windows用戶)
在命令行中輸入 npm install vue-awesome-swiper --save
或者 cnpm install vue-awesome-swiper --save
安裝cnpm npm install -g cnpm --registry=https://registry.npm.taobao.org
在vue-cli中查看 swiper 是否安裝成功:在package.json中是否有vue-awesome-swiper
使用swiper
導入組件
註冊組件
使用組件