当前位置:网站首页>Understanding of MVVM and MVC
Understanding of MVVM and MVC
2022-07-01 11:31:00 【Front end Xiaozhen】
know mvc and mvvm Construction
mvc
1、model layer It mainly deals with the addition, deletion, modification and query of the database
2、view View layer Mainly html css js At the interactive level
3、controller It mainly deals with the logic part
mvvm
1、 User is re view View layer Sponsored http agreement
2、 Then again controller The first step of receiving
3、 Again model Add, delete, modify and check the data in the layer
4、 Again from model The reverse return in the layer controller
5、controller Judge the addition, deletion, modification and query of the database
6、 Then render to view Rendering in the view layer
reflection : What's the matter with interfaces

1、html css in other words view It's us template Something in it That is what we call labels
2、viewmodel That is, let's deal with dom And the logic in the data source
3、model That is, the data in our interface
reflection : that mvc and mvvm The overall design pattern and architecture are basically similar So what is the correlation point ? What is the interface
边栏推荐
- 耐克如何常年霸榜第一名?最新财报答案来了
- TEMPEST HDMI泄漏接收 3
- Why must we move from Devops to bizdevops?
- Unittest 框架介绍及第一个demo
- Width and widthstep of iplimage
- Y48. Chapter III kubernetes from introduction to mastery -- pod status and probe (21)
- Redis common sense
- MySQL IN 和 NOT IN () 空列表报错
- Shangtang entered the lifting period: the core management voluntarily banned and strengthened the company's long-term value confidence
- 博途V15添加GSD文件
猜你喜欢
随机推荐
TEMPEST HDMI泄漏接收 5
kubernetes之ingress探索实践
Jd.com renewed its cooperation with Tencent: issuing class A shares to Tencent with a maximum value of US $220million
Redis common sense
Skip the test cases to be executed in the unittest framework
商汤进入解禁期:核心管理层自愿禁售 强化公司长期价值信心
Why must we move from Devops to bizdevops?
妙啊!MarkBERT
Give up high paying jobs in Shenzhen and go back home
activity工作流引擎
ABBIRB120工业机器人机械零点位置
Share the method of how to preview PSD format and PSD file thumbnail plug-in [easy to understand]
Shangtang entered the lifting period: the core management voluntarily banned and strengthened the company's long-term value confidence
Numpy的矩阵
金鱼哥RHCA回忆录:DO447使用Ansible与API通信--使用Ansible Tower API启动作业
sshd_config 中 PermitRootLogin 的探讨
Packet mode and three streaming modes in SDP protocol
Vscode shortcut key (the most complete) [easy to understand]
Leetcode 181 Employees exceeding the manager's income (June 29, 2022)
Redis startup and library entry








