哇塞,有好吃的~
摘要: 源码位置 src/components/keep-alive.js。 逐行分析 // 获取组件的name function getComponentName (opts: ?VNodeComponentOptions): ?string { return opts && (opts.Ctor.opt 阅读全文
posted @ 2020-12-25 16:36 风行者夜色 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 源码位置 src/core/observer。 主要源码分析 一个观察者对象。watcher.js。 let uid = 0 // 一个自增的id /** * A watcher parses an expression, collects dependencies, * and fires cal 阅读全文
posted @ 2020-12-25 10:53 风行者夜色 阅读(1306) 评论(0) 推荐(0) 编辑