Skip to content
New issue

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

vue 2.x原理 #5

Open
spring-fe opened this issue Jan 2, 2019 · 0 comments
Open

vue 2.x原理 #5

spring-fe opened this issue Jan 2, 2019 · 0 comments

Comments

@spring-fe
Copy link
Owner

spring-fe commented Jan 2, 2019

web开发模式演变

web

vue

1.前端类MVVM框架,数据驱动界面,不用js操作dom
2.快速开发,底层轮子和业务代码分离

特性

feature

组件化

一个应用以一棵嵌套的组件树的形式组织
component
每个组件是集成vue类的子类。组件树上的每一个组件是一个组件实例,组件树初始化时递归渲染。
component

跨端/跨平台

什么是vnode?
vnode是一个json结构的对象,节点信息的另外一种描述方式。有什么标签,有什么属性,是否有子节点等。
vue2.0为什么引入vnode?
1.提升渲染性能
2.解耦
渲染过程抽象化(可以适配DOM以外的渲染目标),从而组件抽象能力提升。
vnode

响应式

response

流程

flow

@spring-fe spring-fe changed the title vue 2.x vue 2.x原理 Jan 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant