vue-come-true
链接目录(6月7日更新)
- vue-come-true-First:简单了解双向绑定原理
- vue-come-true-Second:一起读vue前期源码
vue实现原理浅析
ERROR in ./src/vue/dep.js
Module parse failed: /Users/jackiewillen/Documents/work/myGitHub/vue-come-true/vue-come-true-Second/src/vue/dep.js Unexpected token (6:17)
You may need an appropriate loader to handle this file type.
|
| export default class Dep {
| static target;
|
| constructor() {
@ ./src/vue/watcher.js 1:0-23
@ ./src/vue/MVVM.js
代码初始化流程,先是observe,然后compile,compile里new Watcher,只有在new Watcher的时候,Dep.target=this,随后Dep.target又被设置为null了,那么在defineReactive里的get方法中,有个判断if (Dep.target),此时这个target到底是否为null呢?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.