二、Object 变化侦测
变化侦测指的是,当运行时的状态发生变化时,应用程序可以知道哪个状态发生了变化,并作出相应的动作。
变化侦测的方式可以分为2种:一种是“推(push)”,一种是“拉(pull)”。
Vue 的变化侦测就属于“推,当状态发生变化时,它就会通知相应的依赖对象进行更新。
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
1 | $ hexo new "My New Post" |
More info: Writing
1 | $ hexo server |
More info: Server
1 | $ hexo generate |
More info: Generating
1 | $ hexo deploy |
More info: Deployment