Comments (1)
这里的实现是针对较早版本的vue,vue2支持vdom之后,指令这一块的处理不一样了。vue2中一个组件作用域内的任意数据变化,都会触发update函数执行,也就是 patch vdom相关的操作
from mvvm.
Related Issues (20)
- 订阅者的update()方法有点不理解, HOT 1
- 在observer.js中 您重写了默认的Observer.prototype 那么this.walk(data) 还能正确的找到walk这个方法吗 HOT 1
- 你好,mvvm如何作用于动态dom节点?
- 您好,我想问下关于watcher的问题 HOT 1
- Proxy实现看这里
- 对表达式的支持有缺陷
- v-model指令你是如何实现呢,目前看data与UI层单向数据绑定没问题 HOT 1
- 作者,你好。想请教一下关于Compile里面的_setVMVal() HOT 3
- 关于node2Fragment函数中的节点遍历 HOT 4
- 数据代理不用深层遍历吗? HOT 2
- 关于Object.defineProperty() 问题 HOT 1
- 关于constructor HOT 1
- issue: 对于嵌套的data属性,观察者的回调会同时绑定在父级,以及子级属性上 HOT 3
- 关于 watcher 被重复订阅的问题
- 关于dep.target=null的问题 HOT 2
- Mvvm
- 想知道computed实现原理 HOT 1
- 关于多个watcher的探讨 HOT 1
- watch原型中的exp写错了 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mvvm.