diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/glossary/mvc | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/zh-cn/glossary/mvc')
-rw-r--r-- | files/zh-cn/glossary/mvc/index.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/files/zh-cn/glossary/mvc/index.html b/files/zh-cn/glossary/mvc/index.html new file mode 100644 index 0000000000..b5cf9661dc --- /dev/null +++ b/files/zh-cn/glossary/mvc/index.html @@ -0,0 +1,28 @@ +--- +title: MVC +slug: Glossary/MVC +translation_of: Glossary/MVC +--- +<p><strong>MVC</strong> (Model-View-Controller) 是一种软件设计模式.它强调分离软件的业务逻辑和显示. 这种“分离”提供了更好的分工和改进的维护. 一些其他的模式也是基于MVC来设计的, 像 MVVM (Model-View-Viewmodel), MVP (Model-View-Presenter), 和 MVW (Model-View-Whatever).</p> + +<p>对MVC软件设计模式的三个部分可以被描述如下:</p> + +<ol> + <li>Model: 模型持有所有的数据、状态和程序逻辑.</li> + <li>View: 负责界面的布局和显示.</li> + <li>Controller: 负责模型和界面之间的交互.</li> +</ol> + +<h2 id="Learn_more">Learn more</h2> + +<h3 id="General_knowledge">General knowledge</h3> + +<ul> + <li>{{interwiki("wikipedia", "Model–view–controller")}} on Wikipedia</li> +</ul> + +<h3 id="Learning_MVC">Learning MVC</h3> + +<ul> + <li><a href="/en-US/Apps/Fundamentals/Modern_web_app_architecture/MVC_architecture">MVC architecture</a></li> +</ul> |