随笔分类 -  Vue随笔

摘要:1. git clone https://github.com/vuejs/vue-devtools.git 2. 进入clone下来的vue-devtools项目文件夹,npm install,npm run build 3. 游览器输入地址“chrome://extensions/”进入扩展程序 阅读全文
posted @ 2019-05-16 16:00 站住,野猪佩奇 阅读(138) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-03-15 17:51 站住,野猪佩奇 阅读(141) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-02-26 10:12 站住,野猪佩奇 阅读(993) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-02-26 09:54 站住,野猪佩奇 阅读(129) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-02-26 09:47 站住,野猪佩奇 阅读(1126) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-02-25 17:02 站住,野猪佩奇 阅读(121) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-02-25 16:59 站住,野猪佩奇 阅读(340) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-02-20 15:53 站住,野猪佩奇 阅读(173) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-01-11 10:19 站住,野猪佩奇 阅读(145) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-11-01 10:45 站住,野猪佩奇 阅读(3822) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-09-14 16:22 站住,野猪佩奇 阅读(118) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-09-11 15:42 站住,野猪佩奇 阅读(377) 评论(0) 推荐(0)
摘要:1. v-model修饰符: v-model.lazy=‘message’ 这时message并不是实时改变的,而是在失焦或按回车时才更新; v-model.number=‘message’ .number可以将输入转换为Number类型,否则你输入的虽然是数字,但它的类型其实是String; v- 阅读全文
posted @ 2018-09-10 19:35 站住,野猪佩奇 阅读(158) 评论(0) 推荐(0)
摘要:1.main.js: import filters from 'XXX' Object.keys(filters).forEach(key => Vue.filter(key, filters[key])) //遍历过滤 const router=new VueRouter({ mode: 'his 阅读全文
posted @ 2018-09-03 00:04 站住,野猪佩奇 阅读(758) 评论(0) 推荐(0)
摘要:vuex刷新数据消失问题: 在项目的入口页面(App.vue)里添加监听刷新事件: 或者使用插件:npm install vuex-persistedstate --save 阅读全文
posted @ 2018-08-31 00:41 站住,野猪佩奇 阅读(102) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-08-30 22:53 站住,野猪佩奇 阅读(114) 评论(0) 推荐(0)
摘要:下载模块: npm install <package-name> --save-dev 上线: npm run build 基本使用流程:1. npm install vue-cli -g 安装 vue命令环境 验证安装ok? vue --version2. 生成项目模板 vue init <模板名 阅读全文
posted @ 2018-08-28 23:31 站住,野猪佩奇 阅读(216) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-08-13 18:20 站住,野猪佩奇 阅读(151) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-08-13 18:14 站住,野猪佩奇 阅读(122) 评论(0) 推荐(0)