MVC是一个编程思想,是一种设计模式
M: model 数据模型层 提供数据
V: view 视图层 显示页面
C: controller 控制层 调用数据渲染视图
M:model 数据模块层 提供数据
V:view 视图层 渲染数据
VM: ViewModel 视图模型层 调用数据,渲染视图
由数据来驱动视图(不需要多考虑DOM操作,把重心放在VM上)
马克思分工理论?
原文链接:https://zhuanlan.zhihu.com/p/76988636