摘要:
http://www.cnblogs.com/songrimin/p/6905136.html 这个地址不错 在上一些我的demo代码 第一步安装 npm install vue-awesome-swiper --save main.js require('swiper/dist/css/swipe
阅读全文
posted @ 2017-09-08 11:58
执候
阅读(188)
推荐(0)
摘要:
参考地址:https://segmentfault.com/a/1190000006165434 例1: 例2 例3:
阅读全文
posted @ 2017-09-07 17:58
执候
阅读(165)
推荐(0)
摘要:
第一种 比较灵活简单的方式(切换改变部分的内容在组件中比较方便操作) 第二种(比较死板,内容被固定住了) 第三种(比较死板,内容被固定住了,使用过jquery的人习惯用的方式)
阅读全文
posted @ 2017-09-06 18:10
执候
阅读(513)
推荐(0)
摘要:
1,先下载一个github 2,去github上上传文件 . 3,用下载的github指令面板运行,把新建项目生成的git地址,在本地克隆 进入文件夹,设置个人信息,把 你要上传的文件放到文件夹里面 git add * 等等 把文件推到远程仓库 找到文件创建gh-pages分支 在setting中查
阅读全文
posted @ 2017-08-29 17:26
执候
阅读(200)
推荐(0)
摘要:
我是在vue做的数据 actions mutations state index页面获取值 传递给子页面 子页面的操作 <template> <div class='cascade__container'> <div class='left__container'> <div class='sele
阅读全文
posted @ 2017-08-17 11:21
执候
阅读(761)
推荐(0)
摘要:
使用vuex做简单的加减 效果 在组件中提交 Mutations 你可以在组件中使用 this.$store.commit('xxx') 提交 mutation,或者使用 mapMutations 辅助函数将组件中的 methods 映射为 store.commit 调用(需要在根节点注入 stor
阅读全文
posted @ 2017-08-02 15:14
执候
阅读(174)
推荐(0)
摘要:
http://mint-ui.github.io/docs/#/en2 Mintui 详细地址 基于2.0的安装 npm install mint-ui -S 主要就三行指令 import Mint from 'mint-ui'import 'mint-ui/lib/style.css' Vue.u
阅读全文
posted @ 2017-08-01 17:41
执候
阅读(890)
推荐(0)
摘要:
1,bootstrap和vue2.0结合使用 vue文件搭建好后,引入jquery和bootstrap 我采用的方式为外部引用 在main.js内部直接导入 用vue-cli直接安装jquery和bootstrap npm install jquery --save 首先在脚手架里面配置,找到web
阅读全文
posted @ 2017-07-28 14:49
执候
阅读(547)
推荐(0)
摘要:
vue 2016年10月份发布2.0版本 安装: 首先安装node和npm 记得配置环境变量 在安装vue npm install vue npm install --global vue-cli 装完之后检查Vue的版本,通过vue -V 或者 vue --version 如果报错可能是你的vue
阅读全文
posted @ 2017-07-14 08:10
执候
阅读(202)
推荐(0)
摘要:
1. 在每个组件模板,不在支持片段代码 组件中模板: 之前: <template> <h3>我是组件</h3><strong>我是加粗标签</strong> </template> 现在: 必须有根元素,包裹住所有的代码 <template id="aaa"> <div> <h3>我是组件</h3>
阅读全文
posted @ 2017-07-13 09:53
执候
阅读(180)
推荐(0)