当前位置:网站首页>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
边栏推荐
猜你喜欢

ABBIRB120工业机器人机械零点位置

Node version manager NVM installation and switching

Cvpr22 | CMT: efficient combination of CNN and transformer (open source)

关于Keil编译程序出现“File has been changed outside the editor,reload?”的解决方法

S7-1500PLC仿真

Learning summary on June 30, 2022

Tempest HDMI leak receive 3

2022/6/28学习总结

Learning summary on June 29, 2022

索引失效的几种情况
随机推荐
Value/string in redis
CVPR 2022 | self enhanced unpaired image defogging based on density and depth decomposition
kafuka学习之路(一)kafuka安装和简单使用
为什么一定要从DevOps走向BizDevOps?
redis中value/list
Getting started with Paxos
ABBIRB120工业机器人机械零点位置
持续交付-Pipeline入门
证券账户随便哪里开都能使用吗 开户安全吗
印象深刻的bug汇总(持续更新)
Unittest框架中跳过要执行的测试用例
Face detection and recognition system based on mtcnn+facenet
Spam filtering challenges
力扣(LeetCode)181. 超过经理收入的员工(2022.06.29)
In June 2022, it was the first programming language?!
Compile and debug net6 source code
Wechat applet development - user authorization to log in to "suggestions collection"
Software project management 9.2 Software project configuration management process
Dameng data rushes to the scientific innovation board: it plans to raise 2.4 billion yuan. Feng Yucai was once a professor of Huake
Epoll introduction