Coder Social home page Coder Social logo

read-vue-source-code's People

Contributors

engr-hasanuzzaman avatar numbbbbb avatar rayhcai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

read-vue-source-code's Issues

Share code with code, not images

I would be glad to translate your notes and it would be perfect if you share code as code snippets, not as screenshots.

Thanks in advance

Dep.target.addDep(this) 中 this 的值

04-dynamic-data-observer-dep-and-watcher.md 中解释 Watcher 中的 get 时:

inside depend(), it calls Dep.target.addDep(this), here this is _data's dep, it's stored at vm._data.ob.dep

这里的 this 应该是 name: 'foo' 的,而不是 _data 的。

  1. new Observerdep_data
  2. defineReactivedep 为其中的 foo

如果我理解的有错误,请指正。

Dep和observer那里的说明有些看不懂

inside depend(), it calls Dep.target.addDep(this), here this refers to the dep property of object _data's observer, it's stored at vm._data.ob.dep

这里的说明有些疑惑,dep使用的都是闭包内的实例,没有使用__ob__.dep啊(只有数组才会用到__ob__.deb 吧,因为数组没有setter getter)

针对示例中的内容_data.name 这个是对象吧,不是数组,所以不存在存储到__ob__.dep的说法吧?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.