随笔分类 -  vue

摘要:概述 为了探究vue的本质,所以想debug一下源码,但是怎么开始是个问题,于是有了这样一篇记录。目标是为了可以调试es6版本的,也就是src下的源码,所以主要是sourceMap的开启。 流程 1.clone vue项目本身这里是vue项目的克隆地址https://github.com/vuejs 阅读全文
posted @ 2021-02-22 14:43 laowang666888 阅读(113) 评论(0) 推荐(0)
摘要:props/@on+$emit 用于实现父子组件间通信。通过 props 可以把父组件的消息传递给子组件: // parent.vue <child :title="title"></child> // child.vue props: { title: { type: String, defaul 阅读全文
posted @ 2020-11-09 21:58 laowang666888 阅读(170) 评论(0) 推荐(0)