close

 

 

MVC開發模式有最基本的兩種特色:

(1)、關注點分離 (Separation of concerns, SOC)

(2)、規範優先原則 (Convention over Configuration)

 

何謂關注點分離?

(1)、Model (M) -> 與資料庫操作相關

(2)、View (V) -> 網頁頁面(html、javascript...)

(3)、Controller (C) -> (界接使用者從View傳來的操作,如果涉及到資料庫的操作則協助將Model取出的資料回傳至前端頁面View)

 

 

 

 

arrow
arrow
    文章標籤
    ASP.NET MVC 介紹
    全站熱搜

    米拉尤咕 發表在 痞客邦 留言(0) 人氣()