Vue.js project
1.使用Vue脚手架创建项目 npm install -g vue-cli,vue init webpack gshop
2.建立基本路由 npm install vue-router --save
3.简单实现静态页面
# 使用
使用:Swiper插件 iconfont字体图标
Swiper插件功能:
Autoplay 自动轮播
-delay 时间
var swiper = new Swiper('.swiper-container', {
loop: true //循环
slidesPerView: 3, //一页显示数量
spaceBetween: 30, //两边间隙
pagination: {
el: '.swiper-pagination',
},
});
iconfont字体图标:
字体库,用来显示图标文字
For a detailed explanation on how things work, check out the guide and docs for vue-loader.