aboutsummaryrefslogtreecommitdiff
path: root/files/zh-tw/glossary/mvc/index.html
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:43:23 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:43:23 -0500
commit218934fa2ed1c702a6d3923d2aa2cc6b43c48684 (patch)
treea9ef8ac1e1b8fe4207b6d64d3841bfb8990b6fd0 /files/zh-tw/glossary/mvc/index.html
parent074785cea106179cb3305637055ab0a009ca74f2 (diff)
downloadtranslated-content-218934fa2ed1c702a6d3923d2aa2cc6b43c48684.tar.gz
translated-content-218934fa2ed1c702a6d3923d2aa2cc6b43c48684.tar.bz2
translated-content-218934fa2ed1c702a6d3923d2aa2cc6b43c48684.zip
initial commit
Diffstat (limited to 'files/zh-tw/glossary/mvc/index.html')
-rw-r--r--files/zh-tw/glossary/mvc/index.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/files/zh-tw/glossary/mvc/index.html b/files/zh-tw/glossary/mvc/index.html
new file mode 100644
index 0000000000..28dcae8a52
--- /dev/null
+++ b/files/zh-tw/glossary/mvc/index.html
@@ -0,0 +1,28 @@
+---
+title: MVC
+slug: Glossary/MVC
+translation_of: Glossary/MVC
+---
+<p><strong>模型─視圖─控制器</strong>(Model-View-Controller, MVC)是個軟體設計模式。它強調把軟體的行事邏輯與排版顯示分離(也就是關注點分離,Separation of concerns),如此一來開發者們就可以輕鬆分派工作、以及維護專案。有些設計模式也基於 MVC,像是 MVVM(Model-View-ViewModel)、MTP(Model-View-Presenter)、and MVW(Model-View-Whatever) 等等。</p>
+
+<p>MVC 在定義方面有爭議,但通常會包含:</p>
+
+<ol>
+ <li>模型(Model):包含資料、或是軟體的行事邏輯。行事邏輯可以有演算法、與資料庫的溝通等。</li>
+ <li>視圖(View):包含軟體的排版與顯示。</li>
+ <li>控制器(Controller):包含軟體的行事邏輯、或是連接模型與視圖。</li>
+</ol>
+
+<h2 id="深入理解">深入理解</h2>
+
+<h3 id="基本知識">基本知識</h3>
+
+<ul>
+ <li>維基百科的 {{interwiki("wikipedia", "MVC")}}</li>
+</ul>
+
+<h3 id="學習_MVC">學習 MVC</h3>
+
+<ul>
+ <li>MDN 的 <a href="/zh-TW/Apps/Fundamentals/Modern_web_app_architecture/MVC_architecture">MVC 架構</a></li>
+</ul>