Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

webbillion/vue-notes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

1 Commit

Repository files navigation

简述

  • 只是个人的阅读笔记,更详细的代码分析请参考这篇文章。一些工具函数的详细解释也可以在上面找到。此外阅读过程中对一些代码的理解可能是循序渐进的,我都做了保留,而不是只写下了最终版本。
  • 虽然也阅读了上面提到的分析文章的很多内容,但是也过了挺久了,只有一个大概的印象,除了引用部分,其它内容都是自己思考和描述的。
  • 是对代码内容的文字表述和分析,先文字,再附上代码,而不是在代码间做注释。
    • 为什么?想看起来更系统更清晰。
  • 希望做到,不仅是理解代码在做什么,也要思考为什么这么做,为什么不那么做,以及代码间如何解耦之类的。

阅读方法

  • 2018年12月17日时版本是2.5.21,暂时没有决定是否随时更新。
  • 组织方式同src文件夹。
  • core/index.js开始阅读。
  • 遇到以下关键词,如有不懂请先阅读observer概述
    • 响应式
    • observe
    • Observer
    • watcher
    • createWatcher
    • defineReactive
    • toggleObserving
  • 写一个对照插件。

感谢

  • 感谢Vue及其生态的作者和贡献者。
  • 感谢Vue技术内幕的作者,带我入了vue源码的门。
  • 感谢所有分享知识的博文作者和开源大神们。

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /