上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: 理解闭包可以将以上代码分解如下: 阅读全文
posted @ 2018-12-18 10:40 站住,野猪佩奇 阅读(116) 评论(0) 推荐(0)
摘要: 检测数据类型:typeof 与 instanceof typeof typeof 用以获取一个变量或者表达式的类型,typeof 一般只能返回如下几个结果: instanceof 可通过 instanceof 操作符来判断对象的具体类型,语法格式: 返回布尔值,如果是指定类型返回 true,否则返回 阅读全文
posted @ 2018-12-14 14:45 站住,野猪佩奇 阅读(128) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-11-01 10:45 站住,野猪佩奇 阅读(3823) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-09-14 16:22 站住,野猪佩奇 阅读(118) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-09-14 16:08 站住,野猪佩奇 阅读(307) 评论(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)
摘要: overflow:hidden; text-overflow:ellipsis; white-space:nowrap 阅读全文
posted @ 2018-09-10 14:53 站住,野猪佩奇 阅读(123) 评论(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)
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页