📜  mvc 视图与部分视图 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:00.982000             🧑  作者: Mango

代码示例1
I think the biggest difference is about the use of the _Layout page:

PartialView(): the razor engine will get the view (e.g. index.cshtml) without any layout page (_layout.cshtml).
View(): the engine will get your view (e.g. index.cshtml) and then appends the content of this view inside the layout page (_layout.cshtml)