From 218934fa2ed1c702a6d3923d2aa2cc6b43c48684 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:43:23 -0500 Subject: initial commit --- files/zh-tw/glossary/mvc/index.html | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 files/zh-tw/glossary/mvc/index.html (limited to 'files/zh-tw/glossary/mvc/index.html') 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 +--- +

模型─視圖─控制器(Model-View-Controller, MVC)是個軟體設計模式。它強調把軟體的行事邏輯與排版顯示分離(也就是關注點分離,Separation of concerns),如此一來開發者們就可以輕鬆分派工作、以及維護專案。有些設計模式也基於 MVC,像是 MVVM(Model-View-ViewModel)、MTP(Model-View-Presenter)、and MVW(Model-View-Whatever) 等等。

+ +

MVC 在定義方面有爭議,但通常會包含:

+ +
    +
  1. 模型(Model):包含資料、或是軟體的行事邏輯。行事邏輯可以有演算法、與資料庫的溝通等。
  2. +
  3. 視圖(View):包含軟體的排版與顯示。
  4. +
  5. 控制器(Controller):包含軟體的行事邏輯、或是連接模型與視圖。
  6. +
+ +

深入理解

+ +

基本知識

+ + + +

學習 MVC

+ + -- cgit v1.2.3-54-g00ecf