上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页
摘要: 使用方法: 创建示例对象time 找到countTime方法 传入打卡时间即可 阅读全文
posted @ 2019-01-28 10:23 佑之以航 阅读(171) 评论(0) 推荐(0) 编辑
摘要: ``` class Subject {//发布者 ① constructor(state){//② this.state = state//监听的值 this.obsovers = []//观察者列表 } getter(){//获得值 ③ return this.state } setter(sta 阅读全文
posted @ 2019-01-25 13:10 佑之以航 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 主要表现的点在于:放在根目录显示白屏,或者根目录有显示放在文件夹里面白屏 解决办法: 修改config/index.js build: { // Template for index.html index: path.resolve(__dirname, '../dist/index.html'), 阅读全文
posted @ 2019-01-24 16:33 佑之以航 阅读(4282) 评论(0) 推荐(0) 编辑
摘要: App.vue 阅读全文
posted @ 2019-01-24 11:10 佑之以航 阅读(440) 评论(0) 推荐(0) 编辑
摘要: ``` class GlobalStandard { GlobalVoltage(){ return '全球标准电压330V' } } class ChinaStandard { constructor(){ this.globalstandard = new GlobalStandard() } 阅读全文
posted @ 2019-01-22 20:44 佑之以航 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 例一 例二 工厂模式 1.能对代码运作有效解耦 创建是创建 运行是运行 2.减少重复代码 3.对于使用者更加友好 使用范围:如果产品类很复杂,而且存在太多变数,其构造过程也很复杂 阅读全文
posted @ 2019-01-22 20:35 佑之以航 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 创建单例 LoginLayer.js Vue中使用单例 danlie.vue Vue中使用单例 danlie2.vue 总结: 当我们使用单例模式时,只会new出一个实例对象,该对象的初始值都会共享,每次改变该值,其它页面如果使用该值的,相应也会发生变化 阅读全文
posted @ 2019-01-22 20:33 佑之以航 阅读(116) 评论(0) 推荐(0) 编辑
摘要: router/index.js App.vue 阅读全文
posted @ 2019-01-09 20:52 佑之以航 阅读(162) 评论(0) 推荐(0) 编辑
摘要: keep alive 可以缓存页面的数据,在页面回跳的时候不会更新数据 activated 在开启keep alive时页面不会重新渲染 也不会进入生命周期 无法监听数据改变怎么办?使用activated来监听即可 this.$router.push({name:'test',query:{id:1 阅读全文
posted @ 2019-01-05 21:34 佑之以航 阅读(686) 评论(0) 推荐(0) 编辑
摘要: mixin.js .vue文件 阅读全文
posted @ 2019-01-04 00:15 佑之以航 阅读(356) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页