We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
主要是计算属性的getter中收集依赖的过程
Sorry, something went wrong.
if(Dep.target){ dep.depend() }
watcher.evalute()
watcher.get()
pushTaget(this) value = this.getter.call(vm,vm) popTarget()
通过调用getter,进而调用到computed属性对应的get函数,获取到普通属性的时候,会触发getter函数,执行最上面代码块的dep.depend() 这时候dep指向的正是当前计算属性的this,二者正式建立起关联关系
dep.depend()
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: